Page MenuHome

Weight Tools: Limit Total does not seem to set the requested limit
Open, Needs Triage by DeveloperPublic

Description

System Information
Operating system: Linux (Arch)
Graphics card: Nvidia GTX 970

Blender Version
Broken: 2.80 (sub 75), f6cb5f54494e

Short description of error

I have a model that (apparently) has more than 5 bones influencing certain vertices.
I'm exporting to a game engine that only supports 4 bones per vertex.

When I run Weight Tools > Limit Total with a value of 4 or even 3, I still seem to have some vertices with 5 groups.
Only by running Weight Tools > Limit Total with a value of 2 can I get within the limit (at which point I have several vertices with 3 groups.

If this is actually working as intended, https://docs.blender.org/manual/en/latest/sculpt_paint/weight_paint/editing.html#limit-total should be updated to reflect the behavior.

Exact steps for others to reproduce the error

  • Open the python console
  • Run len(v.groups) for v in C.object.evaluated_get(C.view_layer.depsgraph).to_mesh(preserve_all_data_layers=True, depsgraph=C.view_layer.depsgraph).vertices if len(v.groups) > 4]
  • The result is [5, 5, 5, 5] (4 vertices have 5 groups each)
  • Enter Weight Paint Mode
  • Run Limit Total with a value of 4 (the default)
  • Run the same console command
  • The result is still [5, 5, 5, 5] (4 vertices have 5 groups each)
  • Run Limit Total with a value of 2 (the default)
  • Run the same console command
  • The result is now [3, 3, 3, 3] (4 vertices have 3 groups each)

Details

Type
Bug

Event Timeline