Fix: glTF importer shading flat/smooth #104717
@ -642,8 +642,7 @@ def set_poly_smoothing(gltf, pymesh, mesh, vert_normals, loop_vidxs):
|
||||
|
||||
if gltf.import_settings['import_shading'] == "FLAT":
|
||||
# Polys are smooth by default, setting to flat
|
||||
poly_smooths = np.full(num_polys, False)
|
||||
mesh.polygons.foreach_set('use_smooth', poly_smooths)
|
||||
mesh.shade_flat()
|
||||
return
|
||||
|
||||
if gltf.import_settings['import_shading'] == "SMOOTH":
|
||||
|
Loading…
Reference in New Issue
Block a user