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:
parent
d4a082bc70
commit
dfd2570d28
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue