Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/importer/obj_importer.cc
| Context not available. | |||||
| /** | /** | ||||
| * Make Blender Mesh, Curve etc from Geometry and add them to the import collection. | * Make Blender Mesh, Curve etc from Geometry and add them to the import collection. | ||||
| */ | */ | ||||
| static void geometry_to_blender_objects( | static void geometry_to_blender_objects(Main *bmain, | ||||
| Main *bmain, | Scene *scene, | ||||
| Scene *scene, | ViewLayer *view_layer, | ||||
| ViewLayer *view_layer, | const OBJImportParams &import_params, | ||||
| const OBJImportParams &import_params, | Vector<std::unique_ptr<Geometry>> &all_geometries, | ||||
| Vector<std::unique_ptr<Geometry>> &all_geometries, | const GlobalVertices &global_vertices, | ||||
| const GlobalVertices &global_vertices, | Map<std::string, std::unique_ptr<MTLMaterial>> &materials, | ||||
| const Map<std::string, std::unique_ptr<MTLMaterial>> &materials, | Map<std::string, Material *> &created_materials) | ||||
| Map<std::string, Material *> &created_materials) | |||||
| { | { | ||||
| BKE_view_layer_base_deselect_all(view_layer); | BKE_view_layer_base_deselect_all(view_layer); | ||||
| LayerCollection *lc = BKE_layer_collection_get_active(view_layer); | LayerCollection *lc = BKE_layer_collection_get_active(view_layer); | ||||
| Context not available. | |||||