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
This commit is contained in:
parent
9fdbffb4b2
commit
fede272d2c
Notes:
blender-bot
2023-02-14 03:38:55 +01:00
Referenced by issue #61737, Gizmo refresh issue
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue