ln-12 / blainder-range-scanner

BlAInder range scanner is a Blender add-on to simulate Lidar and Sonar measurements. The result can be saved as annotated 2D image or 3D point cloud.
GNU General Public License v3.0
122 stars 25 forks source link

getMaterialColorMetallic #47

Open hpc100 opened 1 week ago

hpc100 commented 1 week ago

Describe the bug Some index of mesh are out of range in materialMappings

To Reproduce run a rotating scan on a scene.blend

Expected behavior material = materialMappings[hit.target][0][materialIndex] IndexError: index 232 is out of bounds for axis 0 with size 1

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):