Anim: update descriptions for slot-related properties #127185

Merged
Sybren A. Stüvel merged 2 commits from dr.sybren/blender:anim/add-adt-prop-descriptions-comments into main 2024-09-06 11:15:12 +02:00

Two commits, which are supposed to land as such:

  • Add description to Remove RNA property Action.last_slot_handle
  • Add comment to explain why we need AnimData.action_slot_handle.

Based on Nathan's comment #124399 (comment)

Two commits, which are supposed to land as such: - ~~Add description to~~ Remove RNA property `Action.last_slot_handle` - Add comment to explain why we need `AnimData.action_slot_handle`. Based on Nathan's comment https://projects.blender.org/blender/blender/issues/124399#issuecomment-1238426
Sybren A. Stüvel added the
Module
Animation & Rigging
label 2024-09-05 12:57:24 +02:00
Sybren A. Stüvel requested review from Nathan Vegdahl 2024-09-05 13:00:49 +02:00
Author
Member

@blender-bot build

@blender-bot build
Author
Member

Looking at things again, I think we could just remove the RNA property for Action.last_slot_handle. There's no Python code that uses it at the moment anyway.

Looking at things again, I think we could just remove the RNA property for `Action.last_slot_handle`. There's no Python code that uses it at the moment anyway.
Nathan Vegdahl reviewed 2024-09-06 10:27:47 +02:00
@ -2477,0 +2477,4 @@
RNA_def_property_ui_text(
prop,
"Last-Used Slot Handle",
"Each slot of an Action gets a different handle, and this is the last handle that was used "
Member

Ooooh, that makes sense now. Thanks for the description.

I think the reason I was confused is because I didn't expect this to be exposed. It seems very internal to me—the specifics of how slot handles are doled out is an implementation detail, IMO.

As you mentioned in your comment, I think we can just remove last_slot_handle from the Python API entirely. If someone needs it later for some reason, we can always expose it then. But honestly, I really doubt that's ever going to happen.

Ooooh, that makes sense now. Thanks for the description. I think the reason I was confused is because I didn't expect this to be exposed. It seems very internal to me—the specifics of how slot handles are doled out is an implementation detail, IMO. As you mentioned in your comment, I think we can just remove `last_slot_handle` from the Python API entirely. If someone needs it later for some reason, we can always expose it then. But honestly, I really doubt that's ever going to happen.
Nathan Vegdahl approved these changes 2024-09-06 10:29:35 +02:00
Nathan Vegdahl left a comment
Member

Happy to land this as-is for now, with the caveat that I would like us to remove last_slot_handle from RNA before Baklava makes its way into an official release. (But if you want to remove it now while landing, that's also great.)

Happy to land this as-is for now, with the caveat that I would like us to remove `last_slot_handle` from RNA before Baklava makes its way into an official release. (But if you want to remove it now while landing, that's also great.)
Sybren A. Stüvel force-pushed anim/add-adt-prop-descriptions-comments from 0ff2143086 to aa54de445d 2024-09-06 11:13:47 +02:00 Compare
Sybren A. Stüvel merged commit fbfe407201 into main 2024-09-06 11:15:12 +02:00
Sybren A. Stüvel deleted branch anim/add-adt-prop-descriptions-comments 2024-09-06 11:15:15 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
2 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#127185
No description provided.