Browse Source

fix use_inherit_scale deprecation

Minjae Kim 1 năm trước cách đây
mục cha
commit
2db443a23a

+ 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):
             if isinstance(self.blender_object.data, bpy.types.Armature):
                 for rbone in self.blender_object.data.bones:
                 for rbone in self.blender_object.data.bones:
                     if (rbone.use_inherit_rotation is False or
                     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
                         has_non_inherit_bone = True
                         break
                         break
             self.need_baking = (
             self.need_baking = (