Pinning data (mesh, curve, grease pencil, lattice, particle system) makes certain tabs/options disappear (vertex groups, shapekeys facemaps) #90039

Open
opened 2021-07-22 10:09:58 +02:00 by Sarah Laufer · 22 comments

System Information
Operating system: Microsoft 10
Graphics card:GeForce GTX 10606GB

Blender Version
Broken: 2.93
Worked: don't know

in the properties editor, in object data properties, the pin toggle hides vertex groups and shapekeys

Exact steps for others to reproduce the error

  • select default cube
  • go to properties editor
  • press object data properties tab
  • press the pin button
**System Information** Operating system: Microsoft 10 Graphics card:GeForce GTX 10606GB **Blender Version** Broken: 2.93 Worked: don't know **in the properties editor, in object data properties, the pin toggle hides vertex groups and shapekeys** **Exact steps for others to reproduce the error** - select default cube - go to properties editor - press object data properties tab - press the pin button
Author

Added subscriber: @feldlaufer-4

Added subscriber: @feldlaufer-4

#102578 was marked as duplicate of this issue

#102578 was marked as duplicate of this issue

#102009 was marked as duplicate of this issue

#102009 was marked as duplicate of this issue

#98105 was marked as duplicate of this issue

#98105 was marked as duplicate of this issue

#92034 was marked as duplicate of this issue

#92034 was marked as duplicate of this issue

#91799 was marked as duplicate of this issue

#91799 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2021-07-22 10:16:29 +02:00
Member

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

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

Confirmed, will check

Confirmed, will check
Member

Same is true for Face Maps.

When pinned, these panels look for an object in context (not a mesh) -- but when a mesh is pinned there is no object in context
Reason being:

  • Vertex groups are still tied to object (rather than mesh) from the python API side (even after 3b6ee8cee7 there is no mesh.vertex_groups)
  • Face Maps are still tied to object (rather than mesh) from the python API side
  • Shapekey python API is also partially tied to object (rather than mesh), see ob.active_shape_key / ob.use_shape_key_edit_mode / ob.show_only_shape_key

Also: even almost all operators acting on the stuff still visible atm. (UV Maps, Vertex Colors, Attributes, ...) are disfunctional (they are also polling for a context object rather than mesh).
So in essence, the whole object data properties tab in the Properties Editor is disfunctional when a mesh is pinned.
There is an exception though: the operators acting on Custom Split Normals work well with pinned meshes as they query ED_mesh_context(C) (rather than ED_object_context(C) and then getting the mesh from there)

So I assume this leaves us with following TODOs:

    • tweak/add the python API to make relevant Vertex group / Shapekey / Face Maps stuff available from mesh (rather than object)
    • make according operators get context mesh directly (rather than getting object first and then its data)
Same is true for Face Maps. When pinned, these panels look for an **object** in context (not a **mesh**) -- but when a mesh is pinned there is no **object** in context Reason being: - Vertex groups are still tied to **object** (rather than **mesh**) from the python API side (even after 3b6ee8cee7 there is no `mesh.vertex_groups`) - Face Maps are still tied to **object** (rather than **mesh**) from the python API side - Shapekey python API is also partially tied to **object** (rather than **mesh**), see `ob.active_shape_key` / `ob.use_shape_key_edit_mode` / `ob.show_only_shape_key` Also: even almost all operators acting on the stuff still visible atm. (`UV Maps`, `Vertex Colors`, `Attributes`, ...) are disfunctional (they are also polling for a **context object** rather than **mesh**). So in essence, the whole object data properties tab in the Properties Editor is disfunctional when a mesh is pinned. There is an exception though: the operators acting on `Custom Split Normals` work well with pinned meshes as they query `ED_mesh_context(C)` (rather than `ED_object_context(C)` and then getting the mesh from there) So I assume this leaves us with following TODOs: - - [x] tweak/add the python API to make relevant `Vertex group` / `Shapekey` / `Face Maps` stuff available from **mesh** (rather than **object**) - - [x] make according operators get context mesh directly (rather than getting object first and then its data)
Philipp Oeser removed their assignment 2021-07-22 11:21:17 +02:00
Member

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'

Changed status from 'Confirmed' to: 'Needs Developer To Reproduce'
Member

Eh, totally forgot that this is not only about mesh, but instead vertex groups / shapekeys can be on lattices, curves, etc...
So not sure if it is really worth tweaking the API that much (it would sort of have to be duplicated to all of those types...)
Also ED_mesh_context(C) would not be enough, we'd need to have ED_curve_context(C), ED_lattice_context(C) etc as well

Hm, I think this needs more thinking on my side and/or some input from module devs.

Eh, totally forgot that this is not only about mesh, but instead vertex groups / shapekeys can be on lattices, curves, etc... So not sure if it is really worth tweaking the API that much (it would sort of have to be duplicated to all of those types...) Also `ED_mesh_context(C)` would not be enough, we'd need to have `ED_curve_context(C),` `ED_lattice_context(C)` etc as well Hm, I think this needs more thinking on my side and/or some input from module devs.
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Vertex Groups
I think the solution is to add a new API for vertex groups on meshes (without the object). It can work like the attribute API, so it can just take an ID and use the relevant functions like BKE_id_defgroup_list_get.

We would need that for mesh, grease pencil, and lattices.

Others

  • Shape keys will still be object based for the foreseeable future, as far as I can tell.
  • Face maps, honestly I don't even know why they're in Blender.
  • For other attributes, it seems the poll functions can be fixed.
**Vertex Groups** I think the solution is to add a new API for vertex groups on meshes (without the object). It can work like the attribute API, so it can just take an ID and use the relevant functions like `BKE_id_defgroup_list_get`. We would need that for mesh, grease pencil, and lattices. **Others** - Shape keys will still be object based for the foreseeable future, as far as I can tell. - Face maps, honestly I don't even know why they're in Blender. - For other attributes, it seems the poll functions can be fixed.
Member

In #90039#1194787, @HooglyBoogly wrote:

  • For other attributes, it seems the poll functions can be fixed.

poll and exec both need tweaks

> In #90039#1194787, @HooglyBoogly wrote: > - For other attributes, it seems the poll functions can be fixed. `poll` and `exec` both need tweaks
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Member

Would assume this is a Known Issue for now.

Would assume this is a Known Issue for now.
Philipp Oeser changed title from toggle pin ID makes vertex groups and shapekeys tabs disappear to Pinning data (mesh, curve, grease pencil, lattice) makes certain tabs disappear (vertex groups, shapekeys facemaps) 2021-07-23 13:07:00 +02:00
Member

Added subscribers: @ssoo, @PratikPB2123

Added subscribers: @ssoo, @PratikPB2123
Member

Added subscriber: @kursadk

Added subscriber: @kursadk

Added subscribers: @Georgefly, @antoniov

Added subscribers: @Georgefly, @antoniov
Philipp Oeser changed title from Pinning data (mesh, curve, grease pencil, lattice) makes certain tabs disappear (vertex groups, shapekeys facemaps) to Pinning data (mesh, curve, grease pencil, lattice, particle system) makes certain tabs/options disappear (vertex groups, shapekeys facemaps) 2022-11-17 14:20:54 +01:00
Member

Added subscriber: @pseudoua

Added subscriber: @pseudoua

Added subscriber: @Kuboa

Added subscriber: @Kuboa
Philipp Oeser removed the
Interest
Modeling
label 2023-02-09 15:28:21 +01:00
Bastien Montagne added this to the Core project 2023-02-09 15:42:54 +01:00
Bastien Montagne removed this from the Core project 2023-02-09 18:20:37 +01:00
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
7 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#90039
No description provided.