Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -107,7 +107,7 @@ EntityItemProperties EntityScriptingInterface::getEntityProperties(EntityItemID · 106 unmodified lines | |||
| 107 | 107 | ||
| 108 | EntityItemID EntityScriptingInterface::editEntity(EntityItemID entityID, const EntityItemProperties& properties) { | 108 | EntityItemID EntityScriptingInterface::editEntity(EntityItemID entityID, const EntityItemProperties& properties) { |
| 109 | 109 | ||
| 110 | if (! canEdit()) { | 110 | if (!canEdit()) { |
| 111 | return entityID; | 111 | return entityID; |
| 112 | } | 112 | } |
| 113 | 113 | ||
| @@ -151,8 +151,9 @@ EntityItemID EntityScriptingInterface::editEntity(EntityItemID entityID, const E · 37 unmodified lines | |||
| 151 | 151 | ||
| 152 | void EntityScriptingInterface::deleteEntity(EntityItemID entityID) { | 152 | void EntityScriptingInterface::deleteEntity(EntityItemID entityID) { |
| 153 | 153 | ||
| 154 | if (! canEdit()) | 154 | if (!canEdit()) { |
| 155 | return; | 155 | return; |
| 156 | } | ||
| 156 | 157 | ||
| 157 | EntityItemID actualID = entityID; | 158 | EntityItemID actualID = entityID; |
| 158 | 159 | ||