Blender Git Loki

Git Commits -> Revision de8e130

Revision de8e130 by Demeter Dzadik (master)
November 9, 2021, 11:16 (GMT)
Armature Make/Clear Parent: Grey out options that don't do anything

In armature edit mode, the Make/Clear Parent operators don't do anything
in various cases, but only one of these cases was previously indicated,
and it was indicated by hiding the option completely instead of graying
it out.

Clear Parent (Alt+P) problems fixed:
- "Clear Parent" option always showed up, even when none of the selected
bones had a parent.
- "Disconnect Bone" option always showed up, even when use_connected on
all selected bones was already false.

Make Parent (Ctrl+P) problems fixed:
- "Keep Offset" option didn't show up when all selected bones' parent
was already the active bone. This was correct, and this patch tries to
make all behaviours consistent with this.
- "Connected" option always showed up, even when all selected bones'
parent was already the active bone, and they all had use_connect set
to True.

With this patch all options show up all the time, but in cases where
they would do nothing, they will be grayed out.

Reviewed By: sybren

Differential Revision: https://developer.blender.org/D6100

Commit Details:

Full Hash: de8e13036ba43dfb515293140079d9f0b689d473
Parent Commit: 4e24789
Committed By: Sybren A. Stüvel
Lines Changed: +77, -16

1 Modified Path:

/source/blender/editors/armature/armature_relations.c (+77, -16) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021