- 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
3.0
rem..om 13 years ago
parent f9aeea5064
commit ecaa03492c
  1. 2
      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()); String selected = TreeUtil.getPath(node.getUserObjectPath());
selected = selected.substring(0, selected.lastIndexOf("/")); selected = selected.substring(0, selected.lastIndexOf("/"));
Icon newicon = null; Icon newicon = null;
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) { if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) { if (ddsPreview == null) {
ddsPreview = new DDSPreview(assetManager); ddsPreview = new DDSPreview(assetManager);
} }

Loading…
Cancel
Save