We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd8ecc commit 8861ff5Copy full SHA for 8861ff5
jme3-plugins/src/fbx/java/com/jme3/scene/plugins/fbx/mesh/FbxLayerElement.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2023 jMonkeyEngine
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
@@ -196,7 +196,7 @@ public static FbxLayerElement fromElement(FbxElement element) {
196
layerElement.name = (String) child.properties.get(0);
197
}
198
199
- if (layerElement.data == null) {
+ if (layerElement.data == null && layerElement.dataIndices != null) {
200
// For Smoothing / Materials, data = dataIndices
201
layerElement.refInfoType = ReferenceInformationType.Direct;
202
layerElement.data = new Integer[layerElement.dataIndices.length];
0 commit comments