History

if needed, set querryAACube when dimensions are updated

Seth Alves committed 10 years ago

Commit f611d8f1 parent e87ef524 files · +37 −13Browse files

Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 4 files). Show all

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+5−1
@@ -148,7 +148,11 @@ QUuid EntityScriptingInterface::addEntity(const EntityItemProperties& properties · 147 unmodified lines
148 if (entity) {148 if (entity) {
149 if (propertiesWithSimID.parentRelatedPropertyChanged()) {149 if (propertiesWithSimID.parentRelatedPropertyChanged()) {
150 // due to parenting, the server may not know where something is in world-space, so include the bounding cube.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 if (_bidOnSimulationOwnership) {158 if (_bidOnSimulationOwnership) {