Fix second part of T60381: OBJ import of textures would fail when map scale/offset was specified.

This commit is contained in:
Bastien Montagne 2019-01-11 11:00:38 +01:00
parent 9448cef00d
commit 5509187b4d
1 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,10 @@ def create_materials(filepath, relpath,
map_offset = map_options.get(b'-o')
map_scale = map_options.get(b'-s')
if map_offset is not None:
map_offset = tuple(map(float_func, map_offset))
if map_scale is not None:
map_scale = tuple(map(float_func, map_scale))
def _generic_tex_set(nodetex, image, texcoords, translation, scale):
nodetex.image = image