diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-01-15 16:57:02 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-01-16 19:11:03 +0300 |
commit | 72ec6dbb0b3ff8a0bbec1f2f70c30450d6713ddd (patch) | |
tree | 7e48ea82355c0ef551709f8946541f159223435a /source/blender/editors/space_outliner | |
parent | 436eea2d93b4a4b6b6b9e5b3d05c5cb01f788c83 (diff) |
Static overrides API: add functions to create overrides from several datablocks at once.
This simplifies remapping task, since you don't have to ensure your
overrides are created in the correct dependency order.
Uses famous LIB_TAG_DOIT to mark IDs to be overridden.
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c index d2c40192664..58605f3bec8 100644 --- a/source/blender/editors/space_outliner/outliner_tools.c +++ b/source/blender/editors/space_outliner/outliner_tools.c @@ -461,7 +461,7 @@ static void id_static_override_cb( { if (ID_IS_LINKED(tselem->id) && (tselem->id->tag & LIB_TAG_EXTERN)) { Main *bmain = CTX_data_main(C); - ID *override_id = BKE_override_static_create_from(bmain, tselem->id); + ID *override_id = BKE_override_static_create_from_id(bmain, tselem->id); if (override_id != NULL) { BKE_main_id_clear_newpoins(bmain); } |