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

Update jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TexturePanel.java

Rickard Edén 2 сар өмнө
parent
commit
7ef9a1d8e4

+ 1 - 8
jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TexturePanel.java

@@ -288,14 +288,7 @@ public class TexturePanel extends MaterialPropertyWidget implements TextureDropT
             displayPreview();
             displayPreview();
             updateFlipRepeat();
             updateFlipRepeat();
             fireChanged();
             fireChanged();
-        } else if (newAssetKey == null && originalAssetKey != null) {
-            // "No Texture" was explicitly selected (from having a texture to null)
-            property.setValue(EMPTY);
-            textureName = "\"\"";
-            texturePreview.setIcon(null);
-            texturePreview.setToolTipText("");
-            fireChanged();
-        } else if (newAssetKey == null && originalAssetKey == null) {
+        } else if (newAssetKey == null) {
             // "No Texture" was selected when no texture was already set
             // "No Texture" was selected when no texture was already set
             property.setValue(EMPTY);
             property.setValue(EMPTY);
             textureName = "\"\"";
             textureName = "\"\"";