Skip to content

Commit 7ef9a1d

Browse files
authored
Update jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TexturePanel.java
1 parent 6bcbf13 commit 7ef9a1d

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,7 @@ private void texturePreviewMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FI
288288
displayPreview();
289289
updateFlipRepeat();
290290
fireChanged();
291-
} else if (newAssetKey == null && originalAssetKey != null) {
292-
// "No Texture" was explicitly selected (from having a texture to null)
293-
property.setValue(EMPTY);
294-
textureName = "\"\"";
295-
texturePreview.setIcon(null);
296-
texturePreview.setToolTipText("");
297-
fireChanged();
298-
} else if (newAssetKey == null && originalAssetKey == null) {
291+
} else if (newAssetKey == null) {
299292
// "No Texture" was selected when no texture was already set
300293
property.setValue(EMPTY);
301294
textureName = "\"\"";

0 commit comments

Comments
 (0)