Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 341a5a9

Browse files
committed
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`.
1 parent 5680981 commit 341a5a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

space_view3d_copy_attributes.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@ def pVisRotExec(bone, active, context):
153153

154154
def pVisScaExec(bone, active, context):
155155
obj_bone = bone.id_data
156-
bone.scale = getmat(bone, active, context,
157-
not obj_bone.data.bones[bone.name].use_inherit_scale)\
158-
.to_scale()
156+
bone.scale = getmat(
157+
bone, active, context,
158+
obj_bone.data.bones[bone.name].inherit_scale not in {'NONE', 'NONE_LEGACY'}
159+
).to_scale()
159160

160161

161162
def pDrwExec(bone, active, context):

0 commit comments

Comments
 (0)