Blender Git Loki

Blender Git "undo-experiments-idnames" branch commits.

January 24, 2020, 15:21 (GMT)
Merge branch 'undo-experiments' into undo-experiments-idnames
January 24, 2020, 14:57 (GMT)
Merge branch 'master' into undo-experiments
January 14, 2020, 12:42 (GMT)
Cleanup .orig files from some merge...
January 14, 2020, 12:37 (GMT)
Merge branch 'undo-experiments' into undo-experiments-idnames
January 14, 2020, 12:37 (GMT)
Merge branch 'master' into undo-experiments
January 13, 2020, 15:52 (GMT)
Merge branch 'undo-experiments' into undo-experiments-idnames
January 13, 2020, 15:51 (GMT)
Merge branch 'master' into undo-experiments
January 10, 2020, 11:09 (GMT)
Merge branch 'undo-experiments' into undo-experiments-idnames
January 10, 2020, 11:09 (GMT)
undoexp: fix for missed func signature change.
January 10, 2020, 11:06 (GMT)
Merge branch 'undo-experiments' into undo-experiments-idnames

Conflicts:
source/blender/blenkernel/BKE_blender_undo.h
source/blender/blenkernel/intern/blender_undo.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/undo/memfile_undo.c
January 10, 2020, 10:16 (GMT)
Merge branch 'master' into undo-experiments
January 10, 2020, 10:10 (GMT)
undoexp: Fix major flaw in general logic of unchanged data detection.

Am not sure why it seemed to work that well so far... But using marker
saying that data did not change between n-2 and n-1 step when undoing
from n to n-1 is not really smart.

Fixed that by adding a 'is_identical_future' flag to memfile chunks,
which is set when storing the next undo step. And then using undo
direction to decide which flag to use to detect unchanged data.

This seesm to work to some extend, although for some reason very most
recent undo step seems to be evaluated when doing the first undo, not
sure why... Need to test that with actual working undo code in
undo-experiments-idnames branch anyway.
January 9, 2020, 16:13 (GMT)
undoexp: more cleanup of debug printf.
January 9, 2020, 15:58 (GMT)
Merge branch 'undo-experiments' into undo-experiments-idnames
January 9, 2020, 15:55 (GMT)
undoexp: Silent/remove some debug prints.
January 9, 2020, 10:25 (GMT)
Merge branch 'undo-experiments' into undo-experiments-idnames
January 9, 2020, 10:21 (GMT)
Merge branch 'master' into undo-experiments
January 9, 2020, 10:19 (GMT)
undoexp: refine handling of 'undo barrier'.

This also fixes the mesh keeping its edited shape when undoing out of
edit mode e.g.
January 8, 2020, 14:51 (GMT)
undoexp: Tag renamed ID undo steps as 'full barrier'.

I.E. re-using data from old bmain is forbidden around an ID renaming.

This is a bit over-protective in most cases, since renaming an ID does
change its memfile data. So renamed ID should be reloaded from memfile
anyway.

But the problems might come (in some specific scenarii involving 'name
switching' between two IDs) from name-based lookup. Those could lead to
remapping some ID pointers in unchanged data-blocks to the wrong ID...
January 8, 2020, 14:49 (GMT)
undoexp: Move old-data-management code to memfile undo callbacks.

Does not really make any sense to do that for any other kind of undo
currently, so better keep it in dedicated undotype callbacks.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021