aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/radial-blur-material.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge/materials/radial-blur-material.js')
-rw-r--r--js/lib/rdge/materials/radial-blur-material.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/lib/rdge/materials/radial-blur-material.js b/js/lib/rdge/materials/radial-blur-material.js
index 6e1c024b..61ae0017 100644
--- a/js/lib/rdge/materials/radial-blur-material.js
+++ b/js/lib/rdge/materials/radial-blur-material.js
@@ -70,12 +70,14 @@ var RadialBlurMaterial = function RadialBlurMaterial() {
70 /////////////////////////////////////////////////////////////////////// 70 ///////////////////////////////////////////////////////////////////////
71 // duplicate method required 71 // duplicate method required
72 this.dup = function () { 72 this.dup = function () {
73 // allocate a new uber material 73 // get the current values;
74 var newMat = new RadialBlurMaterial();
75
76 // copy over the current values;
77 var propNames = [], propValues = [], propTypes = [], propLabels = []; 74 var propNames = [], propValues = [], propTypes = [], propLabels = [];
78 this.getAllProperties(propNames, propValues, propTypes, propLabels); 75 this.getAllProperties(propNames, propValues, propTypes, propLabels);
76
77 // allocate a new material
78 var newMat = new RadialBlurMaterial();
79
80 // copy over the current values;
79 var n = propNames.length; 81 var n = propNames.length;
80 for (var i = 0; i < n; i++) 82 for (var i = 0; i < n; i++)
81 newMat.setProperty(propNames[i], propValues[i]); 83 newMat.setProperty(propNames[i], propValues[i]);