Showing the changes to interface/src/Application.cpp (1 of 19 files). Show all
Unified · Split
| @@ -3628,6 +3628,9 @@ ScriptEngine* Application::loadScript(const QString& scriptName, bool loadScript · 3627 unmodified lines | ||
| 3628 | 3628 | scriptEngine->getModelsScriptingInterface()->setPacketSender(&_modelEditSender); |
| 3629 | 3629 | scriptEngine->getModelsScriptingInterface()->setModelTree(_models.getTree()); |
| 3630 | 3630 | |
| 3631 | + // model has some custom types | |
| 3632 | + Model::registerMetaTypes(scriptEngine->getEngine()); | |
| 3633 | + | |
| 3631 | 3634 | // hook our avatar object into this script engine |
| 3632 | 3635 | scriptEngine->setAvatarData(_myAvatar, "MyAvatar"); // leave it as a MyAvatar class to expose thrust features |
| 3633 | 3636 | |