Merge branch 'master' into blender2.8

This commit is contained in:
Philipp Oeser 2018-10-15 10:12:04 +02:00
commit af3ad31ba4
1 changed files with 7 additions and 1 deletions

View File

@ -318,7 +318,7 @@ def create_materials(filepath, relpath,
# rgb, filter color, blender has no support for this.
print("WARNING, currently unsupported 'tf' filter color option, skipped.")
elif line_id == b'illum':
illum = int(line_split[1])
illum = get_int(line_split[1])
# inline comments are from the spec, v4.2
if illum == 0:
@ -835,6 +835,12 @@ def get_float_func(filepath):
return float
def get_int(svalue):
if b',' in svalue:
return int(float(svalue.replace(b',', b'.')))
return int(float(svalue))
def load(context,
filepath,
*,