|
@@ -22,7 +22,7 @@ def write(filename, scene, ob, \
|
|
if not filename.lower().endswith('.js'):
|
|
if not filename.lower().endswith('.js'):
|
|
filename += '.js'
|
|
filename += '.js'
|
|
|
|
|
|
- classname = filename.split('/')[-1].strip('.js')
|
|
|
|
|
|
+ classname = filename.replace('.js','').split('/')[-1]
|
|
|
|
|
|
if not ob:
|
|
if not ob:
|
|
raise Exception("Error, Select the object to export")
|
|
raise Exception("Error, Select the object to export")
|