added an error message if `objectFormatExport` is not set properly

pull/21/head
batmanscode 2021-11-20 22:55:51 +05:30 zatwierdzone przez GitHub
rodzic c442cf9190
commit 773090414a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -36,6 +36,10 @@ objectFormatExport = '' # The file format of the objects you would like to expo
# obj - The .obj file format *Exports both a .obj and a .mtl files for the same generated object
# x3d - The .x3d file format
# error handling #
if objectFormatExport not in ['fbx', 'glb', 'obj', 'x3d']:
raise ValueError("Output format in `objectFormatExport` can only be 'fbx', 'glb', 'obj', 'x3d'.")
### Select colour or material.###
# Object generation options:
enableGeneration = True # When set to true this applies the sets of colors listed below to the objects in the collections named below