mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Camera can bind to model
This commit is contained in:
@@ -52,7 +52,7 @@ class IMICFPS
|
||||
end
|
||||
|
||||
def parse_mtllib
|
||||
file = File.open(@object_path.sub(File.basename(@object_path), '')+@material_file, 'r')
|
||||
file = File.open(@file_path.sub(File.basename(@file_path), '')+@material_file, 'r')
|
||||
file.readlines.each do |line|
|
||||
array = line.strip.split(' ')
|
||||
case array.first
|
||||
@@ -78,7 +78,7 @@ class IMICFPS
|
||||
end
|
||||
|
||||
def change_object(name)
|
||||
@objects << Object.new(name)
|
||||
@objects << Object.new(self, name)
|
||||
@current_object = @objects.last
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user