"Create Inertials" fails if not all vertices are selected
kevinfoley opened this issue · comments
Summary: The "Create Inertials" operation fails unless all of the vertices in a visual geometry object are selected.
Steps to Reproduce:
- Open the attached Blend file.
- Select the Base object (the cube centered at 0,0,0)
- Press Tab to enter Edit mode
- Press the A key until no vertices are selected
- Press Tab to exit Edit mode
- Click "Create Inertials"
- Observe that Phobos displays a divide-by-zero error
- Press Tab to enter Edit mode
- Select some, but not all, of the vertices
- Press Tab to exit Edit mode
- Click "Create Inertials"
- Observe that Phobos displays an error "operands could not be broadcast together with shapes"
Expected result: The Create Inertials operation succeeds regardless of which vertices are selected in the mesh.
Actual result: See steps 7 and 12 above.
Workaround:
- Press Tab to enter Edit mode
- Press the A key until all vertices are selected
- Press Tab to exit Edit mode
- Click "Create Inertials"
Environment:
- Windows 10 Pro 64-bit
- Blender 3.3.15 (LTS)
- Phobos 2.0.0
@kevinfoley Interesting find thank you. I could not reproduce step 7. Please take a look at my commit and see if it fixes it anyway
@AlpenAalAlex Your fix appears to work. Thanks!