Regression: "Store Named Attribute" node affects all vertex groups after than the one specified. #99791

Closed
opened 2022-07-17 10:12:17 +02:00 by Chris D · 13 comments

System Information
Operating system: Arch Linux w/ Linux-5.18.10-zen1-1-zen-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.57

Blender Version
Broken: version: 3.3.0
Worked: 3.2.1
Caused by 12bde317f4

Short description of error
Seems to be related to #99787
Modifying a vertex group with the "Store Named Attribute" node affects all groups after that one.

Exact steps for others to reproduce the error

  • Add many one vertex groups to a mesh.
  • Assign some weight to the vertex groups to make the issue more clear.
  • Add a "Store Named Attribute" node to a geometry nodes group on the object.
  • Set the target attribute to a vertex group near the top of list in the properties panel.

Note that the vertex group's weights of groups after the targeted group have been shifted up on in the list.

NoArmature.blend
Peek 2022-07-17 04-01.webm

**System Information** Operating system: Arch Linux w/ Linux-5.18.10-zen1-1-zen-x86_64-with-glibc2.35 64 Bits Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.57 **Blender Version** Broken: version: 3.3.0 Worked: 3.2.1 Caused by 12bde317f4 **Short description of error** Seems to be related to #99787 Modifying a vertex group with the "Store Named Attribute" node affects all groups after that one. **Exact steps for others to reproduce the error** - Add many one vertex groups to a mesh. - Assign some weight to the vertex groups to make the issue more clear. - Add a "Store Named Attribute" node to a geometry nodes group on the object. - Set the target attribute to a vertex group near the top of list in the properties panel. # Note that the vertex group's weights of groups after the targeted group have been shifted up on in the list. [NoArmature.blend](https://archive.blender.org/developer/F13297059/NoArmature.blend) [Peek 2022-07-17 04-01.webm](https://archive.blender.org/developer/F13297060/Peek_2022-07-17_04-01.webm)
Author

Added subscriber: @CheesecakeCG

Added subscriber: @CheesecakeCG

#99787 was marked as duplicate of this issue

#99787 was marked as duplicate of this issue
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Thanks for the report. I can confirm this. Will do the bisect

Thanks for the report. I can confirm this. Will do the bisect
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Broken since 12bde317f4
cc @HooglyBoogly

Broken since 12bde317f4 cc @HooglyBoogly
Pratik Borhade changed title from "Store Named Attribute" node affects all vertex groups after than the one specified. to Regression: "Store Named Attribute" node affects all vertex groups after than the one specified. 2022-07-18 07:27:17 +02:00
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Can you check if that is fixed? Think it was fixed by c40971d79a + 5da807e00f.

It seems like it might not have been a bug in geometry nodes before, but I'm not sure. The spreadsheet already showed the correct values, just the viewport was drawing the wrong data it seems.

Can you check if that is fixed? Think it was fixed by c40971d79a + 5da807e00f. It seems like it might not have been a bug in geometry nodes before, but I'm not sure. The spreadsheet already showed the correct values, just the viewport was drawing the wrong data it seems.
Member

Works fine in current master (d53ea1d0af58cfdcd230e75ba4ac58453bdbd808)
We can now close this report :)

Works fine in current master (`d53ea1d0af58cfdcd230e75ba4ac58453bdbd808`) We can now close this report :)
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Jacques Lucke self-assigned this 2022-07-23 15:39:47 +02:00

Added subscriber: @angavrilov

Added subscriber: @angavrilov

In #99791#1394416, @JacquesLucke wrote:
It seems like it might not have been a bug in geometry nodes before, but I'm not sure.

The 'affects all group after' part is a manifestation of a 'name list vs data' mismatch bug, which is a consequence of code incompletely updated to account for the possibility of the vertex group list being changed by modifiers, which wasn't possible before. For instance, 80b2fc59d1 fixes the Armature modifier; however there are very likely other cases of this.

The Store Named Attribute node also had a bug where it always deleted the existing attribute and created it from scratch, instead of writing to the existing one. This part was fixed by the commits you mentioned above, however the mismatch bug may still be triggerable via the Remove node.

The 12bde317f4 commit does not cause any bug, it merely revealed hidden bugs in other code by fixing a bug.

> In #99791#1394416, @JacquesLucke wrote: > It seems like it might not have been a bug in geometry nodes before, but I'm not sure. The 'affects all group after' part is a manifestation of a 'name list vs data' mismatch bug, which is a consequence of code incompletely updated to account for the possibility of the vertex group list being changed by modifiers, which wasn't possible before. For instance, 80b2fc59d1 fixes the Armature modifier; however there are very likely other cases of this. The Store Named Attribute node also had a bug where it always deleted the existing attribute and created it from scratch, instead of writing to the existing one. This part was fixed by the commits you mentioned above, however the mismatch bug may still be triggerable via the Remove node. The 12bde317f4 commit does not *cause* any bug, it merely revealed hidden bugs in other code by fixing a bug.
Sign in to join this conversation.
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
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#99791
No description provided.