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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-10-21 12:04:39 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-10-21 22:15:32 +0300
commit23ec1f90e71b8c2a63f42811ab4a7729f005f265 (patch)
tree4bca245e4afb9c706687c8c1aec6ddb131609cba
parent9daf668991b986492c6ec8eccec0a337a8d29340 (diff)
Fix T81896: Outliner missing redraw after "Set Parent (Without Inverse)"
Outliners listener (outliner_main_region_listener) needs ND_PARENT notifier to redraw, the parenting operator only spawned ND_TRANSFORM (which doesnt do a redraw). Maniphest Tasks: T81896 Differential Revision: https://developer.blender.org/D9295
-rw-r--r--source/blender/editors/object/object_relations.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index 780ce487550..de3e5f3d5f9 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -1244,6 +1244,7 @@ static int parent_noinv_set_exec(bContext *C, wmOperator *op)
DEG_relations_tag_update(bmain);
WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL);
+ WM_event_add_notifier(C, NC_OBJECT | ND_PARENT, NULL);
return OPERATOR_FINISHED;
}