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 28c6317302 - Show all commits

View File

@ -563,7 +563,7 @@ class ImportMaxFile:
if minifat:
used_streams = self._used_streams_minifat
else:
if first_sect in (DIFSECT,FATSECT,ENDOFCHAIN,FREESECT):
if first_sect in (DIFSECT, FATSECT, ENDOFCHAIN, FREESECT):
return
used_streams = self._used_streams_fat
if first_sect in used_streams:
@ -597,7 +597,7 @@ class ImportMaxFile:
self.fat = array.array('I')
self.loadfat_sect(sect)
if self.num_difat_sectors != 0:
nb_difat_sectors = (self.sectorsize//4) - 1
nb_difat_sectors = (self.sectorsize // 4) - 1
nb_difat = (self.num_fat_sectors - 109 + nb_difat_sectors - 1) // nb_difat_sectors
isect_difat = self.first_difat_sector
for i in range(nb_difat):