Fix #125319: Can't drop images in uv editor

Caused in b97ac126f8

Pull Request: https://projects.blender.org/blender/blender/pulls/125322

Pull Request: https://projects.blender.org/blender/blender/pulls/125424
This commit is contained in:
Guillermo Venegas
2024-07-23 19:02:12 +02:00
committed by Gitea
parent 7fff1ab3a8
commit 46e987b4e4
+2 -2
View File
@@ -233,7 +233,7 @@ class IMAGE_OT_open_images(Operator):
@classmethod
def poll(cls, context):
return context.area and context.area.ui_type == 'IMAGE_EDITOR'
return context.area and context.area.type == 'IMAGE_EDITOR'
def execute(self, context):
if not self.directory or len(self.files) == 0:
@@ -307,7 +307,7 @@ class IMAGE_FH_drop_handler(FileHandler):
def poll_drop(cls, context):
return (
(context.area is not None) and
(context.area.ui_type == 'IMAGE_EDITOR') and
(context.area.type == 'IMAGE_EDITOR') and
(context.region is not None) and
(context.region.type == 'WINDOW')
)