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.
This commit is contained in:
Hans Goudey 2020-12-17 23:35:05 -06:00
parent 9dbc014af7
commit 095b693614
1 changed files with 1 additions and 0 deletions

View File

@ -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: