History

Make entity properties return undefined value after entity is deleted

David Rowe committed 10 years ago

Commit d0201141 parent c8127983 files · +15 −2Browse files

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

Unified · Split

libraries/entities/src/EntityScriptingInterface.cpp+3−1
@@ -202,11 +202,13 @@ EntityItemProperties EntityScriptingInterface::getEntityProperties(QUuid identit · 201 unmodified lines
202202 }
203203 }
204204
205+ results = convertLocationToScriptSemantics(results);
206+ results.setEntityFound();
205207 }
206208 });
207209 }
208210
209− return convertLocationToScriptSemantics(results);
211+ return results;
210212 }
211213
212214 QUuid EntityScriptingInterface::editEntity(QUuid id, const EntityItemProperties& scriptSideProperties) {