diff options
Diffstat (limited to 'ardor3d-extras')
-rw-r--r-- | ardor3d-extras/src/main/java/com/ardor3d/extension/model/ply/PlyGeometryStore.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ardor3d-extras/src/main/java/com/ardor3d/extension/model/ply/PlyGeometryStore.java b/ardor3d-extras/src/main/java/com/ardor3d/extension/model/ply/PlyGeometryStore.java index 6f5273c..f09364f 100644 --- a/ardor3d-extras/src/main/java/com/ardor3d/extension/model/ply/PlyGeometryStore.java +++ b/ardor3d-extras/src/main/java/com/ardor3d/extension/model/ply/PlyGeometryStore.java @@ -161,6 +161,12 @@ public class PlyGeometryStore { matchConditions.add(MatchCondition.Color); } _geometryTool.minimizeVerts(line, matchConditions); + + final TextureState tState = getTextureState(); + if (tState != null) { + line.setRenderState(tState); + } + line.updateModelBound(); _totalLines++; _plyEdgeInfoList = null; @@ -186,7 +192,6 @@ public class PlyGeometryStore { final FloatBuffer colors = hasColors ? BufferUtils.createFloatBuffer(vertexCount * 4) : null; final FloatBuffer uvs = hasTexCoords ? BufferUtils.createFloatBuffer(vertexCount * 2) : null; - // FIXME handle material indices if any int dummyVertexIndex = 0; final List<IndexMode> indexModeList = new ArrayList<>(); final List<Integer> indexLengthList = new ArrayList<>(); @@ -280,6 +285,12 @@ public class PlyGeometryStore { } else { // FIXME unsure about minimizeVerts preserving the index modes } + + final TextureState tState = getTextureState(); + if (tState != null) { + mesh.setRenderState(tState); + } + mesh.updateModelBound(); _root.attachChild(mesh); _totalMeshes++; |