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:
parent
9d2644eb9f
commit
9a4b965d51
@ -1,6 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
|
||||||
|
5.0.1
|
||||||
|
|
||||||
|
- fixed: Restored preference paths as dir path (now need `PATH_SUPPORTS_BLEND_RELATIVE` option)
|
||||||
|
|
||||||
5.0.0
|
5.0.0
|
||||||
|
|
||||||
- added: Update for blender 5+. With retro-compatibility
|
- added: Update for blender 5+. With retro-compatibility
|
||||||
|
|||||||
11
__init__.py
11
__init__.py
@ -4,7 +4,7 @@ bl_info = {
|
|||||||
"name": "GP toolbox",
|
"name": "GP toolbox",
|
||||||
"description": "Tool set for Grease Pencil in animation production",
|
"description": "Tool set for Grease Pencil in animation production",
|
||||||
"author": "Samuel Bernou, Christophe Seux",
|
"author": "Samuel Bernou, Christophe Seux",
|
||||||
"version": (5, 0, 0),
|
"version": (5, 0, 1),
|
||||||
"blender": (4, 3, 0),
|
"blender": (4, 3, 0),
|
||||||
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
@ -190,22 +190,21 @@ class GPTB_prefs(bpy.types.AddonPreferences):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if bpy.app.version >= (5, 0, 0):
|
if bpy.app.version >= (5, 0, 0):
|
||||||
# DIR_PATH type do not accept relative ("//") since blender 5
|
# DIR_PATH type do not accept relative ("//") without PATH_SUPPORTS_BLEND_RELATIVE since blender 5
|
||||||
## using standard string
|
|
||||||
brush_path : StringProperty(
|
brush_path : StringProperty(
|
||||||
name="Brushes directory",
|
name="Brushes directory",
|
||||||
description="Path to brushes containing the blends holding the brushes",
|
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(
|
output_path : StringProperty(
|
||||||
name="Output path",
|
name="Output path",
|
||||||
description="Path relative to blend to place render",
|
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(
|
playblast_path : StringProperty(
|
||||||
name="Playblast Path",
|
name="Playblast Path",
|
||||||
description="Path to folder for playblasts output",
|
description="Path to folder for playblasts output",
|
||||||
default="//playblast", maxlen=0)
|
default="//playblast", maxlen=0, subtype='DIR_PATH', options={'PATH_SUPPORTS_BLEND_RELATIVE'})
|
||||||
|
|
||||||
else:
|
else:
|
||||||
brush_path : StringProperty(
|
brush_path : StringProperty(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user