Fix: GPv3: Regression when applying modifiers after recent commit #130028

Merged
Member

This was caused by 9a03f283e8.

The change disregarded the orig_layers_to_apply mask and
introduced some issues regarding clearing keyframes of deleted layers.

The fix does two things:

  • Add a orig_layers_to_apply set that contains the pointers of the
    original layers that we want to apply.
  • Add a orig_layers_to_clear set that contains the pointers of original
    layers that need their keyframe cleared.

When a layer is removed during modifier execution, we don't want
the layer to be deleted in the original geometry. Instead we clear
the keyframes by deleting all the curves geometry. A layer
can be removed by e.g. using the Grease Pencil to Curves node to
get curve instances, then the Delete Geometry node to delete
some instances, and finally Curves to Grease Pencil to convert back
to Grease Pencil.

This was caused by 9a03f283e8f9b19778f20c186fc9dadbff5a3a1a. The change disregarded the `orig_layers_to_apply` mask and introduced some issues regarding clearing keyframes of deleted layers. The fix does two things: * Add a `orig_layers_to_apply` set that contains the pointers of the original layers that we want to apply. * Add a `orig_layers_to_clear` set that contains the pointers of original layers that need their keyframe cleared. When a layer is removed during modifier execution, we don't want the layer to be deleted in the original geometry. Instead we clear the keyframes by deleting all the curves geometry. A layer can be removed by e.g. using the `Grease Pencil to Curves` node to get curve instances, then the `Delete Geometry` node to delete some instances, and finally `Curves to Grease Pencil` to convert back to Grease Pencil.
Falk David added 1 commit 2024-11-08 12:04:11 +01:00
Fix: GPv3: Regression when applying modifiers after recent commit
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
a49ffc6949
This was caused by 9a03f283e8.

The change disregarded the `orig_layers_to_apply` mask and
introduced some issues regarding clearing keyframes of deleted layers.

The fix does two things:
 * Add a `orig_layers_to_apply` set that contains the pointers of the
   original layers that we want to apply.
* Add a `orig_layers_to_clear` set that contains the pointers of original
  layers that need their keyframe cleared.

When a layer is removed during modifier execution, we don't want
the layer to be deleted in the original geometry. Instead we clear
the keyframes by deleting all the curves geometry. A layer
can be removed by e.g. using the  `Grease Pencil to Curves` node to
get curve instances, then the `Delete Geometry` node to delete
some instances, and finally `Curves to Grease Pencil` to convert back
to Grease Pencil.
Falk David added this to the Grease Pencil project 2024-11-08 12:04:16 +01:00
Falk David requested review from Lukas Tönne 2024-11-08 12:04:51 +01:00
Lukas Tönne approved these changes 2024-11-08 12:11:18 +01:00
Author
Member

@blender-bot build

@blender-bot build
Falk David merged commit f0614a4a3f into blender-v4.3-release 2024-11-08 13:09:13 +01:00
Falk David deleted branch fix-gpv3-modifier-apply-clear-keyframe 2024-11-08 13:09:18 +01:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#130028
No description provided.