GPv3: Re-evaluate on frame change #111137

Merged
Falk David merged 3 commits from filedescriptor/blender:gpv3-update-on-time-change into main 2023-08-15 17:31:19 +02:00
Member

This makes it so the GreasePencil geometry gets updated on a time
change.
The frame at which the object gets evaluated is stored in runtime as
eval_frame. This is for example used to calculate the bounding box
of the geometry as well as invalidating the batch cache for different
frames.

This makes it so the `GreasePencil` geometry gets updated on a time change. The frame at which the object gets evaluated is stored in runtime as `eval_frame`. This is for example used to calculate the bounding box of the geometry as well as invalidating the batch cache for different frames.
Falk David added 1 commit 2023-08-15 15:45:12 +02:00
fd35bd0ffc GPv3: Update on frame change
This makes it so the `GreasePencil` geometry gets updated on a time
change.
The frame at which the object gets evaluated is stored in runtime as
`eval_frame`. This is for example used to calculate the bounding box
of the geometry as well as invalidating the batch cache for different
frames.
Falk David requested review from Sergey Sharybin 2023-08-15 15:45:27 +02:00
Falk David added this to the Grease Pencil project 2023-08-15 15:45:34 +02:00
Falk David added 1 commit 2023-08-15 15:46:08 +02:00
Sergey Sharybin reviewed 2023-08-15 16:24:58 +02:00
Sergey Sharybin left a comment
Owner

From the depsgraph side the change seems much simpler to what we've discussed here. So that's super nice :)

For the changes outside of the DEG, is something I remember we've also discussed, and from a bigger picture it does seem to make sense. But the details and such you probably have better idea than me looking into this patch :)

From the depsgraph side the change seems much simpler to what we've discussed here. So that's super nice :) For the changes outside of the DEG, is something I remember we've also discussed, and from a bigger picture it does seem to make sense. But the details and such you probably have better idea than me looking into this patch :)
@ -1716,0 +1752,4 @@
function(index, drawing->wrap());
}
else if (drawing_base->type == GP_DRAWING_REFERENCE) {
/* TODO */

Is it something you plan to address as part of this PR?

Is it something you plan to address as part of this PR?
Author
Member

For now, there are no GP_DRAWING_REFERENCEs anywhere in the code yet. Maybe this should assert?

For now, there are no `GP_DRAWING_REFERENCE`s anywhere in the code yet. Maybe this should assert?

Assert sounds good.

Assert sounds good.
filedescriptor marked this conversation as resolved
Falk David added 1 commit 2023-08-15 16:46:21 +02:00
Sergey Sharybin approved these changes 2023-08-15 17:11:04 +02:00
Falk David merged commit 969de5135a into main 2023-08-15 17:31:19 +02:00
Falk David deleted branch gpv3-update-on-time-change 2023-08-15 17:31:21 +02:00
Sign in to join this conversation.
No reviewers
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
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#111137
No description provided.