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

Fixed AttributeError when exporting object with draped normal map decal 1 set #745

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Connor-Russell
Copy link

Summary:

Fixed objects failing to export when draped normal map decal 1 is set. This fixes the issue "Draped normal map decal 1 causes objects to fail to export #744"

Detailed changes:

Line 765 of xplane_header was attempting to access self.xplaneFile.draped_normal_decal1_projected, however draped_normal_decal1_projected exists in xplaneFile.options, not directly in xplaneFile.

This pull request changes line xplane_header 765 to properly access self.xplaneFile.options.draped_normal_decal1_projected instead. This is consistent with the rest of the decal code.

Testing:

No unit tests were run, however I tested exporting objects with draped normal map decals, they exported correctly, and were loaded, and displayed correctly in sim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant