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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-05-08 08:22:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-08 08:22:52 +0300
commit469d43b1dbc54d2afcbfe104a2d8ca9c03df9b81 (patch)
tree380520b1c0566a8f2687b42156c0cd82ff9a4e97 /source/blender/editors/physics
parentbf593a8631e84a258d1c8e5e7b198b458811c11b (diff)
WM: publish Object.mode changes on mode switching
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/particle_edit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 5c476df3dd3..d343264c2c9 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -80,6 +80,7 @@
#include "WM_api.h"
#include "WM_types.h"
+#include "WM_message.h"
#include "RNA_access.h"
#include "RNA_define.h"
@@ -4433,6 +4434,7 @@ static int particle_edit_toggle_poll(bContext *C)
static int particle_edit_toggle_exec(bContext *C, wmOperator *op)
{
+ struct wmMsgBus *mbus = CTX_wm_message_bus(C);
Depsgraph *depsgraph = CTX_data_depsgraph(C);
Scene *scene = CTX_data_scene(C);
Object *ob = CTX_data_active_object(C);
@@ -4469,6 +4471,8 @@ static int particle_edit_toggle_exec(bContext *C, wmOperator *op)
DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
+ WM_msg_publish_rna_prop(mbus, &ob->id, ob, Object, mode);
+
return OPERATOR_FINISHED;
}