New Addon: Import Autodesk .max #105013

Closed
Sebastian Sille wants to merge 136 commits from (deleted):nrgsille-import_max into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 642eea7cb8 - Show all commits

View File

@ -371,9 +371,9 @@ class MaxFileDirEntry:
self.size = self.sizeLow + (int(self.sizeHigh) << 32)
self.clsid = _clsid(clsid)
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 \
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
else:
self.is_minifat = False
@ -383,7 +383,7 @@ class MaxFileDirEntry:
def build_sect_chain(self, maxfile):
if self.sect_chain:
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
self.sect_chain = list()
if self.is_minifat and not maxfile.minifat: