BabylonJS / BabylonJS/BlenderExporter

ERROR: 'NoneType' object has no attribute 'file_format'

Open
#58 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
308
Forks
57
PR merge metrics
No merged PRs in 30d

Description

Export fails with an error: " 'NoneType' object has no attribute 'file_format' " if a material has a missing texture like this:
![problemspot](https://user-images.githubusercontent.com/5227599/165776649-d80f394e-a337-413a-8db4-825273eaf006.png)

Workaround is to disconnect it. The version of the plugin and blender is 2.93.5

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the export in Blender 2.93.5 with a material containing a missing texture, then locate the exporter path that accesses file_format after the failure. Done means the same material exports successfully without requiring the texture to be disconnected.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender, python
Domain
game-dev, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.