Skip to content

Commit

Permalink
Merge pull request #4 from LidsvilleDev/4.2-support
Browse files Browse the repository at this point in the history
Importer: Add version check for auto smoothing
  • Loading branch information
loonaticx authored Sep 26, 2024
2 parents b2a1e65 + bdc867c commit 47d3524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,8 @@ def build_tree(self, context, parent, inv_matrix=None, under_dart=False):

if max_diff > 0.01:
data.normals_split_custom_set(self.normals)
data.use_auto_smooth = True
if bpy.app.version <= (4, 0):
data.use_auto_smooth = True

if self.have_vertex_colors:
cols = data.vertex_colors.new()
Expand Down

0 comments on commit 47d3524

Please sign in to comment.