Fix #115183: Show errors only shows errors when channels have been expanded #116815
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#116815
Loading…
Reference in New Issue
No description provided.
Delete Branch "ChrisLend/blender:fix_invalid_fcu"
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?
When enabling the "Only Show Errors" option in the Dope Sheet/Graph Editor,
it might not show anything even though there are FCurves with errors.
The issue is that the flag
FCURVE_DISABLED
is set by the drawing code,which means the channels have to be visible first.
This creates a workflow issue where you want to filter down to only the
curves with problems, but you need to find them first...
This PR fixes the issue by validating all FCurves whenever the option
is enabled.
I agree it's quite a degradation, but still, with 10k curves that would sum up to 2.8ms. I think that's certainly acceptable in cases when you're problem hunting.
I think that's certainly worth a try. Check the declaration of the
show_only_errors
property in RNA (source/blender/makesrna/intern/rna_action.cc
). You can declare an on-update callback usingRNA_def_property_update()
(the parameter that's currently anullptr
is actually an optional function name string). Set thePROP_CONTEXT_UPDATE
flag (RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
) so the RNA system knows you want abContext*
parameter. Search for"rna_Light_use_nodes_update"
if you want to see an example.@dr.sybren thanks for the hint. I was able to add the callback function when the flag is enabled!
LGTM!
Just one thought that you may want to test out before landing: if the error state needs updating because it's out of date, it might also need clearing? I've left an inline comment. Please check if such an addition is necessary, if not this can land as-is as it does fix the bug it's intending to fix.
@ -351,0 +378,4 @@
PointerRNA id_ptr = RNA_id_pointer_create(ale->id);
if (!RNA_path_resolve_property(&id_ptr, fcu->rna_path, &ptr, &prop)) {
fcu->flag |= FCURVE_DISABLED;
}
I don't quite have an example blend file, but my gut feeling says this should properly take control over the
FCURVE_DISABLED
flag, and thus also be able to clear it:I couldn't think of a case where this would matter, but I added it anyway because I feel like its the more correct solution