New Addon: Import Autodesk .max #105013
@ -813,7 +813,7 @@ class ChunkReader():
|
|||||||
long, ofst = get_long(data, ofst)
|
long, ofst = get_long(data, ofst)
|
||||||
if (short == 0x8B1F):
|
if (short == 0x8B1F):
|
||||||
short, ofst = get_long(data, ofst)
|
short, ofst = get_long(data, ofst)
|
||||||
if (short in (0xB000000, 0xa040000)):
|
if (short in (0xB000000, 0xA040000)):
|
||||||
data = zlib.decompress(data, zlib.MAX_WBITS|32)
|
data = zlib.decompress(data, zlib.MAX_WBITS|32)
|
||||||
print(" reading '%s'..." %self.name, len(data))
|
print(" reading '%s'..." %self.name, len(data))
|
||||||
while offset < len(data):
|
while offset < len(data):
|
||||||
@ -1232,7 +1232,7 @@ def adjust_material(obj, mat):
|
|||||||
elif (uid == VRAY_MTL): # VRayMtl
|
elif (uid == VRAY_MTL): # VRayMtl
|
||||||
refs = get_reference(mat)
|
refs = get_reference(mat)
|
||||||
material = get_vray_material(refs[1])
|
material = get_vray_material(refs[1])
|
||||||
elif (uid == CORO_MTL): # Corona
|
elif (uid == CORO_MTL): # CoronaMtl
|
||||||
refs = get_references(mat)
|
refs = get_references(mat)
|
||||||
material = get_corona_material(refs[0])
|
material = get_corona_material(refs[0])
|
||||||
elif (uid == ARCH_MTL): # Arch
|
elif (uid == ARCH_MTL): # Arch
|
||||||
|
Loading…
Reference in New Issue
Block a user