Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_outliner/outliner_select.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c
index 044d75b4722..064d6531bf4 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -1184,7 +1184,27 @@ static void outliner_set_properties_tab(bContext *C, TreeElement *te, TreeStoreE
BKE_gpencil_modifier_panel_expand(te->directdata);
}
else {
- BKE_modifier_panel_expand(te->directdata);
+ ModifierData *md = (ModifierData *)te->directdata;
+
+ switch ((ModifierType)md->type) {
+ case eModifierType_ParticleSystem:
+ context = BCONTEXT_PARTICLE;
+ break;
+ case eModifierType_Cloth:
+ case eModifierType_Softbody:
+ case eModifierType_Collision:
+ case eModifierType_Fluidsim:
+ case eModifierType_DynamicPaint:
+ case eModifierType_Fluid:
+ context = BCONTEXT_PHYSICS;
+ break;
+ default:
+ break;
+ }
+
+ if (context == BCONTEXT_MODIFIER) {
+ BKE_modifier_panel_expand(md);
+ }
}
}
break;