Browse Source

Found one more spot from existing exporter that needed to be merged into new exporter.

Ryan Lee 11 years ago
parent
commit
ace6913d21

+ 1 - 1
utils/exporters/blender/2.65/scripts/addons/io_mesh_threejs/__init__.py

@@ -25,7 +25,7 @@ bl_info = {
     "name": "three.js format",
     "author": "mrdoob, kikko, alteredq, remoe, pxf, n3tfr34k",
     "version": (1, 4, 0),
-    "blender": (2, 6, 6),
+    "blender": (2, 7, 0),
     "api": 35622,
     "location": "File > Import-Export",
     "description": "Import-Export three.js meshes",

+ 2 - 5
utils/exporters/blender/2.65/scripts/addons/io_mesh_threejs/export_threejs.py

@@ -42,7 +42,7 @@ DEFAULTS = {
 "bgalpha" : 1.0,
 
 "position" : [0, 0, 0],
-"rotation" : [-math.pi/2, 0, 0],
+"rotation" : [0, 0, 0],
 "scale"    : [1, 1, 1],
 
 "camera"  :
@@ -308,8 +308,7 @@ TEMPLATE_MODEL_ASCII = """\
 
 	"skinWeights" : [%(weights)s],
 
-	"animation"  : {%(animation)s},
-        "animations" : [%(animations)s]
+  "animations" : [%(animations)s]
 """
 
 TEMPLATE_VERTEX = "%g,%g,%g"
@@ -1573,7 +1572,6 @@ def generate_ascii_model(meshes, morphs,
     "bones"     : bones_string,
     "indices"   : indices_string,
     "weights"   : weights_string,
-    "animation" : generate_animation(option_animation_skeletal, option_frame_step, flipyz, 0),
     "animations" : generate_all_animations(option_animation_skeletal, option_frame_step, flipyz, option_frame_index_as_time)
     }
 
@@ -2569,7 +2567,6 @@ def save(operator, context, filepath = "",
          option_copy_textures = False,
          option_animation_morph = False,
          option_animation_skeletal = False,
-         option_all_animations = False,
          option_frame_step = 1,
          option_all_meshes = True,
          option_frame_index_as_time = False):