Skip to content

Commit

Permalink
Added check for 3.5, which while in alpha will bring back use_split_g…
Browse files Browse the repository at this point in the history
…roups for the C++ OBJ importer
  • Loading branch information
StandingPadAnimations committed Feb 16, 2023
1 parent 443ef53 commit 1afc761
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MCprep_addon/world_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ def execute(self, context):
mtl_file.writelines(LINES)

res = None
if util.min_bv((3, 5)):
res = bpy.ops.wm.obj_import(
filepath=self.filepath, use_split_groups=True) # Returns functionality missing in 3.1 - 3.4
if util.min_bv((3, 1)):
res = bpy.ops.wm.obj_import(
filepath=self.filepath)
Expand Down

0 comments on commit 1afc761

Please sign in to comment.