GPv3: Optional automatic conversion of legacy GP objects on fileload. #118705

Merged
Bastien Montagne merged 1 commits from mont29/blender:tmp-gp-conversion-fileload into main 2024-03-23 03:29:08 +01:00

This adds a new exprimental option to automatically convert GP legacy data to GPv3 one.

It supports also linking and appending cases. Conversion also happens when opening a file linking GP legacy data saved by an older .blendfile.

Some changes were needed from the 'operator only' code to avoid converting a same GP data more than once, and also handle potential 'orphaned' GP data not currently used by any object.

Main TODOs for this to be considered as 'complete':

  • Support linked IDs (this requires some work in IDManagement area to allow creating IDs in libraries, see !108328).
  • Add call to conversion code from link/append code as well.
This adds a new exprimental option to automatically convert GP legacy data to GPv3 one. It supports also linking and appending cases. Conversion also happens when opening a file linking GP legacy data saved by an older .blendfile. Some changes were needed from the 'operator only' code to avoid converting a same GP data more than once, and also handle potential 'orphaned' GP data not currently used by any object. ~~Main TODOs for this to be considered as 'complete':~~ * [x] Support linked IDs (this requires some work in IDManagement area to allow creating IDs in libraries, see !108328). * [x] Add call to conversion code from link/append code as well.
Author
Owner

@blender-bot build

@blender-bot build
Bastien Montagne added this to the Grease Pencil project 2024-02-24 20:41:15 +01:00
Bastien Montagne changed title from WIP GPv3: Optional automatic conversion of legacy GP objects on fileload. to WIP: GPv3: Optional automatic conversion of legacy GP objects on fileload. 2024-02-24 20:41:47 +01:00
Bastien Montagne force-pushed tmp-gp-conversion-fileload from 29f77e89c8 to 857d08974e 2024-03-06 17:36:36 +01:00 Compare
Bastien Montagne changed title from WIP: GPv3: Optional automatic conversion of legacy GP objects on fileload. to GPv3: Optional automatic conversion of legacy GP objects on fileload. 2024-03-06 17:38:29 +01:00
Bastien Montagne requested review from Falk David 2024-03-06 17:38:40 +01:00
Author
Owner

@blender-bot package

@blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR118705) when ready.
Bastien Montagne force-pushed tmp-gp-conversion-fileload from 857d08974e to 0d8eb2a080 2024-03-08 18:03:51 +01:00 Compare
Author
Owner

@blender-bot package

@blender-bot package
Member

Package build started. Download here when ready.

Package build started. [Download here](https://builder.blender.org/download/patch/PR118705) when ready.
Falk David approved these changes 2024-03-18 12:07:42 +01:00
Falk David left a comment
Member

Thanks.

Thanks.
Bastien Montagne force-pushed tmp-gp-conversion-fileload from 0d8eb2a080 to 62547c192e 2024-03-23 02:27:38 +01:00 Compare
Author
Owner

@blender-bot build

@blender-bot build
Author
Owner

@blender-bot build

@blender-bot build
Bastien Montagne merged commit 4d973d3cf3 into main 2024-03-23 03:29:08 +01:00
Bastien Montagne deleted branch tmp-gp-conversion-fileload 2024-03-23 03:29:10 +01: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
3 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#118705
No description provided.