mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 05:18:21 +00:00
Fix crash
This commit is contained in:
@ -38,7 +38,7 @@ func NewMesh(name, modelPath string, postProcessFlags asig.PostProcess) (*Mesh,
|
||||
mesh.Buf.SetLayout(layoutToUse...)
|
||||
|
||||
var values []float32
|
||||
if len(sceneMesh.ColorSets) > 0 {
|
||||
if len(sceneMesh.ColorSets) > 0 && len(sceneMesh.ColorSets[0]) > 0 {
|
||||
values = interleave(
|
||||
arrToInterleave{V3s: sceneMesh.Vertices},
|
||||
arrToInterleave{V3s: sceneMesh.Normals},
|
||||
|
||||
Reference in New Issue
Block a user