瀏覽代碼

Merge pull request #421 from widiba03304/master

Fix use_inherit_scale deprecation, which is removed in 4.0
Lu Jiacheng 1 年之前
父節點
當前提交
2394c7a371
共有 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 = (