diff options
Diffstat (limited to 'js/lib/rdge/materials/deform-material.js')
-rw-r--r-- | js/lib/rdge/materials/deform-material.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/js/lib/rdge/materials/deform-material.js b/js/lib/rdge/materials/deform-material.js index c7f9cadc..70742c77 100644 --- a/js/lib/rdge/materials/deform-material.js +++ b/js/lib/rdge/materials/deform-material.js | |||
@@ -37,22 +37,6 @@ var DeformMaterial = function DeformMaterial() { | |||
37 | // Methods | 37 | // Methods |
38 | /////////////////////////////////////////////////////////////////////// | 38 | /////////////////////////////////////////////////////////////////////// |
39 | // duplcate method requirde | 39 | // duplcate method requirde |
40 | this.dup = function (world) | ||
41 | { | ||
42 | // get the current values; | ||
43 | var propNames = [], propValues = [], propTypes = [], propLabels = []; | ||
44 | this.getAllProperties(propNames, propValues, propTypes, propLabels); | ||
45 | |||
46 | // allocate a new material | ||
47 | var newMat = new DeformMaterial(); | ||
48 | |||
49 | // copy over the current values; | ||
50 | var n = propNames.length; | ||
51 | for (var i = 0; i < n; i++) | ||
52 | newMat.setProperty(propNames[i], propValues[i]); | ||
53 | |||
54 | return newMat; | ||
55 | }; | ||
56 | 40 | ||
57 | this.init = function (world) { | 41 | this.init = function (world) { |
58 | // save the world | 42 | // save the world |