Page MenuHome

Fix T84600: prevent bone groups operators on proxies/overrides
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Jan 17 2021, 5:45 PM.

Details

Summary

Editing bone groups is not supported on proxies/overrides [changes a re
lost on file reload], need to do proper polling (and also prevent this
from rna) for:

  • adding bone groups
  • removing bone groups
  • renaming bone groups
  • setting bone groups colors

Previously, this was hinted at by setting the layout inactive, with
preoper polls, this is now not needed anymore.

note: Selection of bone groups actually makes sense here and is
supported, so this is not prevented in this patch, but UI wise this is
not nice because one cannot set an active_index (aka select) in the UI
list.

Diff Detail

Repository
rB Blender
Branch
T84600 (branched from master)
Build Status
Buildable 12236
Build 12236: arc lint + arc unit

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Jan 17 2021, 5:45 PM
Bastien Montagne (mont29) requested changes to this revision.Jan 18 2021, 12:00 PM

Looks fine mostly, just details in notes below.

source/blender/editors/armature/pose_group.c
65

space ;)

66

proxies or library overrides

source/blender/makesrna/intern/rna_pose.c
144

No need to check for NULL reports I think? Iirc BKE_report API deals properly with them, and just prints to console then.

This revision now requires changes to proceed.Jan 18 2021, 12:00 PM
Philipp Oeser (lichtwerk) marked 3 inline comments as done.Jan 18 2021, 1:33 PM
This revision is now accepted and ready to land.Jan 18 2021, 2:23 PM
Hans Goudey (HooglyBoogly) added inline comments.
source/blender/editors/armature/pose_group.c
66

Also, "bonegroups" should be two words, right?

source/blender/editors/armature/pose_group.c
66

whoops, read that too late... yep, this should probably be two words, will change in a bit