Annotations Panel updates in Right Sidebar 1 Frame delayed #81857
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#81857
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
System Information
Operating system: Darwin-19.6.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.10.18
Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash:
3e85bb34d0
Worked: (newest version of Blender that worked as expected)
Short description of error
If you have two annotations and you start framing forward from the first to the second, the second annotation will show up in the 3D viewport on the correct frame, but the Annotations Panel in the Right Side Panel of the 3D viewport doesn't update until the following frame.
Exact steps for others to reproduce the error
Thank you for taking a look at this!!
Daniel
Added subscriber: @DanielHoughton
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Can confirm, refreshes when hovering over the panel.
Added subscriber: @HooglyBoogly
This looks like a missing redraw. Using the "current frame" button in the outliner works, so I expect the frame offset operator doesn't do proper updating.
Added subscriber: @antoniov
@antoniov It looks like the active frame for the annotation gpencil layer is used for the frame label here, and it's one redraw step behind. That seems like a larger issue in itself, but maybe not?
Anyway, it could be easily covered up by just using
scene.frame_current
for this label, but that might be wrong too. We definitely need Antonio's expertise here.Same is true for
frame_jump
,keyframe_jump
,marker_jump
btw.Might be wrong, but suspect this is because of
BKE_gpencil_layer_frame_get
[which sets the active frame - and is called from drawing...annotation_draw_data_layers
].Not sure drawing code should set data in this way?
I'm going to look at code to see what active frame you get when move.
I have checked and when you move the keyframe, active frame changed, so it's only a problem with the panel refresh.
You can check easily using this python line in the console:
bpy.data.grease_pencils- [x].layers- [x].active_frame.frame_number
When you are in frame
9
, the result of the python above is1
, and moving the cursor over the panel the buton is updated.So, @HooglyBoogly you can add the redraw tag and the panel must be updated as expected.
As side note about the logic behind.
The active frame is set in
BKE_gpencil_frame_active_set()
function. When the frame change is evaluated and the function assigned inbuild_object_data_geometry_datablock()
is called, the frame number is calculated.The function
BKE_gpencil_layer_frame_get()
just try to read the active frame, and if the active frame is not correct, then is recalculated. Usually, this funtion returns thegpl->actframe
because if all is working with no bugs, the active frame is already available. Only if you add new frames or some special cases, theactframe
must be calculated in this function.EDIT: Looking at the debug, it looks the annotations are not working as I explained above. The depsgraph never call the
BKE_gpencil_frame_active_set()
function, and all is updated inBKE_gpencil_layer_frame_get()
function. Don't know if this is a problem because the draw is done after the panel update or not.We maybe need something like this:
}
/* get frame to draw */
bGPDframe *gpf = BKE_gpencil_layer_frame_get(gpl, cfra, GP_GETFRAME_USE_PREV);
if (gpf == NULL) {
continue;
}
/* Add layer drawing settings to the set of "draw flags"
I don't know what is the right code to update the panel, but must be in the comment line above.