def validate(self): for var in self.variables: func = getattr(var.value, "validate", None) if (func is not None) and not func(): return False for chunk in self.subchunks: func = getattr(chunk, "validate", None) if (func is not None) and not func(): return False return True
def validate(self): for var in self.variables: func = getattr(var.value, "validate", None) if (func is not None) and not func(): print("Var") print(var.name) print(func) return False for chunk in self.subchunks: func = getattr(chunk, "validate", None) if (func is not None) and not func(): print("Chunk") print(chunk.variables) print(func) return False return True
def validate(self): return len(self.values) <= 65535
Since the .3ds format stores its vertex/face counts in a 16 bit unsigned integer, blender will write a corrupted export on any mesh with too many faces.