Skip to content

Prevent crash on no-material OBJ - #81

Merged
EliCDavis merged 1 commit into
EliCDavis:mainfrom
alexykot:bugfix/no-materials-obj
Apr 23, 2025
Merged

Prevent crash on no-material OBJ#81
EliCDavis merged 1 commit into
EliCDavis:mainfrom
alexykot:bugfix/no-materials-obj

Conversation

@alexykot

Copy link
Copy Markdown
Contributor

OBJ without materials are perfectly valid, but I think this area has changed recently and now there is a nil-pionter crash here where there wasn't before. And this is on trying to open a file with no materials defined in it.

This check fixes the crash.

@EliCDavis

Copy link
Copy Markdown
Owner

Ah! Thanks!

@EliCDavis
EliCDavis merged commit 2ee7c30 into EliCDavis:main Apr 23, 2025
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.

2 participants