瀏覽代碼

SDK :
- Changed the to check if a file is a dds file

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8020 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

rem..om 14 年之前
父節點
當前提交
2e54105abc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/TexturePanel.java

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

@@ -46,7 +46,7 @@ public class TexturePanel extends MaterialPropertyWidget {
         if (!"".equals(textureName)) {
             Texture tex = manager.loadTexture(textureName);
             Icon newicon = null;
-            if (textureName.endsWith(".dds") || textureName.endsWith(".DDS")) {
+            if (textureName.toLowerCase().endsWith(".dds")) {
                 if (ddsPreview == null) {
                     ddsPreview = new DDSPreview(manager);
                 }