Page MenuHome

geometry_attributes_poll issues
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.89

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-07-21 13:14, hash: rB22bef356aedd
Worked: none

Short description of error

  • Adding/removing attributes in edit mode is allowed but doesn't work.
  • Removing attributes is allowed when there are no attributes.

Exact steps for others to reproduce the error

  1. Open Object Data Properties -> Attributes for the default cube.
  2. Notice the - button is active while there are no attributes.
  3. Tab into edit mode.
  4. Add some attributes to the list.
  5. Tab back to the object mode.
  6. Notice that previously added attributes disappear.

Not sure if adding/removing attributes should be supported in edit mode, but while it doesn't work it shouldn't be allowed.

This patch will disable adding/removing attributes in edit mode, and removing when there are no attributes:

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Wed, Jul 21, 5:16 PM
Philipp Oeser (lichtwerk) claimed this task.

Can confirm (and thx for the patch!).

Think this should be supported in editmode, will check.

Made all polls consistent now (in regards to checking if there is something to remove at all) in D11990: Make polls for removing mesh data layers consistent.
Will check editmode tomorrow.

Wow, the best bug reports come with patches, kudos!