Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -148,7 +148,11 @@ QUuid EntityScriptingInterface::addEntity(const EntityItemProperties& properties · 147 unmodified lines | ||
| 148 | 148 | if (entity) { |
| 149 | 149 | if (propertiesWithSimID.parentRelatedPropertyChanged()) { |
| 150 | 150 | // due to parenting, the server may not know where something is in world-space, so include the bounding cube. |
| 151 | − propertiesWithSimID.setQueryAACube(entity->getQueryAACube()); | |
| 151 | + bool success; | |
| 152 | + AACube queryAACube = entity->getQueryAACube(success); | |
| 153 | + if (success) { | |
| 154 | + propertiesWithSimID.setQueryAACube(queryAACube); | |
| 155 | + } | |
| 152 | 156 | } |
| 153 | 157 | |
| 154 | 158 | if (_bidOnSimulationOwnership) { |