aboutsummaryrefslogtreecommitdiff
path: root/js/lib/drawing
diff options
context:
space:
mode:
authorhwc4872012-05-03 16:42:56 -0700
committerhwc4872012-05-03 16:42:56 -0700
commitd21aaca3d7093b6af968b7f9f764ab54e004f02b (patch)
treeaae070c04d18bc30fda6b133ce3d7de7b621f8b2 /js/lib/drawing
parente791a7a821221d206c40427fd2695b42a5bacf5f (diff)
downloadninja-d21aaca3d7093b6af968b7f9f764ab54e004f02b.tar.gz
Cleanup of indirect textures.
Diffstat (limited to 'js/lib/drawing')
-rwxr-xr-xjs/lib/drawing/world.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/js/lib/drawing/world.js b/js/lib/drawing/world.js
index 9a7d42de..23e24347 100755
--- a/js/lib/drawing/world.js
+++ b/js/lib/drawing/world.js
@@ -1028,29 +1028,6 @@ World.prototype.importObjectJSON = function( jObj, parentGeomObj )
1028 return obj; 1028 return obj;
1029}; 1029};
1030 1030
1031World.prototype.refreshTextures = function( obj )
1032{
1033 if (obj == null) obj = this._geomRoot;
1034 if (!obj) return;
1035 if (obj._materialArray)
1036 {
1037 var nMats = obj._materialArray.length;
1038 for (var i=0; i<nMats; i++)
1039 {
1040 var mat = obj._materialArray[i];
1041 if (mat)
1042 mat.updateTextures();
1043 }
1044 }
1045
1046 if (obj.getChild()) {
1047 this.refreshTextures( obj.getChild () );
1048 }
1049
1050 if (obj.getNext())
1051 this.refreshTextures( obj.getNext() );
1052};
1053
1054function Notifier() 1031function Notifier()
1055{ 1032{
1056 // notification types supported 1033 // notification types supported