Skip to content

Commit

Permalink
Update add-ons for removed Mesh.calc_normals()
Browse files Browse the repository at this point in the history
  • Loading branch information
ideasman42 committed May 23, 2023
1 parent eeae39e commit ce2dbbb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions io_scene_fbx/import_fbx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1561,8 +1561,6 @@ def blen_read_geom(fbx_tmpl, fbx_obj, settings):
# normals_split_custom_set. We use clnors.data since it is a memoryview, which is faster to iterate than clnors.
mesh.normals_split_custom_set(tuple(zip(*(iter(clnors.data),) * 3)))
mesh.use_auto_smooth = True
else:
mesh.calc_normals()

if settings.use_custom_normals:
mesh.free_normals_split()
Expand Down
1 change: 0 additions & 1 deletion mesh_tissue/lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ def execute(self, context):
grid_mesh = temp_grid_obj.data
for v in grid_mesh.vertices:
v.co = grid_obj.matrix_world @ v.co
grid_mesh.calc_normals()

if len(grid_mesh.polygons) > 64 * 64:
bpy.data.objects.remove(temp_grid_obj)
Expand Down
1 change: 0 additions & 1 deletion mesh_tissue/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ def simple_to_mesh(ob, depsgraph=None):
dg = depsgraph
ob_eval = ob.evaluated_get(dg)
me = bpy.data.meshes.new_from_object(ob_eval, preserve_all_data_layers=True, depsgraph=dg)
me.calc_normals()
return me

def _join_objects(context, objects, link_to_scene=True, make_active=True):
Expand Down

0 comments on commit ce2dbbb

Please sign in to comment.