File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,9 @@ def create_generator():
8989 item = next (self ._gen )
9090 func = self ._dispatch .get (item , None )
9191 if func :
92- print (func )
9392 func ()
9493 else :
95- self ._options .name = ' ' .join (list (self ._gen ))
94+ self ._options .name = item + ' ' .join (list (self ._gen ))
9695 except StopIteration :
9796 pass
9897
@@ -171,22 +170,22 @@ def parse_texres(self):
171170 """The -texres option specifies the resolution of texture created when an
172171 image is used.
173172 """
174- self ._options .imfchan = next (self ._gen )
173+ self ._options .texres = next (self ._gen )
175174
176175
177176class Texture :
178177 def __init__ (self , name , search_path ):
179178 """Create a texture.
180179
181180 Args:
182- name (str): The texture possibly with path as it appear in the material
181+ name (str): The texture name possibly with path and options as it appear in the material
183182 search_path (str): Absolute or relative path the texture might be located.
184183 """
185184 # The parsed name from the material might contain options
186185 self ._options = TextureOptionsParser (name ).parse ()
187186 self ._name = self ._options .name
188187 self ._search_path = Path (search_path )
189- self ._path = Path (search_path , self .name )
188+ self ._path = Path (search_path , self ._name )
190189
191190 # Unsed externally by visualization
192191 self .image = None
You can’t perform that action at this time.
0 commit comments