From 341a5a993e6b71953b269ab57326b2c3d30a418b Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Mon, 16 Oct 2023 23:32:52 +0200 Subject: [PATCH] Copy Attributes: fix Copy Visual Scale The Copy Visual Scale pose operator did not work because it still relied on the old `use_inherit_scale` bone property. That was replaced with an `inherit_scale` enum. This commit makes the operator check against the `"NONE"` and `"NONE_LEGACY"` values of `inherit_scale`. --- space_view3d_copy_attributes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py index 279fd66d..adb5483e 100644 --- a/space_view3d_copy_attributes.py +++ b/space_view3d_copy_attributes.py @@ -153,9 +153,10 @@ def pVisRotExec(bone, active, context): def pVisScaExec(bone, active, context): obj_bone = bone.id_data - bone.scale = getmat(bone, active, context, - not obj_bone.data.bones[bone.name].use_inherit_scale)\ - .to_scale() + bone.scale = getmat( + bone, active, context, + obj_bone.data.bones[bone.name].inherit_scale not in {'NONE', 'NONE_LEGACY'} + ).to_scale() def pDrwExec(bone, active, context): -- 2.11.4.GIT