Showing the changes to libraries/script-engine/src/ModelScriptingInterface.h (1 of 4 files). Show all
Unified · Split
| @@ -20,6 +20,7 @@ · 19 unmodified lines | ||
| 20 | 20 | #include "MeshProxy.h" |
| 21 | 21 | |
| 22 | 22 | using MeshPointer = std::shared_ptr<model::Mesh>; |
| 23 | +class ScriptEngine; | |
| 23 | 24 | |
| 24 | 25 | class ModelScriptingInterface : public QObject { |
| 25 | 26 | Q_OBJECT |
| @@ -28,6 +29,10 @@ public: · 2 unmodified lines | ||
| 28 | 29 | ModelScriptingInterface(QObject* parent); |
| 29 | 30 | |
| 30 | 31 | Q_INVOKABLE QString meshToOBJ(MeshProxyList in); |
| 32 | + Q_INVOKABLE QScriptValue appendMeshes(MeshProxyList in); | |
| 33 | + | |
| 34 | +private: | |
| 35 | + ScriptEngine* _modelScriptEngine { nullptr }; | |
| 31 | 36 | }; |
| 32 | 37 | |
| 33 | 38 | QScriptValue meshToScriptValue(QScriptEngine* engine, MeshProxy* const &in); |