diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-07-05 06:46:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-07-05 06:48:17 +0300 |
commit | 4a08b974f44ef43e7c163f47dd6521df96e0b180 (patch) | |
tree | 1aa8be4e90b87b237162c72454adef4af1c14b29 /source/blender/editors/include/ED_undo.h | |
parent | fdcfc263e97324dd991b7251143e6403c61f3c50 (diff) |
Workaround T61948: Undo steps created for non-paint operations
Changing the brush size for example,
was adding redundant undo steps in paint-modes.
For now, don't store undo steps for property changes
in paint & edit modes.
While not ideal, this is similar to 2.7x behavior.
Diffstat (limited to 'source/blender/editors/include/ED_undo.h')
-rw-r--r-- | source/blender/editors/include/ED_undo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_undo.h b/source/blender/editors/include/ED_undo.h index ebc50e186a2..fa2630ba726 100644 --- a/source/blender/editors/include/ED_undo.h +++ b/source/blender/editors/include/ED_undo.h @@ -54,6 +54,9 @@ bool ED_undo_is_valid(const struct bContext *C, const char *undoname); bool ED_undo_is_memfile_compatible(const struct bContext *C); +/* Unfortunate workaround for limits mixing undo systems. */ +bool ED_undo_is_legacy_compatible_for_property(struct bContext *C, struct ID *id); + void ED_undo_object_editmode_restore_helper(struct bContext *C, struct Object **object_array, uint object_array_len, |