diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-29 13:46:54 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-29 13:48:12 +0300 |
commit | 2223d63c58c9a2125fb4a2e6ee1c780c781a95bb (patch) | |
tree | 42b820b7ffd2ebe4f71a51d6e05b73c1cc13fdd7 /source/blender/blenloader | |
parent | 3733be8731df978ec50cd283ff24b813bdd89df1 (diff) |
Refactor static override code to pass Main around.
Access to main database is actually rarely needed, but some custom
'apply' functions do need it (like Collections' overriding of objects or
children collections).
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 5402114c8f8..61762b5d7ed 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -3840,7 +3840,7 @@ static bool write_file_handle( const bool do_override = !ELEM(override_storage, NULL, bmain) && id->override_static; if (do_override) { - BKE_override_static_operations_store_start(override_storage, id); + BKE_override_static_operations_store_start(bmain, override_storage, id); } switch ((ID_Type)GS(id->name)) { |