Weight Tools: Limit Total does not seem to set the requested limit #68668
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#68668
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Linux (Arch)
Graphics card: Nvidia GTX 970
Blender Version
Broken: 2.80 (sub 75),
f6cb5f5449
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
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]
[5, 5, 5, 5]
(4 vertices have 5 groups each)[5, 5, 5, 5]
(4 vertices have 5 groups each)[3, 3, 3, 3]
(4 vertices have 3 groups each)Added subscriber: @rcorre-3
Added subscriber: @robbott
Changed status from 'Open' to: 'Archived'
I cannot reproduce this bug with:
System Information
Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 560X OpenGL Engine ATI Technologies Inc. 4.1 ATI-2.11.20
Blender Version
version: 2.82 (sub 3), branch: master, commit date: 2019-12-03 15:20, hash:
574a59dfb0
If you reproduce this bug with the latest blender from https://builder.blender.org/download, please reopen this task and share the blend file.
I can still repro on:
Blender 2.82 (sub 7) (build hash:
375c7dc4ca
)From the attached file, select the mesh object and run:
I see:
This is after running
Limit Total
withAll Groups
andLimit=4
. If I run it again I see "0 vertex weights limited", though the above output shows many groups with 5 weights.Robo.blendAdded subscriber: @ankitm
for a workaround, limit it to 3 & there's no
- [x]
. Many 4's though.tested on:
2b7d5caae8
Changed status from 'Archived' to: 'Needs Triage'
I was able to reproduce it, but I think it's an intended design and not a bug. You still have a mirror modifier on the mesh and the "Weights > Limit total" function tries to clean the mesh before applying the modifiers but the "C.object.evaluated_get" call will get the mesh after applying all modifiers. Please apply the mirror modifier and then use the "Limit total" function.
Just for the sake of reproducability, the correct code to run is (the first [ was missing):
Thanks Jean! Applying the mirror modifier before limiting does seem to work.
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Archived'
So, if I understand correctly the problem here is that you are reading the result of the mesh evaluated by the modifiers, which changes the value of the original weights.
It is not a bug then.
Thanks for the report.
Closing as this bug tracker is only for bugs and errors.