From 6ecab6dd8e48d564a2b43e0e81e79d079e8b4c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Wed, 28 Dec 2016 17:30:58 +0100 Subject: Revert particle system and point cache removal in blender2.8 branch. This reverts commit 5aa19be91263a249ffae75573e3b32f24269d890 and b4a721af694817fa921b119df83d33ede7d7fed0. Due to postponement of particle system rewrite it was decided to put particle code back into the 2.8 branch for the time being. --- source/blender/editors/space_outliner/outliner_select.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '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 a9f834c509f..a73e160f357 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -617,6 +617,20 @@ static eOLDrawState tree_element_active_modifier( return OL_DRAWSEL_NONE; } +static eOLDrawState tree_element_active_psys( + bContext *C, Scene *UNUSED(scene), TreeElement *UNUSED(te), TreeStoreElem *tselem, const eOLSetState set) +{ + if (set != OL_SETSEL_NONE) { + Object *ob = (Object *)tselem->id; + + WM_event_add_notifier(C, NC_OBJECT | ND_PARTICLE | NA_EDITED, ob); + +// XXX extern_set_butspace(F7KEY, 0); + } + + return OL_DRAWSEL_NONE; +} + static int tree_element_active_constraint( bContext *C, TreeElement *UNUSED(te), TreeStoreElem *tselem, const eOLSetState set) { @@ -795,6 +809,8 @@ eOLDrawState tree_element_type_active( return OL_DRAWSEL_NORMAL; } break; + case TSE_LINKED_PSYS: + return tree_element_active_psys(C, scene, te, tselem, set); case TSE_POSE_BASE: return tree_element_active_pose(C, scene, te, tselem, set); case TSE_POSE_CHANNEL: -- cgit v1.2.3