[Bf-blender-cvs] [b9718a4795c] soc-2020-io-performance: Refactor: move functions out of Importer class

Ankit Meel noreply at git.blender.org
Tue Jul 21 12:28:06 CEST 2020


Commit: b9718a4795cacec48ef4b7c14419ce6e65335d8b
Author: Ankit Meel
Date:   Tue Jul 21 15:57:59 2020 +0530
Branches: soc-2020-io-performance
https://developer.blender.org/rBb9718a4795cacec48ef4b7c14419ce6e65335d8b

Refactor: move functions out of Importer class

It got left out of the last commit.

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

M	source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc

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

diff --git a/source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc b/source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc
index 2424ffdc349..eec9cb66793 100644
--- a/source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc
+++ b/source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc
@@ -73,10 +73,10 @@ static void print_obj_data(Vector<std::unique_ptr<OBJRawObject>> &list_of_object
   }
 }
 
-void OBJImporter::raw_to_blender_objects(Main *bmain,
-                                         Scene *scene,
-                                         Vector<std::unique_ptr<OBJRawObject>> &list_of_objects,
-                                         const GlobalVertices global_vertices)
+static void raw_to_blender_objects(Main *bmain,
+                                   Scene *scene,
+                                   Vector<std::unique_ptr<OBJRawObject>> &list_of_objects,
+                                   const GlobalVertices global_vertices)
 {
   OBJParentCollection parent{bmain, scene};
   for (std::unique_ptr<OBJRawObject> &curr_object : list_of_objects) {



More information about the Bf-blender-cvs mailing list