Skip to content

Commit

Permalink
Merge pull request #411 from kromar/fix-button-poll-error
Browse files Browse the repository at this point in the history
fix issue where the poll on the export button would fail due to only …
  • Loading branch information
kromar authored Apr 20, 2023
2 parents d08750d + ab984c4 commit e476208
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions GoB.py
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,9 @@ def export_poll(cls, context):
if context.active_object:
obj = context.active_object
export = check_export_candidates(obj)
else:
for obj in context.selected_objects:
export = check_export_candidates(obj)

#check for faces in multiple objects, only if any face in object is found exporting should be allowed
else:
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"name": "GoB",
"description": "An unofficial GOZ-like addon for Blender",
"author": "ODe, JoseConseco, Daniel Grauer",
"version": (3, 5, 98),
"version": (3, 5, 99),
"blender": (2, 93, 0),
"location": "In the info header",
"doc_url": "https://github.com/JoseConseco/GoB/wiki",
Expand Down

0 comments on commit e476208

Please sign in to comment.