Road-hog123 / Blender-OMSI-Exporter

OMSI Mesh (.o3d) exporter addon for Blender and Blender LTS
Apache License 2.0
24 stars 0 forks source link

BUG D'EXPORT DE CFG #19

Closed azer940 closed 2 months ago

azer940 commented 2 months ago

bonjour quand j'essaye d'import un cfg par exemple des nouveaux urbanway step e j'ai l'erreur suivant :

Python: Traceback (most recent call last): File "C:\Users\arda\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender-O3D-IO-Public__init__.py", line 133, in execute io_o3d_import.do_import(self.filepath, context, self.import_x, self.override_text_encoding, self.hide_lods) File "C:\Users\arda\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender-O3D-IO-Public\o3d_io\io_o3d_import.py", line 51, in do_import (cfg_data, obj_root) = read_cfg(filepath, override_text_encoding) File "C:\Users\arda\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender-O3D-IO-Public\o3d_io\o3d_cfg_parser.py", line 272, in read_cfg light_flare["cone_effect"] = int(line) == 1 ValueError: invalid literal for int() with base 10: '0.1'

Python: Traceback (most recent call last): File "C:\Users\arda\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender-O3D-IO-Public__init__.py", line 133, in execute io_o3d_import.do_import(self.filepath, context, self.import_x, self.override_text_encoding, self.hide_lods) File "C:\Users\arda\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender-O3D-IO-Public\o3d_io\io_o3d_import.py", line 51, in do_import (cfg_data, obj_root) = read_cfg(filepath, override_text_encoding) File "C:\Users\arda\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender-O3D-IO-Public\o3d_io\o3d_cfg_parser.py", line 272, in read_cfg light_flare["cone_effect"] = int(line) == 1 ValueError: invalid literal for int() with base 10: '0.1'

j'aimerai bien avoir la résolution de beug si possible

cordialement

Road-hog123 commented 2 months ago

Ceci n'est pas Blender-O3D-IO-Public