New vertex groups cannot be operated upon ... until? #60517
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
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
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#60517
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: Windows 10
Graphics card: GTX 970
Blender Version
example: 2.79b release
There is a problem with the way the Blender handles newly created vertex groups that causes numerous problems.
To recreate:
Using the weight paint brush in an empty space, or manually assigning a vertex to the vertex group in the properties window will allow the weight tools to work as expected. However this is not an acceptable workaround when using Bmesh to manager vertex groups.
Added subscriber: @sok0
untitled.blend
in the attached file the script fails on the newly created vertex group "Group":
Traceback (most recent call last):
AttributeError: BMElem[key]: invalid key, must be a BMLayerItem
If the vertex group is initialized such as by assigning vertices to the group manually, prior to running the script, then the script will run without errors.
untitled2.blend
For a new vertex group:
.verts.layers.deform.items() returns []
.verts.layers.deform.active returns None
For a vertex group that has had a manual weight paint brush stroke or vertex assignment in the properties panel, respectively:
[('', <BMLayerItem object at 0x000002D11EB10300>)]
<BMLayerItem object at 0x000002D11EB10300>
Sorry for blowing up the thread, but found a solution: The following script will create the needed BMLayerItem object so that Weight Tools may be used on a newly created Vertex Group
Initilize VG for Tools.blend
Added subscriber: @JacquesLucke
Based on your new discoveries, could you please rephrase what the bug is?
Also remember that there should only be one bug per report. If you experience more bugs, create a separate report for each.
The bug is that Weight Tools do not work as expected, possibly because .verts.layers.deform.verify() is needed to fix it
Added subscriber: @ZedDB
I'm getting this with 2.8 if I follow the instructions in the description:
BLI_assert failed: /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:2294, mesh_get_eval_deform(), at 'ob->id.tag & LIB_TAG_COPIED_ON_WRITE'
And the BT if I disregard the asserts:
@sok0, can you explain me what the "Fix Deforms" operation is supposed to do?
Could not find any useful information. The code for it seems to be bad in many regards.
Also I found this: #32406
Does not look like this has ever been corrected.
I've read the documentation and I assumed it was some kind of algorithm that adjusts ratios of bone weights for deforms that cause excessive clipping. In practice i've never seen it do anything.
Added subscriber: @Sergey
@ZedDB, i've made current master (
9d269a97be
) to work the same as 2.79 with "Fix Deform". There is no much more i can do here.The original report is about 2.79, and i can only make .280 work same as 2.79 in areas i am absolutely not familiar with.
Added subscriber: @iss
Still crashes in 2.83 in Fix Deforms operator code
MDeformVert *dvert
was nullThis issue was referenced by
101c3d4ce4
Changed status from 'Confirmed' to: 'Resolved'