diff options
author | Pushkar Joshi | 2012-02-24 12:08:49 -0800 |
---|---|---|
committer | Pushkar Joshi | 2012-02-24 12:08:49 -0800 |
commit | 03ca7a5ed13c25faaa9100bb666e062fd15335e6 (patch) | |
tree | c51112223ceb9121cd595a60335eb2795215590f /js/helper-classes/RDGE/Materials/RadialBlurMaterial.js | |
parent | fcb12cc09eb3cd3b42bd215877ba18f449275b75 (diff) | |
parent | 053fc63a2950c7a5ee4ebf98033b64d474a3c46e (diff) | |
download | ninja-03ca7a5ed13c25faaa9100bb666e062fd15335e6.tar.gz |
Merge branch 'pentool' into brushtool
Conflicts:
imports/codemirror/mode/scheme/scheme.js
js/tools/BrushTool.js
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 | } |