From 9a4b965d51610af85404a2f8dd0cbdc9e0e7c1c8 Mon Sep 17 00:00:00 2001 From: Pullusb Date: Tue, 13 Jan 2026 09:29:05 +0100 Subject: [PATCH] Restore relative dir explorer props in preferences 5.0.1 - fixed: Restored preference paths as dir path (now need `PATH_SUPPORTS_BLEND_RELATIVE` option) --- CHANGELOG.md | 4 ++++ __init__.py | 11 +++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9d49ee..0b71d99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog +5.0.1 + +- fixed: Restored preference paths as dir path (now need `PATH_SUPPORTS_BLEND_RELATIVE` option) + 5.0.0 - added: Update for blender 5+. With retro-compatibility diff --git a/__init__.py b/__init__.py index de58fb6..e954498 100755 --- a/__init__.py +++ b/__init__.py @@ -4,7 +4,7 @@ bl_info = { "name": "GP toolbox", "description": "Tool set for Grease Pencil in animation production", "author": "Samuel Bernou, Christophe Seux", -"version": (5, 0, 0), +"version": (5, 0, 1), "blender": (4, 3, 0), "location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties", "warning": "", @@ -190,22 +190,21 @@ class GPTB_prefs(bpy.types.AddonPreferences): ) if bpy.app.version >= (5, 0, 0): - # DIR_PATH type do not accept relative ("//") since blender 5 - ## using standard string + # DIR_PATH type do not accept relative ("//") without PATH_SUPPORTS_BLEND_RELATIVE since blender 5 brush_path : StringProperty( name="Brushes directory", description="Path to brushes containing the blends holding the brushes", - default="//", maxlen=0) + default="//", maxlen=0, subtype='DIR_PATH', options={'PATH_SUPPORTS_BLEND_RELATIVE'}) output_path : StringProperty( name="Output path", description="Path relative to blend to place render", - default="//render", maxlen=0) + default="//render", maxlen=0, subtype='DIR_PATH', options={'PATH_SUPPORTS_BLEND_RELATIVE'}) playblast_path : StringProperty( name="Playblast Path", description="Path to folder for playblasts output", - default="//playblast", maxlen=0) + default="//playblast", maxlen=0, subtype='DIR_PATH', options={'PATH_SUPPORTS_BLEND_RELATIVE'}) else: brush_path : StringProperty(