Fix #119534: Action Editor empty channels region without active action #119621
No reviewers
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#119621
Loading…
Reference in New Issue
No description provided.
Delete Branch "lichtwerk/blender:119534"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Caused by
a96f1208cc
For
SPACE_ACTION
(SACTCONT_ACTION
),actedit_get_context
willreturn true, but
ANIM_animdata_context_getdata
also checks thebAnimContext
data [which in this case is the action], so will notreturn true.
As a result we are skipping drawing the background and the search, which
is now done again.
thanks for the fix. I will approve this since the fact that the
bAnimContext
is usable even though false is returned shouldn't stand in the way of this fix. Do wait for sybren to have eyes on this though@ -287,0 +289,4 @@
UI_ThemeClearColor(TH_BACK);
/* channel filter next to scrubbing area */
ED_time_scrub_channel_search_draw(C, region, ac.ads);
The fact that
has_valid_animcontext
is false, but you can still useac.ads
is very confusing.Now that I think about it, it is probably better to move that to below theif(!has_valid_animcontext)
.While I don't see a way how
ac.ads
could be anullptr
it would be a crash if it is.The only difference is that you wouldn't get the search bar which is fine IMO because there is nothing to search for.Edit: Since this has always worked like that (had a look at my commit that broke this) I am fine landing it like that. It hasn't crashed so far so it's probably fine. Also means no visual changes between 4.0 and 4.1
Ooooooh my, yeah that's bad. Nothing to do with this PR, indeed, so for that just a big thanks @lichtwerk !
@ThomasDinges : fine for you for 4.1 still?
Fine with me
@blender-bot build