Skip to content

Add null checks to ColladaMeshShape.java #8

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

Merged
merged 1 commit into from
Apr 9, 2019
Merged

Add null checks to ColladaMeshShape.java #8

merged 1 commit into from
Apr 9, 2019

Conversation

wcmatthysen
Copy link
Member

@wcmatthysen wcmatthysen commented Apr 9, 2019

Description of the Change

Pull-request from @christianliebl containing additional null-checks to ColladaMeshShape to allow for Collada models without textures to be loaded.

Why Should This Be In Core?

This is a simple oversight that should have been included in the initial class. The null-check is already present in the getInstanceMaterial() method. Adding it to getTextureSource() and getEffect() allows for Collada models without textures to be loaded.

Benefits

Collada models without textures can now be loaded.

Potential Drawbacks

None

Applicable Issues

None

@wcmatthysen wcmatthysen added the bug Something isn't working label Apr 9, 2019
@wcmatthysen wcmatthysen self-assigned this Apr 9, 2019
@wcmatthysen wcmatthysen requested a review from emxsys April 9, 2019 10:41
@emxsys emxsys added this to the WWJ-CE 2.2.0 milestone Apr 9, 2019
@emxsys emxsys merged commit 47e91d4 into WorldWindEarth:develop Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
3 participants