[Bf-blender-cvs] [fede272d2c0] master: Fix T61737: Gizmo refresh issue

Sebastian Parborg noreply at git.blender.org
Sat Mar 9 11:48:37 CET 2019


Commit: fede272d2c061dbe95993ce790525166e80e80c1
Author: Sebastian Parborg
Date:   Sat Mar 9 11:41:04 2019 +0100
Branches: master
https://developer.blender.org/rBfede272d2c061dbe95993ce790525166e80e80c1

Fix T61737: Gizmo refresh issue

When using a transform.select_orientation keyboard shortcut, the
orientation change would not update the viewport.
So if you had the move gizmo visible, it would not change transform
orientation.

Reviewed By: Brecht

Differential Revision: http://developer.blender.org/D4386

===================================================================

M	source/blender/editors/transform/transform_ops.c

===================================================================

diff --git a/source/blender/editors/transform/transform_ops.c b/source/blender/editors/transform/transform_ops.c
index a1bb970e844..8886a0d49e5 100644
--- a/source/blender/editors/transform/transform_ops.c
+++ b/source/blender/editors/transform/transform_ops.c
@@ -161,11 +161,14 @@ const EnumPropertyItem rna_enum_transform_mode_types[] =
 static int select_orientation_exec(bContext *C, wmOperator *op)
 {
 	Scene *scene = CTX_data_scene(C);
+	View3D *v3d = CTX_wm_view3d(C);
+
 	int orientation = RNA_enum_get(op->ptr, "orientation");
 
 	BKE_scene_orientation_slot_set_index(&scene->orientation_slots[SCE_ORIENT_DEFAULT], orientation);
 
 	WM_event_add_notifier(C, NC_SCENE | ND_TOOLSETTINGS, NULL);
+	WM_event_add_notifier(C, NC_SPACE | ND_SPACE_VIEW3D, v3d);
 
 	struct wmMsgBus *mbus = CTX_wm_message_bus(C);
 	WM_msg_publish_rna_prop(mbus, &scene->id, scene, TransformOrientationSlot, type);



More information about the Bf-blender-cvs mailing list