Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporter throws exception in _detectTextures if image is None #324

Closed
tngreene opened this issue Jan 1, 2018 · 0 comments
Closed

Exporter throws exception in _detectTextures if image is None #324

tngreene opened this issue Jan 1, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@tngreene
Copy link
Contributor

tngreene commented Jan 1, 2018

If a person tries to export with Autodetect Texture on when texture has no image selected, slot.texture.image.filepath will throw AttributeError on a line like xplane_material.py, line 180

                    self.texture = slot.texture.image.filepath

A potential fix

            if slot and slot.use and slot.texture.type == 'IMAGE' and slot.texture.image is not None:
@tngreene tngreene added the Bug label Jan 1, 2018
@tngreene tngreene added this to the v3.4.1 milestone Jan 1, 2018
@tngreene tngreene self-assigned this Jan 1, 2018
tngreene added a commit that referenced this issue Jan 2, 2018
@tngreene tngreene closed this as completed Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant