SDK :
- 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
This commit is contained in:
parent
0eeb23e248
commit
54b6974778
@ -1394,7 +1394,7 @@ public final class TerrainEditorTopComponent extends TopComponent implements Sce
|
|||||||
if (tex != null) {
|
if (tex != null) {
|
||||||
String selected = tex.getKey().getName();
|
String selected = tex.getKey().getName();
|
||||||
|
|
||||||
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
|
if (selected.toLowerCase().endsWith(".dds")) {
|
||||||
if (ddsPreview == null) {
|
if (ddsPreview == null) {
|
||||||
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
||||||
}
|
}
|
||||||
@ -1431,7 +1431,7 @@ public final class TerrainEditorTopComponent extends TopComponent implements Sce
|
|||||||
if (editor.getValue() != null) {
|
if (editor.getValue() != null) {
|
||||||
String selected = tex.getKey().getName();
|
String selected = tex.getKey().getName();
|
||||||
|
|
||||||
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
|
if (selected.toLowerCase().endsWith(".dds")) {
|
||||||
if (ddsPreview == null) {
|
if (ddsPreview == null) {
|
||||||
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
||||||
}
|
}
|
||||||
|
@ -425,7 +425,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|||||||
Texture tex = (Texture) editorSouth.getValue();
|
Texture tex = (Texture) editorSouth.getValue();
|
||||||
String selected = tex.getKey().getName();
|
String selected = tex.getKey().getName();
|
||||||
|
|
||||||
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
|
if (selected.toLowerCase().endsWith(".dds")) {
|
||||||
if (ddsPreview == null) {
|
if (ddsPreview == null) {
|
||||||
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
||||||
}
|
}
|
||||||
@ -445,7 +445,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|||||||
Texture tex = (Texture) editorNorth.getValue();
|
Texture tex = (Texture) editorNorth.getValue();
|
||||||
String selected = tex.getKey().getName();
|
String selected = tex.getKey().getName();
|
||||||
|
|
||||||
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
|
if (selected.toLowerCase().endsWith(".dds")) {
|
||||||
if (ddsPreview == null) {
|
if (ddsPreview == null) {
|
||||||
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
||||||
}
|
}
|
||||||
@ -465,7 +465,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|||||||
Texture tex = (Texture) editorEast.getValue();
|
Texture tex = (Texture) editorEast.getValue();
|
||||||
String selected = tex.getKey().getName();
|
String selected = tex.getKey().getName();
|
||||||
|
|
||||||
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
|
if (selected.toLowerCase().endsWith(".dds")) {
|
||||||
if (ddsPreview == null) {
|
if (ddsPreview == null) {
|
||||||
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
||||||
}
|
}
|
||||||
@ -485,7 +485,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|||||||
Texture tex = (Texture) editorWest.getValue();
|
Texture tex = (Texture) editorWest.getValue();
|
||||||
String selected = tex.getKey().getName();
|
String selected = tex.getKey().getName();
|
||||||
|
|
||||||
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
|
if (selected.toLowerCase().endsWith(".dds")) {
|
||||||
if (ddsPreview == null) {
|
if (ddsPreview == null) {
|
||||||
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
||||||
}
|
}
|
||||||
@ -505,7 +505,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|||||||
Texture tex = (Texture) editorTop.getValue();
|
Texture tex = (Texture) editorTop.getValue();
|
||||||
String selected = tex.getKey().getName();
|
String selected = tex.getKey().getName();
|
||||||
|
|
||||||
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
|
if (selected.toLowerCase().endsWith(".dds")) {
|
||||||
if (ddsPreview == null) {
|
if (ddsPreview == null) {
|
||||||
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
||||||
}
|
}
|
||||||
@ -525,7 +525,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|||||||
Texture tex = (Texture) editorBottom.getValue();
|
Texture tex = (Texture) editorBottom.getValue();
|
||||||
String selected = tex.getKey().getName();
|
String selected = tex.getKey().getName();
|
||||||
|
|
||||||
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
|
if (selected.toLowerCase().endsWith(".dds")) {
|
||||||
if (ddsPreview == null) {
|
if (ddsPreview == null) {
|
||||||
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
||||||
}
|
}
|
||||||
@ -545,7 +545,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|||||||
Texture tex = (Texture) editorSingle.getValue();
|
Texture tex = (Texture) editorSingle.getValue();
|
||||||
String selected = tex.getKey().getName();
|
String selected = tex.getKey().getName();
|
||||||
|
|
||||||
if (selected.endsWith(".dds") || selected.endsWith(".DDS")) {
|
if (selected.toLowerCase().endsWith(".dds")) {
|
||||||
if (ddsPreview == null) {
|
if (ddsPreview == null) {
|
||||||
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user