Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-11-02 13:20:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-02 13:20:03 +0300
commit7a9693fa8ba2132e09a892dfa0e60736b741002a (patch)
tree3c233bf23a355ebeec87574b92097fb0e09fea29 /source/blender/editors/object/object_group.c
parent56bcda8bc63fa8461c8abe05f1d501fd3f536f45 (diff)
Library API: pass Main struct to unlink functions
Diffstat (limited to 'source/blender/editors/object/object_group.c')
-rw-r--r--source/blender/editors/object/object_group.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_group.c b/source/blender/editors/object/object_group.c
index 3c43f2729bd..76a8a68c42d 100644
--- a/source/blender/editors/object/object_group.c
+++ b/source/blender/editors/object/object_group.c
@@ -521,12 +521,13 @@ void OBJECT_OT_group_remove(wmOperatorType *ot)
static int group_unlink_exec(bContext *C, wmOperator *UNUSED(op))
{
+ Main *bmain = CTX_data_main(C);
Group *group = CTX_data_pointer_get_type(C, "group", &RNA_Group).data;
if (!group)
return OPERATOR_CANCELLED;
- BKE_group_unlink(group);
+ BKE_group_unlink(bmain, group);
WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, NULL);