[Bf-blender-cvs] [5287eaac5b0] master: Small cleanup

Dalai Felinto noreply at git.blender.org
Fri Oct 4 19:11:22 CEST 2019


Commit: 5287eaac5b09ee61b71900fc0e64416550a88e0d
Author: Dalai Felinto
Date:   Fri Oct 4 10:53:57 2019 -0300
Branches: master
https://developer.blender.org/rB5287eaac5b09ee61b71900fc0e64416550a88e0d

Small cleanup

===================================================================

M	source/blender/editors/object/object_edit.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list