2
0
Эх сурвалжийг харах

Fixed a bug in TexturePanel: Selecting "No Texture" in the Texture Browser successfully deletes the Texture now

MeFisto94 6 жил өмнө
parent
commit
f96efa0478

+ 6 - 0
jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TexturePanel.java

@@ -247,6 +247,12 @@ public class TexturePanel extends MaterialPropertyWidget {
             displayPreview();
             updateFlipRepeat();
             fireChanged();
+        } else { // "No Texture" has been clicked
+            textureName = "";
+            texturePreview.setIcon(null);
+            texturePreview.setToolTipText("");
+            property.setValue("");
+            fireChanged();
         }
     }//GEN-LAST:event_jButton1ActionPerformed