Fix #129297: Gizmo missing for unlocked layer when autolock inactive is on
`set_active_node` call from `grease_pencil_copy_data` resets inactive layer again as locked before executing the drawing code. Since property is only operated on layers, it is possible to remove the code from `set_active_node()` and only have it in `set_active_layer()`. Pull Request: https://projects.blender.org/blender/blender/pulls/129465
This commit is contained in:
committed by
Falk David
parent
93949b3433
commit
6cdac7bab8
@@ -3322,10 +3322,6 @@ blender::bke::greasepencil::TreeNode *GreasePencil::get_active_node()
|
||||
void GreasePencil::set_active_node(blender::bke::greasepencil::TreeNode *node)
|
||||
{
|
||||
this->active_node = reinterpret_cast<GreasePencilLayerTreeNode *>(node);
|
||||
|
||||
if (this->flag & GREASE_PENCIL_AUTOLOCK_LAYERS) {
|
||||
this->autolock_inactive_layers();
|
||||
}
|
||||
}
|
||||
|
||||
static blender::VectorSet<blender::StringRefNull> get_node_names(const GreasePencil &grease_pencil)
|
||||
|
||||
Reference in New Issue
Block a user