mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:48:15 +02:00
guard against NULL _models
This commit is contained in:
parent
ba81030aa1
commit
a6f7a1ce15
1 changed files with 4 additions and 1 deletions
|
@ -268,6 +268,9 @@ EntityItemProperties RenderableModelEntityItem::getProperties() const {
|
|||
bool RenderableModelEntityItem::findDetailedRayIntersection(const glm::vec3& origin, const glm::vec3& direction,
|
||||
bool& keepSearching, OctreeElement*& element, float& distance, BoxFace& face,
|
||||
void** intersectedObject, bool precisionPicking) const {
|
||||
if (!_model) {
|
||||
return true;
|
||||
}
|
||||
|
||||
glm::vec3 originInMeters = origin * (float)TREE_SCALE;
|
||||
QString extraInfo;
|
||||
|
|
Loading…
Reference in a new issue