mirror of
https://github.com/blender/blender-addons.git
synced 2025-07-20 16:51:10 +00:00
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:
@ -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):
|
||||
|
Reference in New Issue
Block a user