From b1d79b74514041a059b454a9f6fc3970773c0cb8 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 12 Aug 2019 18:19:30 -0400 Subject: [PATCH] Compact toolbar. --- CameraPane.java | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/CameraPane.java b/CameraPane.java index ad36004..e816ebc 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; @@ -8500,6 +8509,7 @@ texturecache = new CacheTexture(texturedata,resolution); //texture = GetTexture(tex, bump); } + } } //} } @@ -16657,6 +16667,7 @@ private void DrawSkyBox(GL gl, float ratio) { if (//envyoff || + WIREFRAME || cubemap == null) { gl.glClearColor(BGcolor, BGcolor, BGcolor, 1); -- Gitblit v1.6.2