diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-02 13:20:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-02 13:20:03 +0300 |
commit | 7a9693fa8ba2132e09a892dfa0e60736b741002a (patch) | |
tree | 3c233bf23a355ebeec87574b92097fb0e09fea29 /source/blender/makesrna | |
parent | 56bcda8bc63fa8461c8abe05f1d501fd3f536f45 (diff) |
Library API: pass Main struct to unlink functions
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c index 12994b02c64..8e28b35b0ed 100644 --- a/source/blender/makesrna/intern/rna_main_api.c +++ b/source/blender/makesrna/intern/rna_main_api.c @@ -226,7 +226,7 @@ static void rna_Main_objects_remove(Main *bmain, ReportList *reports, PointerRNA { Object *object = object_ptr->data; if (ID_REAL_USERS(object) <= 0) { - BKE_object_unlink(object); /* needed or ID pointers to this are not cleared */ + BKE_object_unlink(bmain, object); /* needed or ID pointers to this are not cleared */ BKE_libblock_free(bmain, object); RNA_POINTER_INVALIDATE(object_ptr); } @@ -539,7 +539,7 @@ static Group *rna_Main_groups_new(Main *bmain, const char *name) static void rna_Main_groups_remove(Main *bmain, PointerRNA *group_ptr) { Group *group = group_ptr->data; - BKE_group_unlink(group); + BKE_group_unlink(bmain, group); BKE_libblock_free(bmain, group); RNA_POINTER_INVALIDATE(group_ptr); } |