diff --git a/jme3-core/src/main/java/com/jme3/texture/Image.java b/jme3-core/src/main/java/com/jme3/texture/Image.java index 4cd73454c..2bbf746ff 100644 --- a/jme3-core/src/main/java/com/jme3/texture/Image.java +++ b/jme3-core/src/main/java/com/jme3/texture/Image.java @@ -427,6 +427,18 @@ public class Image extends NativeObject implements Savable /*, Cloneable*/ { return needGeneratedMips; } + /** + * Sets the update needed flag, while also checking if mipmaps + * need to be regenerated. + */ + @Override + public void setUpdateNeeded() { + super.setUpdateNeeded(); + if (!isGeneratedMipmapsRequired() && !hasMipmaps()) { + setNeedGeneratedMipmaps(); + } + } + /** * Determine if the image is NPOT. *