Page MenuHome

Regression: "Store Named Attribute" node affects all vertex groups after than the one specified.
Closed, ResolvedPublic

Description

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 rB12bde317f4c9: Fix T98949: Deleting vertex group in geometry nodes affects others

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

Exact steps for others to reproduce the error

  1. Add many one vertex groups to a mesh.
  2. Assign some weight to the vertex groups to make the issue more clear.
  3. Add a "Store Named Attribute" node to a geometry nodes group on the object.
  4. Set the target attribute to a vertex group near the top of list in the properties panel.
  5. Note that the vertex group's weights of groups after the targeted group have been shifted up on in the list.


Event Timeline

Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Confirmed.Jul 18 2022, 2:38 AM

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

Pratik Borhade (PratikPB2123) renamed this task 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. .Jul 18 2022, 7:27 AM
Pratik Borhade (PratikPB2123) updated the task description. (Show Details)

Can you check if that is fixed? Think it was fixed by rBc40971d79a887820d621705b29f65f833d9b9f52 + rB5da807e00fb75de31442f872f4997ba361be00f8.

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.

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

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, rB80b2fc59d11d5814afe7 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 rB12bde317f4c9 commit does not cause any bug, it merely revealed hidden bugs in other code by fixing a bug.