diff options
author | Bastien Montagne <bastien@blender.org> | 2020-11-03 13:39:36 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-11-03 13:40:29 +0300 |
commit | 5610ccdc080497042a24592432ade575e2fab489 (patch) | |
tree | e911a765f69b0bd2ec143c7f001733885bec76a4 /source/blender/blenkernel/intern/simulation.cc | |
parent | da03eb854b81f4b8aa94c85e0b87314e2bcd1c88 (diff) |
Add a callback to `IDTypeInfo` to allow preservation of some data accross memfile undos
This is essentially adding that new callback, and using it only for already
existing Scene's 3DCursor.
Note that the place where this is called has been moved again, after all
have been lib-linked, such that those callbacks may also work on ID pointers.
Maniphest Tasks: T71759
Differential Revision: https://developer.blender.org/D9237
Diffstat (limited to 'source/blender/blenkernel/intern/simulation.cc')
-rw-r--r-- | source/blender/blenkernel/intern/simulation.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/simulation.cc b/source/blender/blenkernel/intern/simulation.cc index 2e1f8bd581e..6e4ce2eaee2 100644 --- a/source/blender/blenkernel/intern/simulation.cc +++ b/source/blender/blenkernel/intern/simulation.cc @@ -171,6 +171,8 @@ IDTypeInfo IDType_ID_SIM = { /* blend_read_data */ simulation_blend_read_data, /* blend_read_lib */ simulation_blend_read_lib, /* blend_read_expand */ simulation_blend_read_expand, + + /* blend_read_undo_preserve */ NULL, }; void *BKE_simulation_add(Main *bmain, const char *name) |