[Bf-blender-cvs] [095b6936140] master: Outliner: Set active modifier on click

Hans Goudey noreply at git.blender.org
Fri Dec 18 06:35:11 CET 2020


Commit: 095b69361403bacd322172d6293b0faeee40b44e
Author: Hans Goudey
Date:   Thu Dec 17 23:35:05 2020 -0600
Branches: master
https://developer.blender.org/rB095b69361403bacd322172d6293b0faeee40b44e

Outliner: Set active modifier on click

The outliner already expands the panel for the modifier you click on,
this just extends that idea to also set it active, which is consistent
with behavior of active and selected items elsewhere in Blender.

===================================================================

M	source/blender/editors/space_outliner/outliner_select.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c
index fa8bce9df6a..658e6adbe33 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -1185,6 +1185,7 @@ static void outliner_set_properties_tab(bContext *C, TreeElement *te, TreeStoreE
           }
           else {
             ModifierData *md = (ModifierData *)te->directdata;
+            BKE_object_modifier_set_active(ob, md);
 
             switch ((ModifierType)md->type) {
               case eModifierType_ParticleSystem:



More information about the Bf-blender-cvs mailing list