Skip to content

Commit

Permalink
1_8_6
Browse files Browse the repository at this point in the history
fixed checked material error
  • Loading branch information
DigiKrafting committed Mar 8, 2020
1 parent ef38a76 commit 1dc7006
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"name": "DKS Substance Painter",
"description": "Substance Painter Pipeline",
"author": "DigiKrafting.Studio",
"version": (1, 8, 5),
"version": (1, 8, 6),
"blender": (2, 80, 0),
"location": "Info Toolbar, File -> Import, File -> Export, Menu",
"wiki_url": "https://github.com/DigiKrafting/blender_addon_substance_painter/wiki",
Expand Down
10 changes: 7 additions & 3 deletions dks_sp.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,16 @@ def execute(self, context):
_export_project = _export_path + _export_name + '.spp'

for _obj in bpy.data.collections[_export_name].all_objects:

if _obj.type=='MESH':

_obj.select_set(True)

if bpy.context.preferences.addons[__package__].preferences.option_create_materials:
_checked = dks_sp_check_material()

if bpy.context.preferences.addons[__package__].preferences.option_create_materials:

if len(_obj.data.materials)==0:
_created = dks_sp_create_material(_obj)

if bpy.context.preferences.addons[__package__].preferences.option_export_type=='obj':
_export_file = dks_sp_obj_export_sel(self, context, _export_name)
elif bpy.context.preferences.addons[__package__].preferences.option_export_type=='fbx':
Expand Down

0 comments on commit 1dc7006

Please sign in to comment.