Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -1663,7 +1663,7 @@ void EntityScriptingInterface::getMeshes(QUuid entityID, QScriptValue callback) · 1662 unmodified lines | ||
| 1663 | 1663 | EntityItemPointer entity = static_cast<EntityItemPointer>(_entityTree->findEntityByEntityItemID(entityID)); |
| 1664 | 1664 | if (!entity) { |
| 1665 | 1665 | qCDebug(entities) << "EntityScriptingInterface::getMeshes no entity with ID" << entityID; |
| 1666 | − QScriptValueList args { false, false }; | |
| 1666 | + QScriptValueList args { callback.engine()->undefinedValue(), false }; | |
| 1667 | 1667 | callback.call(QScriptValue(), args); |
| 1668 | 1668 | return; |
| 1669 | 1669 | } |