We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dbb225 commit 875f846Copy full SHA for 875f846
1 file changed
jme3-core/src/main/java/com/jme3/scene/debug/WireFrustum.java
@@ -113,6 +113,7 @@ private void setGeometryData(Vector3f[] points) {
113
);
114
getBuffer(Type.Index).setUsage(Usage.Static);
115
setMode(Mode.Lines);
116
+ updateBound();
117
}
118
119
/**
@@ -133,7 +134,7 @@ public void update(Vector3f[] points) {
133
134
if (vb == null) {
135
// If for some reason the position buffer is missing, re-create it.
136
// This case should ideally not happen if the object is constructed properly.
- setBuffer(Type.Position, 3, BufferUtils.createFloatBuffer(points));
137
+ setGeometryData(points);
138
return;
139
140
0 commit comments