- Changed the way to check if a file is a dds file (third and last)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8021 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent 0eeb23e248
commit 54b6974778
  1. 4
      sdk/jme3-terrain-editor/src/com/jme3/gde/terraineditor/TerrainEditorTopComponent.java
  2. 14
      sdk/jme3-terrain-editor/src/com/jme3/gde/terraineditor/sky/SkyboxVisualPanel2.java

@ -1394,7 +1394,7 @@ public final class TerrainEditorTopComponent extends TopComponent implements Sce
if (tex != null) {
String selected = tex.getKey().getName();
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) {
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
}
@ -1431,7 +1431,7 @@ public final class TerrainEditorTopComponent extends TopComponent implements Sce
if (editor.getValue() != null) {
String selected = tex.getKey().getName();
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) {
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
}

@ -425,7 +425,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
Texture tex = (Texture) editorSouth.getValue();
String selected = tex.getKey().getName();
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) {
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
}
@ -445,7 +445,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
Texture tex = (Texture) editorNorth.getValue();
String selected = tex.getKey().getName();
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) {
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
}
@ -465,7 +465,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
Texture tex = (Texture) editorEast.getValue();
String selected = tex.getKey().getName();
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) {
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
}
@ -485,7 +485,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
Texture tex = (Texture) editorWest.getValue();
String selected = tex.getKey().getName();
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) {
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
}
@ -505,7 +505,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
Texture tex = (Texture) editorTop.getValue();
String selected = tex.getKey().getName();
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) {
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
}
@ -525,7 +525,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
Texture tex = (Texture) editorBottom.getValue();
String selected = tex.getKey().getName();
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) {
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
}
@ -545,7 +545,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
Texture tex = (Texture) editorSingle.getValue();
String selected = tex.getKey().getName();
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
if (selected.toLowerCase().endsWith(".dds")) {
if (ddsPreview == null) {
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
}

Loading…
Cancel
Save