Restore relative dir explorer props in preferences

5.0.1

- fixed: Restored preference paths as dir path (now need `PATH_SUPPORTS_BLEND_RELATIVE` option)
This commit is contained in:
Pullusb 2026-01-13 09:29:05 +01:00
parent 9d2644eb9f
commit 9a4b965d51
2 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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(