Vertices in buffer dump change but never on screen

i use a WireBox and update it's vertices based on the bounds of another object…

the WireBox is in a Geometry and this is attached as a scene in the "Default" main ViewPort…



my problem is that even though when i dump the vertices i can see a change per frame the drawn vertices on the screen do not reflect this…

the world transform is effective but the "size" of the box does not change…



it looks like something somewhere has cached the vertices…

i've tried setStreamed on the WireBox but it didn't work…

i am at a loss…

You're supposed to use the call VertexBuffer.updateData() to indicate that the data has changed.

that worked…

thanks very much…

i was going half crazy trying to fix it…

here's the patch for WireBox…


### Eclipse Workspace Patch 1.0
#P jme3
Index: src/core/com/jme3/scene/debug/WireBox.java
===================================================================
--- src/core/com/jme3/scene/debug/WireBox.java   (revision 5672)
+++ src/core/com/jme3/scene/debug/WireBox.java   (working copy)
@@ -50,6 +50,7 @@
             setBuffer(pvb);
         }else{
             pb = (FloatBuffer) pvb.getData();
+            pvb.setUpdateNeeded();
         }
         pb.rewind();
         pb.put(