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(