From 912749d2520afedd9b56458d771400c261fe2b88 Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Thu, 08 Aug 2019 20:56:19 -0400
Subject: [PATCH] All textures working.

---
 CameraPane.java |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/CameraPane.java b/CameraPane.java
index ad36004..df56b97 100644
--- a/CameraPane.java
+++ b/CameraPane.java
@@ -8358,7 +8358,7 @@
 //            else
 //                if (!texname.startsWith("/"))
 //                    texname = "/Users/nbriere/Textures/" + texname;
-            if (!FileExists(texname))
+            if (!FileExists(texname) && !texname.startsWith("@"))
             {
                     texname = fallbackTextureName;
             }
@@ -8441,6 +8441,15 @@
                                 new Exception().printStackTrace();
                         } else
                         {
+                        if (texname.startsWith("@"))
+                        {
+                //            texturecache = textures.get(texname); // suspicious
+                            if (texturecache == null)
+                                texturecache = new CacheTexture(GetResourceTexture(texname.substring(1), bump),resolution);
+                            else
+                                new Exception().printStackTrace();
+                        } else
+                        {
                             if (textureon)
                             {
                                 String cachename = texname;
@@ -8501,6 +8510,7 @@
         //texture = GetTexture(tex, bump);
                             }
                         }
+                        }
                     //}
                 }
 

--
Gitblit v1.6.2