Skip to content

Commit 6cbfde2

Browse files
committed
Fix infinite loop when handling directory change
1 parent 74f3d96 commit 6cbfde2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/property/updates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ def update_download_directory_mode(property,context):
2626
bpy.ops.af.update_implementations_list()
2727

2828
def update_download_directory_relative(property,context):
29-
property.relative_directory = os.path.normpath(property.relative_directory)
29+
property['relative_directory'] = os.path.normpath(property.relative_directory)
3030

3131
if bpy.ops.af.update_implementations_list.poll():
3232
bpy.ops.af.update_implementations_list()
3333

3434
def update_download_directory_default(property,context):
35-
property.default_directory = os.path.normpath(property.default_directory)
35+
property['default_directory'] = os.path.normpath(property.default_directory)
3636

3737
if bpy.ops.af.update_implementations_list.poll():
3838
bpy.ops.af.update_implementations_list()

0 commit comments

Comments
 (0)