diff options
Diffstat (limited to 'js/helper-classes/RDGE/Materials/RadialBlurMaterial.js')
-rw-r--r-- | js/helper-classes/RDGE/Materials/RadialBlurMaterial.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/helper-classes/RDGE/Materials/RadialBlurMaterial.js b/js/helper-classes/RDGE/Materials/RadialBlurMaterial.js index 9acb4213..a5fb134c 100644 --- a/js/helper-classes/RDGE/Materials/RadialBlurMaterial.js +++ b/js/helper-classes/RDGE/Materials/RadialBlurMaterial.js | |||
@@ -37,6 +37,8 @@ function RadialBlurMaterial() | |||
37 | this.getTextureMap = function() { return this._texMap.slice(0); } | 37 | this.getTextureMap = function() { return this._texMap.slice(0); } |
38 | this.setTextureMap = function(m) { this._propValues[this._propNames[0]] = m.slice(0); this.updateTexture(); } | 38 | this.setTextureMap = function(m) { this._propValues[this._propNames[0]] = m.slice(0); this.updateTexture(); } |
39 | 39 | ||
40 | this.isAnimated = function() { return true; } | ||
41 | |||
40 | /////////////////////////////////////////////////////////////////////// | 42 | /////////////////////////////////////////////////////////////////////// |
41 | // Material Property Accessors | 43 | // Material Property Accessors |
42 | /////////////////////////////////////////////////////////////////////// | 44 | /////////////////////////////////////////////////////////////////////// |
@@ -190,6 +192,17 @@ function RadialBlurMaterial() | |||
190 | this.setName( pu.nextValue( "name: ") ); | 192 | this.setName( pu.nextValue( "name: ") ); |
191 | 193 | ||
192 | var rtnStr; | 194 | var rtnStr; |
195 | try | ||
196 | { | ||
197 | var endKey = "endMaterial\n"; | ||
198 | var index = importStr.indexOf( endKey ); | ||
199 | index += endKey.length; | ||
200 | rtnStr = importStr.substr( index ); | ||
201 | } | ||
202 | catch (e) | ||
203 | { | ||
204 | throw new Error( "could not import material: " + importStr ); | ||
205 | } | ||
193 | 206 | ||
194 | return rtnStr; | 207 | return rtnStr; |
195 | } | 208 | } |