diff options
author | hwc487 | 2012-05-03 16:42:56 -0700 |
---|---|---|
committer | hwc487 | 2012-05-03 16:42:56 -0700 |
commit | d21aaca3d7093b6af968b7f9f764ab54e004f02b (patch) | |
tree | aae070c04d18bc30fda6b133ce3d7de7b621f8b2 /js/lib/drawing | |
parent | e791a7a821221d206c40427fd2695b42a5bacf5f (diff) | |
download | ninja-d21aaca3d7093b6af968b7f9f764ab54e004f02b.tar.gz |
Cleanup of indirect textures.
Diffstat (limited to 'js/lib/drawing')
-rwxr-xr-x | js/lib/drawing/world.js | 23 |
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 | ||
1031 | World.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 | |||
1054 | function Notifier() | 1031 | function Notifier() |
1055 | { | 1032 | { |
1056 | // notification types supported | 1033 | // notification types supported |