fix context issues and drawing

This commit is contained in:
989onan
2024-09-09 21:26:45 -04:00
parent fba59faa50
commit 94dcc3ed7a
3 changed files with 7 additions and 7 deletions
+4
View File
@@ -31,6 +31,10 @@ class AvatarToolkit_OT_AlignUVEdgesToTarget(Operator):
for obj in context.view_layer.objects.selected:
if obj.type != "MESH":
return False
if not context.space_data:
return False
if not context.space_data.show_uvedit:
return False
return True
def execute(self, context: Context):