COW operators: Fix VIEW3D_OT_view_all cursor not updating with shift+c center cursor
This differential fixes a bug for resetting view (shift+c). Bug description: When 3D cursor is placed randomly somewhere, and shift+c is pressed, the cursor is not shown to reset at world center. Reviewers: sergey, aligorith, brita_ Reviewed By: brita_ Subscribers: brita_ Differential Revision: https://developer.blender.org/D3423
This commit is contained in:
parent
eb2491363a
commit
4e5d5b3a9e
Notes:
blender-bot
2023-02-14 04:17:14 +01:00
Referenced by issue #59904, Cannot change input field after changing value in Graph Editor
|
@ -2765,6 +2765,10 @@ static int view3d_all_exec(bContext *C, wmOperator *op)
|
|||
view3d_from_minmax(C, v3d, ar, min, max, true, smooth_viewtx);
|
||||
}
|
||||
|
||||
if (center) {
|
||||
DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE);
|
||||
}
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue