Fix: don't show Geometry Nodes modifier gizmos for unselected objects
It's unexpected that the gizmos show for unselected objects. Pull Request: https://projects.blender.org/blender/blender/pulls/130144
This commit is contained in:
committed by
Falk David
parent
6e16447145
commit
3f3f8d315d
@@ -418,7 +418,12 @@ void foreach_active_gizmo(const bContext &C,
|
||||
}
|
||||
foreach_active_gizmo_in_open_editors(*wm, nullptr, nullptr, compute_context_builder, fn);
|
||||
|
||||
if (const Object *active_object = CTX_data_active_object(&C)) {
|
||||
if (const Base *active_base = CTX_data_active_base(&C)) {
|
||||
if (!(active_base->flag & BASE_SELECTED)) {
|
||||
return;
|
||||
}
|
||||
Object *active_object = active_base->object;
|
||||
|
||||
if (const ModifierData *md = BKE_object_active_modifier(active_object)) {
|
||||
if (!(md->mode & eModifierMode_Realtime)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user