Camera can bind to model

This commit is contained in:
2018-03-20 22:48:01 -05:00
parent d390d3d728
commit 2de1c0ffdf
6 changed files with 47 additions and 22 deletions

View File

@@ -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