|
@@ -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());
|
|
}
|
|
}
|