Fix: View in Graph Editor not working when object is unselected #118658
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#118658
Loading…
Reference in New Issue
No description provided.
Delete Branch "ChrisLend/blender:fix_view_in_ge"
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?
The new operator "View in Graph Editor" (#114407) only looked at the selection
when generating the FCurve bounds.
This failed in certain cases if things are not selected, or not selectable.
The simplest example is to key the emission strength of the world settings and
try to view that.
This was mentioned by Jonathan Lampel on the PR: #114407 (comment)
The fix is to also resolve the bounds of the animation data on the button.
This means for a few FCurves the bounds might be calculated twice but it
doesn't change the overall result.
This has another side effect though:
The Graph Editor might zoom into an area where there is no FCurve
visible because the thing is not selected so it isn't shown.
This issue existed before if filters were applied, but is now more pronounced
since by default the Graph Editor doesn't show unselected objects.
A warning is raised when at least one of the FCurves that are viewed is not
visible with the current filter settings. The view will still zoom into that area.
This PR extracts the function
get_fcurves_of_property
fromcalculate_selection_fcurve_bounds_and_unhide
.That way it can be passed into
count_fcurves_hidden_by_filter
as well.For the review:
I am not sure using a
blender::Map
is the right datastructure for comparing two Arrays.Basically I just need a fast way to see if an FCurve is in an Array of FCurves. I am only using the keys of the
Map
for this.Fix: View in Graph Editor not working with some propertiesto Fix: View in Graph Editor not working when object is unselectedHmm... I'm not actually sure if this PR is the right way to do it vs these other options. I think(?) what I would expect as a user is:
(Incidentally, case 1 is already handled that way, which is great. However, there's a bug: if the channel group is also hidden, the group does not also get toggled to be visible as it does when manually toggling a channel's visibility as a user, and thus the f-curve is still hidden. Separate issue, though.)
My argument against that is that it is slower because it adds one step into the process.
What I think would be better is to only throw a warning but still do the zoom. That way the user knows why they don't see something and can do something about it if they so choose. Still, that would leave the challenge of talking to the filtering code to see if an FCurve can be visible atm...
I will put it on the agenda to see what people think.
Yeah, I like that. Best of both worlds.
this was discussed in the Animation & Rigging module meeting. The consensus was to zoom to the place but give a warning if the curve isn't visible
It still doesn't work quite well for me. When I animate the world viewport color, and right-click, 'View in Graph Editor', I get the error
Error: F-Curves have no valid size
. I've attached the file I tested with.@dr.sybren fixed by adding this line
const bool whole_array = RNA_boolean_get(op->ptr, "all") || index < 0;
it seems that
index
can be lower than 0 on e.g. color properties that are an array, but the array is not exposed as individual fieldsLGTM!
Make sure you give it a buildbot build before landing, just to be sure.
@blender-bot build