mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 13:53:42 +01:00
Prevent import failure when no materials are present
This commit is contained in:
parent
4a6d94f0fb
commit
11acd7d3f4
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ public class PrimitiveImporter
|
||||||
ArgumentNullException.ThrowIfNull(_indices);
|
ArgumentNullException.ThrowIfNull(_indices);
|
||||||
ArgumentNullException.ThrowIfNull(_shapeValues);
|
ArgumentNullException.ThrowIfNull(_shapeValues);
|
||||||
|
|
||||||
var material = _primitive.Material.Name;
|
var material = _primitive.Material?.Name;
|
||||||
if (material == "")
|
if (material == "")
|
||||||
material = null;
|
material = null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue