From ecaa03492cf7cdd2562111c5a56f9f3dddb2fe88 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Tue, 16 Aug 2011 14:46:44 +0000 Subject: [PATCH] SDK : - Changed the to check if a file is a dds file git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8019 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/core/properties/TextureBrowser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/properties/TextureBrowser.java b/sdk/jme3-core/src/com/jme3/gde/core/properties/TextureBrowser.java index 4c3b07ad7..823005164 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/properties/TextureBrowser.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/properties/TextureBrowser.java @@ -280,7 +280,7 @@ private void jTree1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:even String selected = TreeUtil.getPath(node.getUserObjectPath()); selected = selected.substring(0, selected.lastIndexOf("/")); Icon newicon = null; - if (selected.endsWith(".dds") || selected.endsWith(".DDS")) { + if (selected.toLowerCase().endsWith(".dds")) { if (ddsPreview == null) { ddsPreview = new DDSPreview(assetManager); }