diff options
author | Nivesh Rajbhandari | 2012-02-22 16:21:39 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-22 16:21:39 -0800 |
commit | 7b9b1e6dab88875b85230fc6f4fa0fca94e8b82f (patch) | |
tree | 1f28a0e44a3e1e3755e02c87ee93ead9ec65f4a7 /js/helper-classes/RDGE/Materials/PulseMaterial.js | |
parent | d5b216d9d6d2b8cb93106e8f8ca351089d05b41d (diff) | |
download | ninja-7b9b1e6dab88875b85230fc6f4fa0fca94e8b82f.tar.gz |
PulseMaterial and RadialBlurMaterial had typos in their import code.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/helper-classes/RDGE/Materials/PulseMaterial.js')
-rw-r--r-- | js/helper-classes/RDGE/Materials/PulseMaterial.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/Materials/PulseMaterial.js b/js/helper-classes/RDGE/Materials/PulseMaterial.js index 6f7e9fe0..d76b9966 100644 --- a/js/helper-classes/RDGE/Materials/PulseMaterial.js +++ b/js/helper-classes/RDGE/Materials/PulseMaterial.js | |||
@@ -200,7 +200,17 @@ function PulseMaterial() | |||
200 | this.setName( pu.nextValue( "name: ") ); | 200 | this.setName( pu.nextValue( "name: ") ); |
201 | 201 | ||
202 | var rtnStr; | 202 | var rtnStr; |
203 | 203 | try | |
204 | { | ||
205 | var endKey = "endMaterial\n"; | ||
206 | var index = importStr.indexOf( endKey ); | ||
207 | index += endKey.length; | ||
208 | rtnStr = importStr.substr( index ); | ||
209 | } | ||
210 | catch (e) | ||
211 | { | ||
212 | throw new Error( "could not import material: " + importStr ); | ||
213 | } | ||
204 | return rtnStr; | 214 | return rtnStr; |
205 | } | 215 | } |
206 | } | 216 | } |