Skip to content

Commit 875f846

Browse files
authored
Update WireFrustum.java
1 parent 9dbb225 commit 875f846

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

jme3-core/src/main/java/com/jme3/scene/debug/WireFrustum.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ private void setGeometryData(Vector3f[] points) {
113113
);
114114
getBuffer(Type.Index).setUsage(Usage.Static);
115115
setMode(Mode.Lines);
116+
updateBound();
116117
}
117118

118119
/**
@@ -133,7 +134,7 @@ public void update(Vector3f[] points) {
133134
if (vb == null) {
134135
// If for some reason the position buffer is missing, re-create it.
135136
// This case should ideally not happen if the object is constructed properly.
136-
setBuffer(Type.Position, 3, BufferUtils.createFloatBuffer(points));
137+
setGeometryData(points);
137138
return;
138139
}
139140

0 commit comments

Comments
 (0)