diff options
author | hwc487 | 2012-06-06 16:34:41 -0700 |
---|---|---|
committer | hwc487 | 2012-06-06 16:34:41 -0700 |
commit | 6c994c4b90023cecf4fd0caafb404b859fe28f54 (patch) | |
tree | 75a4d813441ca6a3eb529dc88a749776459bb76e /js/lib/drawing | |
parent | 920436977433ea55c01ce1e73895d1db0a6abac1 (diff) | |
download | ninja-6c994c4b90023cecf4fd0caafb404b859fe28f54.tar.gz |
material cleanup and rearchitecture
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 | } |