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`.
This commit is contained in:
Damien Picard
2023-10-16 23:32:52 +02:00
parent 5680981032
commit 341a5a993e

View File

@ -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):