From 0c943aa721b8e14913a60a8c2c79780f3fb3a921 Mon Sep 17 00:00:00 2001 From: Senpai Date: Tue, 14 Jan 2025 00:53:31 -0600 Subject: [PATCH] Don't set normals on import since they aren't used --- import_geo.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/import_geo.py b/import_geo.py index d5ff73f..3d6422b 100644 --- a/import_geo.py +++ b/import_geo.py @@ -70,7 +70,6 @@ def convert_model(geo_model, mesh_data, obj, scale): mesh_data.vertices.foreach_set("co", coords) - mesh_data.vertices.foreach_set("normal", normals) mesh_data.loops.foreach_set("vertex_index", indices) mesh_data.polygons.foreach_set("loop_start", loop_starts) mesh_data.polygons.foreach_set("loop_total", loop_totals) @@ -96,9 +95,6 @@ def convert_model(geo_model, mesh_data, obj, scale): mesh_data.validate() mesh_data.update() - mesh_data.vertices.foreach_set("normal", normals) - mesh_data.update() - mesh_data.flip_normals() #todo: attempt to load textures/images