Blender Git Commits

Blender Git "undo-experiments" branch commits.

Page: 7 / 8

January 2, 2020, 16:03 (GMT)
undoexp: fix crashes with even trivial relationships (like parent ones).

Even if we re-used an old ID, it may have some pointers to other IDs
remapped to newly read data, e.g. the `parent` of an object...

So CoW/evaluated data in re-used despgraph needs to be flushed in those
cases.
January 2, 2020, 16:00 (GMT)
undoexp: Add new 'UNDO_OLD_ID_REUSED' ID tag.

We need to be able to distinguish between reused IDs and newly read
ones, and 'NEW' tag is not enough here, as it gets cleared in read code.

This will be used in next commit to inform depsgraph that some re-used
old IDs need at least a COW refresh, as they are using ID pointers to
newly read data.
January 2, 2020, 09:48 (GMT)
Undoexp: do not tag re-used IDs with LIB_TAG_NEW.
January 2, 2020, 09:45 (GMT)
Merge branch 'master' into undo-experiments
December 30, 2019, 16:58 (GMT)
undoexp: do not clear icon_id of re-used IDs.

Those icon_id's remain valid, and allocated in the preview system,
clearing them here will lead to asserts...
December 30, 2019, 14:30 (GMT)
Merge branch 'master' into undo-experiments
December 23, 2019, 16:38 (GMT)
Merge branch 'master' into undo-experiments
December 10, 2019, 10:58 (GMT)
Fix stupid misplacement of depsgraphs extraction/restoration.
December 10, 2019, 10:14 (GMT)
Merge branch 'master' into undo-experiments
November 29, 2019, 09:45 (GMT)
Undo: Re-use existing IDs from old bmain: do not search by name.

This is actually a fairly bad idea, since IDs can be renamed...

Only search by pointer value now, this *should* work in all expected
cases once undo/redo fully reuses unchanged data-blocks.
November 29, 2019, 09:39 (GMT)
Undo: save/restore DEG closer to the actual undostep.
November 29, 2019, 09:34 (GMT)
Revert "Fully WIP code."

This reverts commit d726305d98db6ccfb1f3b4cd9b7b75540e606faa.

Need better cleaner changes here.
November 29, 2019, 09:17 (GMT)
Merge branch 'master' into undo-experiments
November 28, 2019, 15:06 (GMT)
Merge branch 'master' into undo-experiments
November 28, 2019, 11:40 (GMT)
Fully WIP code.

Don't have proper solution yet for issue described in comment in
readfile.h, still investigating...
November 27, 2019, 13:46 (GMT)
Merge branch 'master' into undo-experiments
November 18, 2019, 13:17 (GMT)
Undo spped-up: remove collections from ignored IDs.

Looks like this is not crashing anymore (though still very bugy), the
others (UI dtat-blocks) we do not really care anyway...
November 18, 2019, 11:41 (GMT)
Merge branch 'master' into undo-experiments
November 15, 2019, 08:56 (GMT)
undo experiments: actually write at leat one memchunck per ID.

Checked that before, but missed the fact that the flush was done after a
whole ID type process in the main saving loop, now we actually do it
after every ID when using mem undo file saving.

Besides fixing the stupid issue with lots of unchanged IDs being
detected as changed when reading back the undo step, this should also
help reduce undo memory usage in some cases (although I could not detect
that with some quick test...).
November 15, 2019, 08:23 (GMT)
Merge branch 'master' into undo-experiments
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021