Explorar o código

fix use_inherit_scale deprecation

Minjae Kim hai 1 ano
pai
achega
2db443a23a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      io_scene_godot/converters/animation/animation_data.py

+ 2 - 1
io_scene_godot/converters/animation/animation_data.py

@@ -60,7 +60,8 @@ class ObjectAnimationExporter:
             if isinstance(self.blender_object.data, bpy.types.Armature):
                 for rbone in self.blender_object.data.bones:
                     if (rbone.use_inherit_rotation is False or
-                            rbone.use_inherit_scale is False):
+                            rbone.inherit_scale == 'NONE' or 
+                            rbone.inherit_scale == 'NONE_LEGACY'):
                         has_non_inherit_bone = True
                         break
             self.need_baking = (