mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 06:49:41 +02:00
Fix Graphics.exportModelToOBJ() JavaScript crash
This commit is contained in:
parent
1f2deed941
commit
1145bc8904
2 changed files with 3 additions and 3 deletions
|
@ -258,8 +258,8 @@ scriptable::ScriptableMeshPointer GraphicsScriptingInterface::newMesh(const QVar
|
||||||
return scriptable::make_scriptowned<scriptable::ScriptableMesh>(mesh, nullptr);
|
return scriptable::make_scriptowned<scriptable::ScriptableMesh>(mesh, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString GraphicsScriptingInterface::exportModelToOBJ(const scriptable::ScriptableModel& _in) {
|
QString GraphicsScriptingInterface::exportModelToOBJ(const scriptable::ScriptableModelPointer& model) {
|
||||||
const auto& in = _in.getConstMeshes();
|
const auto& in = model->getConstMeshes();
|
||||||
if (in.size()) {
|
if (in.size()) {
|
||||||
QList<scriptable::MeshPointer> meshes;
|
QList<scriptable::MeshPointer> meshes;
|
||||||
foreach (auto meshProxy, in) {
|
foreach (auto meshProxy, in) {
|
||||||
|
|
|
@ -93,7 +93,7 @@ public slots:
|
||||||
* @param {Graphics.Model} model
|
* @param {Graphics.Model} model
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
QString exportModelToOBJ(const scriptable::ScriptableModel& in);
|
QString exportModelToOBJ(const scriptable::ScriptableModelPointer& model);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
scriptable::ModelProviderPointer getModelProvider(const QUuid& uuid);
|
scriptable::ModelProviderPointer getModelProvider(const QUuid& uuid);
|
||||||
|
|
Loading…
Reference in a new issue