소스 검색

fix use_inherit_scale deprecation

Minjae Kim 1 년 전
부모
커밋
2db443a23a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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 = (