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.
This commit is contained in:
Campbell Barton 2022-08-12 10:59:14 +10:00
parent d4a082bc70
commit dfd2570d28
1 changed files with 4 additions and 1 deletions

View File

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