diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-10-04 16:53:57 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-10-04 20:11:13 +0300 |
commit | 5287eaac5b09ee61b71900fc0e64416550a88e0d (patch) | |
tree | f47d17faa2b4f9c4a8c7a9f3b1783bf0709dfd15 /source/blender/editors/object/object_edit.c | |
parent | f35bfbb25eacd95a976cbf248986be57c1fa88e7 (diff) |
Small cleanup
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 4759a3cb0db..40bb1c7378f 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1547,7 +1547,7 @@ static int move_to_collection_exec(bContext *C, wmOperator *op) } int collection_index = RNA_property_int_get(op->ptr, prop); - collection = BKE_collection_from_index(CTX_data_scene(C), collection_index); + collection = BKE_collection_from_index(scene, collection_index); if (collection == NULL) { BKE_report(op->reports, RPT_ERROR, "Unexpected error, collection not found"); return OPERATOR_CANCELLED; |