From d0d819ce22c74e29f0b7eef9bf3045c3f79fc7df Mon Sep 17 00:00:00 2001 From: Manos Angelidis <angelidis@fortiss.org> Date: Tue, 4 Jun 2019 15:07:45 +0000 Subject: [PATCH] Merged in NRRPLT-7488 (pull request #27) [NRRPLT-7488] should recieve the proper modelsdf Approved-by: Manos Angelidis <angelidis@fortiss.org> Approved-by: Axel von Arnim <axel.vonarnim@fortiss.org> --- gz3d/src/gzspawnmodel.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gz3d/src/gzspawnmodel.js b/gz3d/src/gzspawnmodel.js index fa5df2a..90e5a2f 100644 --- a/gz3d/src/gzspawnmodel.js +++ b/gz3d/src/gzspawnmodel.js @@ -82,8 +82,7 @@ GZ3D.SpawnModel.prototype.start = function (modelPath, modelSDF, modelName, call } else { - if (typeof modelSDF === 'undefined') modelSDF = 'model.sdf'; - mesh = this.sdfParser.loadSDF(modelPath + '/' + modelSDF); + mesh = this.sdfParser.loadSDF(modelSDF); //TODO: add transparency to the object zoffset = 0; this.autoAlignModel.alignOnMeshBase(); -- GitLab