diff options
author | Campbell Barton <campbell@blender.org> | 2022-08-12 03:59:14 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-08-12 03:59:14 +0300 |
commit | dfd2570d28a880d73d347e52a4ff2a69cbd658b9 (patch) | |
tree | b89a916089743e9b3ae591331b579f131727d5bf /release | |
parent | d4a082bc70d4decf2f68b2652b4f796b37252998 (diff) |
WM: define WM_OT_drop_blend_file path as a file-path, skip-save
File paths have special handling of non-utf8 characters, so it's
best to use the FILE_PATH sup-type for all file-paths.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 7e7dbbc387e..cbb5a63b754 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -3152,7 +3152,10 @@ class WM_OT_drop_blend_file(Operator): bl_label = "Handle dropped .blend file" bl_options = {'INTERNAL'} - filepath: StringProperty() + filepath: StringProperty( + subtype='FILE_PATH', + options={'SKIP_SAVE'}, + ) def invoke(self, context, _event): context.window_manager.popup_menu(self.draw_menu, title=bpy.path.basename(self.filepath), icon='QUESTION') |