GPencil: framechanging does not evaluate keyframed layer transform correctly (if this would result in identity matrix) #101164

Closed
opened 2022-09-18 13:10:56 +02:00 by Piotr Nikov · 21 comments

System Information
Operating system: MacOs 12.6
Graphics card: M1

Blender Version
Broken: 3.4.0 (3.4.0 2022-09-17)
Worked: ?

Short description of error
When animating Grease Pencil Transforms in Stroke Properties, there is a refresh problem (it doesn't refresh) when going back to first frame of animation using Jump to first frame ...
Workaround seems to be clicking a keyframe in the Dopesheet.

Exact steps for others to reproduce the error

  • Open attached file
  • Drag playhead away from 0th frame (say 20)
  • Press Jump to Previous keyframe button from timeline header
    (notice viewport doesn't update. Clicking anywhere in dopsheet later updates the viewport)

Kapture 2022-09-18 at 12.59.55.mp4
AnimatedGP_Transform_Refresh_Bug.blend

Seems to only be the case with exactly 0° rotation?
If I change the first rotation keyframe to have a value of 1°, this all of a sudden seems to work fine:
AnimatedGP_Transform_Refresh_Bug_repro.blend

going to / going from zero rotation goes wrong:
gpencil_layer_transform_zero_rotation_.blend

**System Information** Operating system: MacOs 12.6 Graphics card: M1 **Blender Version** Broken: 3.4.0 (3.4.0 2022-09-17) Worked: ? **Short description of error** When animating Grease Pencil Transforms in Stroke Properties, there is a refresh problem (it doesn't refresh) when going back to first frame of animation using Jump to first frame ... Workaround seems to be clicking a keyframe in the Dopesheet. **Exact steps for others to reproduce the error** - Open attached file - Drag playhead away from 0th frame (say 20) - Press `Jump to Previous keyframe` button from timeline header (notice viewport doesn't update. Clicking anywhere in dopsheet later updates the viewport) [Kapture 2022-09-18 at 12.59.55.mp4](https://archive.blender.org/developer/F13506367/Kapture_2022-09-18_at_12.59.55.mp4) [AnimatedGP_Transform_Refresh_Bug.blend](https://archive.blender.org/developer/F13506368/AnimatedGP_Transform_Refresh_Bug.blend) Seems to only be the case with exactly 0° rotation? If I change the first rotation keyframe to have a value of 1°, this all of a sudden seems to work fine: [AnimatedGP_Transform_Refresh_Bug_repro.blend](https://archive.blender.org/developer/F13526286/AnimatedGP_Transform_Refresh_Bug_repro.blend) going to / going from zero rotation goes wrong: [gpencil_layer_transform_zero_rotation_.blend](https://archive.blender.org/developer/F13526538/gpencil_layer_transform_zero_rotation_.blend)
Author

Added subscriber: @Pyer

Added subscriber: @Pyer

#101325 was marked as duplicate of this issue

#101325 was marked as duplicate of this issue
Author

Added subscriber: @antoniov

Added subscriber: @antoniov
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123

Added subscriber: @amelief

Added subscriber: @amelief

I am not sure I understand the issue.
If the issue is that we cannot see the keyframes in the dopesheet, that is because the dopesheet is in 'Grease Pencil' mode, and thus only displaying layer keyframes (meaning drawn keyframes, and not transform or gpencil data keyframes). If you switch to the standard mode of the dopesheet, you can see that the keyframes are correctly created.Capture d’écran du 2022-09-19 09-42-43.png

I am not sure I understand the issue. If the issue is that we cannot see the keyframes in the dopesheet, that is because the dopesheet is in 'Grease Pencil' mode, and thus only displaying layer keyframes (meaning drawn keyframes, and not transform or gpencil data keyframes). If you switch to the standard mode of the dopesheet, you can see that the keyframes are correctly created.![Capture d’écran du 2022-09-19 09-42-43.png](https://archive.blender.org/developer/F13512892/Capture_d_écran_du_2022-09-19_09-42-43.png)
Author

Hello! The issue is that when animating a Grease Pencil Transform, when you press the Icon to go to the first frame of the animation (or jump to previous/next key) Screenshot 2022-09-19 at 09.59.59.png the viewport does not refresh the animated GP transform (timecode 00:17 in the video).
It refreshes the viewport when you click anywhere in the Dopesheet window (GP or normal).

Hello! The issue is that when animating a Grease Pencil Transform, when you press the Icon to go to the first frame of the animation (or jump to previous/next key) ![Screenshot 2022-09-19 at 09.59.59.png](https://archive.blender.org/developer/F13512933/Screenshot_2022-09-19_at_09.59.59.png) the viewport does not refresh the animated GP transform (timecode 00:17 in the video). It refreshes the viewport when you click anywhere in the Dopesheet window (GP or normal).
Pratik Borhade changed title from Animated GreasePencil transform refresh bug to GPencil: Jump to previous keyframe doesn't update the viewport for transform properties 2022-09-19 10:07:30 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Jumping to next seems to go fine on my side.
Could it be that this is only the case with exactly 0° rotation?
If I change the first rotation keyframe to have a value of 1°, this all of a sudden seems to work fine:
AnimatedGP_Transform_Refresh_Bug_repro.blend

Jumping to next seems to go fine on my side. Could it be that this is only the case with exactly 0° rotation? If I change the first rotation keyframe to have a value of 1°, this all of a sudden seems to work fine: [AnimatedGP_Transform_Refresh_Bug_repro.blend](https://archive.blender.org/developer/F13526286/AnimatedGP_Transform_Refresh_Bug_repro.blend)
Author

@lichtwerk
Haha you're right!! So weird!!!

@lichtwerk Haha you're right!! So weird!!!
Member

So this is true for all framechanging (mouse, frame offset, frame jump, ..)
Seems like greasepencil is just not evaluating right for zero rotation keyframes

So this is true for **all** framechanging (mouse, frame offset, frame jump, ..) Seems like greasepencil is just not evaluating right for zero rotation keyframes
Philipp Oeser changed title from GPencil: Jump to previous keyframe doesn't update the viewport for transform properties to GPencil: framechanging does not evaluate keyframed layer transform rotation of exactly zero degrees correctly 2022-09-20 10:51:03 +02:00
Author

@lichtwerk
Oh wait it actually does the same thing with Location, you have to put a different value than zero for it to refresh correctly...
Scaling seems to be ok.

@lichtwerk Oh wait it actually does the same thing with Location, you have to put a different value than zero for it to refresh correctly... Scaling seems to be ok.
Philipp Oeser self-assigned this 2022-09-20 11:27:10 +02:00
Member

Ah, there are (optimization checks for this in BKE_gpencil_prepare_eval_data & BKE_gpencil_update_layer_transforms
Will check on a fix

Ah, there are (optimization checks for this in `BKE_gpencil_prepare_eval_data` & `BKE_gpencil_update_layer_transforms` Will check on a fix
Philipp Oeser changed title from GPencil: framechanging does not evaluate keyframed layer transform rotation of exactly zero degrees correctly to GPencil: framechanging does not evaluate keyframed layer transform correctly (if this would result in identity matrix) 2022-09-20 11:28:30 +02:00

This issue was referenced by dfcc8086fb

This issue was referenced by dfcc8086fb29745fe533088452797fd2ef39df25

This issue was referenced by 24814a03b7

This issue was referenced by 24814a03b7345184ba5a87e03015c70eb40c31bf

This issue was referenced by 1cbfe04638

This issue was referenced by 1cbfe0463879fb3dde7e10f151b5ef24008bd211
Author

@lichtwerk Hello and sorry for asking, but is this going to be published to master at some point? I'm still not seeing it in the recent nightly builds. Thanks :)

@lichtwerk Hello and sorry for asking, but is this going to be published to master at some point? I'm still not seeing it in the recent nightly builds. Thanks :)
Member

Probably soonish (just waiting for a second pair of eyes)

Probably soonish (just waiting for a second pair of eyes)
Member

Added subscriber: @miya

Added subscriber: @miya
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
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
5 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#101164
No description provided.