diff options
Diffstat (limited to 'js/lib/drawing')
-rwxr-xr-x | js/lib/drawing/world.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js index 228c0d94..8068284e 100755 --- a/js/lib/drawing/world.js +++ b/js/lib/drawing/world.js | |||
@@ -484,11 +484,11 @@ World.prototype.updateObject = function (obj) { | |||
484 | for (var i = 1; i < nPrims; i++) | 484 | for (var i = 1; i < nPrims; i++) |
485 | { | 485 | { |
486 | // get the next primitive | 486 | // get the next primitive |
487 | var prim = prims[i]; | ||
488 | childTrNode = RDGE.createTransformNode("objNode_" + this._nodeCounter++); | 487 | childTrNode = RDGE.createTransformNode("objNode_" + this._nodeCounter++); |
489 | ctrTrNode.insertAsChild(childTrNode); | 488 | ctrTrNode.insertAsChild(childTrNode); |
490 | 489 | ||
491 | // attach the instanced box goe | 490 | // attach the instanced box goe |
491 | var prim = prims[i]; | ||
492 | childTrNode.attachMeshNode(this.renderer.id + "_prim_" + this._nodeCounter++, prim); | 492 | childTrNode.attachMeshNode(this.renderer.id + "_prim_" + this._nodeCounter++, prim); |
493 | childTrNode.attachMaterial(materialNodes[i]); | 493 | childTrNode.attachMaterial(materialNodes[i]); |
494 | } | 494 | } |