REDxEYE / SourceIO

SourceIO is an Blender(3.4+) addon for importing source engine textures/models/maps
https://discord.gg/XJvhzaXZf3
MIT License
626 stars 57 forks source link

Doesn't work on Blender 3.1 #129

Closed blipdrifter closed 2 years ago

blipdrifter commented 2 years ago

TypeError: 'numpy.float64' object cannot be interpreted as an integer Python: Traceback (most recent call last): File "C:\Users\batte\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\SourceIO\blender_bindings\operators\source1_operators.py", line 55, in execute model_container = import_model_from_full_path(mdl_path, self.scale, self.create_flex_drivers, File "C:\Users\batte\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\SourceIO\blender_bindings\source1\mdl\model_loader.py", line 46, in import_model_from_full_path return import_model_from_files(str(name), mdl_path, vvd_file, vtx_file, vvc_file, scale, create_drives, File "C:\Users\batte\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\SourceIO\blender_bindings\source1\mdl\model_loader.py", line 81, in import_model_from_files container = import_model_v49(mdl_file, vvd_file, vtx_file, None, scale, create_drives, re_use_meshes, File "C:\Users\batte\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\SourceIO\blender_bindings\source1\mdl\v49\import_mdl.py", line 217, in import_model mesh_data.polygons.foreach_set("use_smooth", np.ones(len(mesh_data.polygons))) TypeError: couldn't access the py sequence

location: :-1

REDxEYE commented 2 years ago

Update to master