mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Added support for renderering multiple textures per Model
This commit is contained in:
@@ -22,12 +22,18 @@ class IMICFPS
|
||||
|
||||
if path.is_a?(Array)
|
||||
if path.size > 1
|
||||
# Try loading from models textures folder
|
||||
path = "#{GAME_ROOT_PATH}/assets/#{path.join("/")}"
|
||||
else
|
||||
path = path.first
|
||||
end
|
||||
end
|
||||
|
||||
# Try searching shared textures folder
|
||||
unless File.exist?(path)
|
||||
path = "#{IMICFPS.assets_path}/base/shared/textures/#{path.split("/").last}"
|
||||
end
|
||||
|
||||
@path = path
|
||||
|
||||
if @path
|
||||
|
||||
Reference in New Issue
Block a user