From a1fd3ff3d93114b467342f85b9e2a8237a3e6656 Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Sun, 3 Apr 2016 16:55:06 -0400 Subject: [PATCH] VB: indicate refresh when usage changes --- jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java b/jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java index c67435b78..5652b9295 100644 --- a/jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java +++ b/jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java @@ -522,6 +522,7 @@ public class VertexBuffer extends NativeObject implements Savable, Cloneable { // throw new UnsupportedOperationException("Data has already been sent. Cannot set usage."); this.usage = usage; + this.setUpdateNeeded(); } /**