Pratik Borhade
d00de988c3
WM: avoid unnecessary undo step creation when duplicating
Calling duplicate operation without selecting anything registers an undo
step. If nothing is selected (keyframe, curve, object, etc.), cancel the
operator execution to prevent undo push.
Patch improves following operators:
- ACTION_OT_duplicate
- GPENCIL_OT_duplicate
- GRAPH_OT_duplicate
- MESH_OT_duplicate
- NODE_OT_duplicate
- OBJECT_OT_duplicate
Reviewed By: campbellbarton
Ref D14511
2022-04-05 20:30:00 +10:00
..
2022-02-11 09:14:36 +11:00
2022-04-04 13:34:42 +10:00
2022-04-04 18:42:01 -05:00
2022-04-05 08:02:01 +10:00
2022-04-05 08:02:01 +10:00
2022-02-28 14:37:07 +01:00
2022-03-28 14:41:31 +11:00
2022-04-01 15:04:18 +02:00
2022-02-11 14:23:54 +11:00
2022-04-01 16:30:45 +02:00
2022-04-04 14:28:55 +02:00
2022-04-05 20:30:00 +10:00
2022-03-28 14:14:31 +11:00
2022-04-04 11:57:58 +02:00
2022-04-04 10:28:10 -05:00
2022-04-04 22:33:20 +02:00
2022-04-04 16:38:30 +02:00
2022-03-16 11:58:22 +11:00
2022-04-04 12:43:54 +02:00
2022-04-05 07:49:36 +10:00
2022-04-05 08:02:01 +10:00
2022-04-04 09:59:45 -05:00
2022-04-04 13:34:42 +10:00
2022-04-04 08:46:53 -05:00
2022-04-04 13:34:42 +10:00
2022-04-05 08:02:01 +10:00
2022-04-05 09:30:26 +10:00
2022-04-04 13:34:42 +10:00
2022-03-02 10:05:15 -08:00
2022-04-05 09:24:27 +02:00
2022-03-25 12:04:14 +11:00