Presets: consider presets in the path registry as built-in #126176

Closed
Damien Picard wants to merge 1 commits from pioverfour:dp_builtin_extension_presets into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

Presets shipped with extensions can currently be removed. This
behavior is different from Blender's built-in presets, which is
confusing because once deleted they cannot be retrieved, except by
reinstalling the extension.

This change updates bpy.utils.is_path_builtin() to also check paths
in _preset_path_registry, and considering them built-in.

Presets shipped with extensions can currently be removed. This behavior is different from Blender's built-in presets, which is confusing because once deleted they cannot be retrieved, except by reinstalling the extension. This change updates `bpy.utils.is_path_builtin()` to also check paths in _preset_path_registry, and considering them built-in.
Damien Picard added the
Interest
Python API
label 2024-08-10 13:08:50 +02:00
Damien Picard added 1 commit 2024-08-10 13:09:05 +02:00
Presets shipped with extensions can currently be removed. This
behavior is different from Blender's built-in presets, which is
confusing because once deleted they cannot be retrieved, except by
reinstalling the extension.

This change updates `bpy.utils.is_path_builtin()` to also check paths
in _preset_path_registry, and considering them built-in.
Damien Picard requested review from Campbell Barton 2024-08-10 13:12:37 +02:00

Thanks for the PR, I agree with the basic change but I don't think it's correct to consider all presets "builtin".

I've committed changes that consider all extension paths to be built-in when used with presets.

Changes split into 3 commits:

Thanks for the PR, I agree with the basic change but I don't think it's correct to consider all presets "builtin". I've committed changes that consider all extension paths to be built-in when used with presets. Changes split into 3 commits: - 5f9be675f072d7883e7b78a4555123034ce3bd75 - f42713ab1d1163fae65cb265fd7b5e2d261aab60 - 9f931ee3d266551ba33a9e92a2796f0ccc97ee9e
Campbell Barton closed this pull request 2024-08-15 08:29:10 +02:00
Damien Picard deleted branch dp_builtin_extension_presets 2024-08-15 14:41:36 +02:00
Author
Member

Thanks, Campbell!

Thanks, Campbell!

Pull request closed

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#126176
No description provided.