Copying the flags resolves, but this can be an update problem in dephsgraph.
So it needs a bigger investigation.
Ref T59713
Differential D5281
Fix T59713: Armature layer dots not updated on changes Authored by Germano Cavalcante (mano-wii) on Jul 17 2019, 3:40 PM. Tags None Subscribers None
Details
Copying the flags resolves, but this can be an update problem in dephsgraph. Ref T59713
Diff Detail
Event TimelineComment Actions Don't think this is an update problem in dependency graph: the layers act as "input" to it. P.S. I am confused with title of this revision and the actual changes, not sure why this will be related on clipping region. Comment Actions layer and layer_protected are user-edited data. If there is a problem with those when joining armature, that's something to be submitted as a separate fix. The original report is only about layer_used runtime data, which controls the drawing of dots in the UI. The problem is that this is not getting refreshed properly. This used to happen in the drawing code, but was no longer working for reasons explained in: This could be handled as part of the dependency graph, but I'm not sure that's ideal either since this isn't about evaluated data. The simple solution would be to rename rna_Armature_layer_used_refresh to BKE_armature_refresh_layer_used and move it to blenkernel. Then call that from all operators that can affect layer_used. Comment Actions
Comment Actions Looks good, now it can be added to more operators. From what I can tell these need it:
Comment Actions
I wonder why it is necessary to refresh the layer_used when calling the operators ARMATURE_OT_fill, ARMATURE_OT_bone_layers and POSE_OT_bone_layers Comment Actions Fill adds the bone on the active layer as far as I can tell, and that one may be empty and become used. The bone_layers operators move bones to another layer. Comment Actions Adding a bone with shift + A also does not seem to update the dots in the latest patch. Comment Actions
You're right, ARMATURE_OT_fill adds the bones to the active layers Comment Actions I also noticed adding a new armature with shift + A in object mode does not immediately show used layers, when entering edit mode.
| ||||||||||||||||