Fixed model with texture and texture-less objects having texture-less objects renderer 'black' due to having hasTexture incorrectly set for shader

This commit is contained in:
2020-05-11 23:05:34 -05:00
parent f72a8d4c35
commit fa2873bb8f
2 changed files with 5 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ class IMICFPS
end
# Try searching shared textures folder
unless File.exist?(path)
if path && !File.exist?(path)
path = "#{IMICFPS.assets_path}/base/shared/textures/#{path.split("/").last}"
end