Cleanup: Adding in NLA Track Remove / Remove and free BKE methods #104752

Merged
Nate Rupsis merged 8 commits from nrupsis/blender:T82241-cleanup-NLATrack_remove into main 2023-02-16 17:31:21 +01:00
Member

This PR adds 2 new methods:

  • BKE_nlatrack_remove
  • BKE_nlatrack_remove_and_free

and modifies the existing BKE_nlatrack_free to remove the track list parameter.

This refactor splits out the removal / freeing into it's own methods, and provides a higher order method (BKE_nlatrack_remove_and_free) to conveniently call both.

This PR adds 2 new methods: * BKE_nlatrack_remove * BKE_nlatrack_remove_and_free and modifies the existing `BKE_nlatrack_free` to remove the track list parameter. This refactor splits out the removal / freeing into it's own methods, and provides a higher order method (BKE_nlatrack_remove_and_free) to conveniently call both.
Nate Rupsis added the
Module
Animation & Rigging
label 2023-02-14 18:22:16 +01:00
Nate Rupsis added 1 commit 2023-02-14 18:22:18 +01:00
Nate Rupsis requested review from Sybren A. Stüvel 2023-02-14 18:22:57 +01:00
Nate Rupsis added 3 commits 2023-02-14 19:57:49 +01:00
Brecht Van Lommel added this to the Animation & Rigging project 2023-02-15 09:53:35 +01:00

@blender-bot build

@blender-bot build
Sybren A. Stüvel approved these changes 2023-02-16 12:19:29 +01:00
Sybren A. Stüvel left a comment
Member

LGTM, just one comment thingy you can adjust before landing the PR.

LGTM, just one comment thingy you can adjust before landing the PR.
@ -43,3 +43,2 @@
/**
* Remove the given NLA track from the set of NLA tracks, free the track's data,
* and the track itself.
* Remove all NLA strips from the given NLA track, then free the track itself.

Since there is now a difference between "remove" and "remove and free", I think it's a good idea to make this explicit here. Does this remove-and-free? Or does it not free (unexpected, but hey, explicit is better than implicit).

Since there is now a difference between "remove" and "remove and free", I think it's a good idea to make this explicit here. Does this remove-and-free? Or does it not free (unexpected, but hey, explicit is better than implicit).
nrupsis marked this conversation as resolved
Nate Rupsis added 4 commits 2023-02-16 17:29:49 +01:00
Nate Rupsis merged commit bf5a89f4e0 into main 2023-02-16 17:31:21 +01:00
Nate Rupsis deleted branch T82241-cleanup-NLATrack_remove 2023-02-16 17:31:21 +01:00
Sybren A. Stüvel removed this from the Animation & Rigging project 2023-03-02 17:00:28 +01:00
Sign in to join this conversation.
No reviewers
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
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#104752
No description provided.