aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge')
-rwxr-xr-xjs/lib/rdge/materials/uber-material.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/lib/rdge/materials/uber-material.js b/js/lib/rdge/materials/uber-material.js
index 31a8756c..347e45d3 100755
--- a/js/lib/rdge/materials/uber-material.js
+++ b/js/lib/rdge/materials/uber-material.js
@@ -358,13 +358,14 @@ var UberMaterial = function UberMaterial() {
358 newMat._useLights = this._useLights; 358 newMat._useLights = this._useLights;
359 newMat._useNormalMap = this._useNormalMap; 359 newMat._useNormalMap = this._useNormalMap;
360 newMat._useSpecularMap = this._useSpecularMap; 360 newMat._useSpecularMap = this._useSpecularMap;
361 newMat.rebuildShader();
362 361
363 // copy over the current values; 362 // copy over the current values;
364 var n = propNames.length; 363 var n = propNames.length;
365 for (var i = 0; i < n; i++) 364 for (var i = 0; i < n; i++)
366 newMat.setProperty(propNames[i], propValues[i]); 365 newMat.setProperty(propNames[i], propValues[i]);
367 366
367 newMat.rebuildShader();
368
368 return newMat; 369 return newMat;
369 }; 370 };
370 371