Преглед изворни кода

Merge pull request #1407 from Palmer-JC/master

Blender Exporter 5.0.6
David Catuhe пре 8 година
родитељ
комит
732d18cc4c

BIN
Exporters/Blender/Blender2Babylon-5.0.zip


+ 1 - 1
Exporters/Blender/src/__init__.py

@@ -1,7 +1,7 @@
 bl_info = {
     'name': 'Babylon.js',
     'author': 'David Catuhe, Jeff Palmer',
-    'version': (5, 0, 5),
+    'version': (5, 0, 6),
     'blender': (2, 76, 0),
     'location': 'File > Export > Babylon.js (.babylon)',
     'description': 'Export Babylon.js scenes (.babylon)',

+ 1 - 1
Exporters/Blender/src/mesh.py

@@ -88,7 +88,7 @@ class Mesh(FCurveAnimatable):
             self.scaling  = Vector((1, 1, 1))
             
         # ensure no unapplied rotation or scale, when there is an armature
-        self.hasUnappliedTransforms = (scale.x != 1 or scale.y != 1 or scale.z != 1 or
+        self.hasUnappliedTransforms = (self.scaling.x != 1 or self.scaling.y != 1 or self.scaling.z != 1 or
                 (hasattr(self, 'rotation'          ) and (self.rotation          .x != 0 or self.rotation          .y != 0 or self.rotation          .z != 0)) or 
                 (hasattr(self, 'rotationQuaternion') and (self.rotationQuaternion.x != 0 or self.rotationQuaternion.y != 0 or self.rotationQuaternion.z != 0 or self.rotationQuaternion.w != 1))
                 )