Skip to content

Commit

Permalink
Validation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inertials-revenge committed Oct 4, 2021
1 parent ca08d9f commit 5814353
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion io_alamo_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
bl_info = {
"name": "ALAMO Tools",
"author": "Gaukler, evilbobthebob, inertial",
"version": (0, 0, 3, 1),
"version": (0, 0, 3, 2),
"blender": (2, 93, 0),
"category": "Import-Export"
}
Expand Down
8 changes: 4 additions & 4 deletions io_alamo_tools/export_alo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,11 +1403,11 @@ def exportAnimations(filePath):
mesh_list = validation.create_export_list(bpy.context.scene.collection, self.exportHiddenObjects, self.useNamesFrom)

#check if export objects satisfy requirements (has material, UVs, ...)
errors = validation.validate(mesh_list)
messages = validation.validate(mesh_list)

if errors is not None and len(errors) > 0:
for error in errors:
self.report({"ERROR"}, error)
if messages is not None and len(messages) > 0:
for message in messages:
self.report(*message)
exportFailed()

hiddenList = unhide()
Expand Down
2 changes: 1 addition & 1 deletion io_alamo_tools/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def checkVertexGroups(object):

def checkNumBones(object):
if type(object) != type(None) and object.type == 'MESH':
material = bpy.context.active_object.active_material
material = object.active_material
if material is not None and material.shaderList.shaderList.find("RSkin") > -1:
used_groups = []
for vertex in object.data.vertices:
Expand Down

0 comments on commit 5814353

Please sign in to comment.