New Addon: Import Autodesk .max #105013
@ -371,9 +371,9 @@ class MaxFileDirEntry:
|
|||||||
self.size = self.sizeLow + (int(self.sizeHigh) << 32)
|
self.size = self.sizeLow + (int(self.sizeHigh) << 32)
|
||||||
self.clsid = _clsid(clsid)
|
self.clsid = _clsid(clsid)
|
||||||
self.is_minifat = False
|
self.is_minifat = False
|
||||||
if self.entry_type in (STGTY_ROOT, STGTY_STREAM) and self.size > 0:
|
if self.entry_type in (ROOT_STORE, MAX_STREAM) and self.size > 0:
|
||||||
if self.size < maxfile.minisectorcutoff \
|
if self.size < maxfile.minisectorcutoff \
|
||||||
and self.entry_type == STGTY_STREAM: # only streams can be in MiniFAT
|
and self.entry_type == MAX_STREAM: # only streams can be in MiniFAT
|
||||||
self.is_minifat = True
|
self.is_minifat = True
|
||||||
else:
|
else:
|
||||||
self.is_minifat = False
|
self.is_minifat = False
|
||||||
@ -383,7 +383,7 @@ class MaxFileDirEntry:
|
|||||||
def build_sect_chain(self, maxfile):
|
def build_sect_chain(self, maxfile):
|
||||||
if self.sect_chain:
|
if self.sect_chain:
|
||||||
return
|
return
|
||||||
if self.entry_type not in (STGTY_ROOT, STGTY_STREAM) or self.size == 0:
|
if self.entry_type not in (ROOT_STORE, MAX_STREAM) or self.size == 0:
|
||||||
return
|
return
|
||||||
self.sect_chain = list()
|
self.sect_chain = list()
|
||||||
if self.is_minifat and not maxfile.minifat:
|
if self.is_minifat and not maxfile.minifat:
|
||||||
|
Loading…
Reference in New Issue
Block a user