Fix T78966: Center cursor doesn't refresh the UI
This commit is contained in:
parent
123e29c274
commit
5b099a25d7
Notes:
blender-bot
2023-02-13 21:46:21 +01:00
Referenced by issue #78966, Shift+C not zeroing in Panel 3D Cursor | Location
|
@ -2945,6 +2945,9 @@ static int view3d_all_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
|
||||
if (center) {
|
||||
struct wmMsgBus *mbus = CTX_wm_message_bus(C);
|
||||
WM_msg_publish_rna_prop(mbus, &scene->id, &scene->cursor, View3DCursor, location);
|
||||
|
||||
DEG_id_tag_update(&scene->id, ID_RECALC_COPY_ON_WRITE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue