Use set instead of list to check types

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
Simone Barbieri 2023-10-24 10:27:25 +01:00 committed by GitHub
parent d66709791b
commit bd545bce39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@ def applied_view(window, camera, isolate=None, options=None):
area.ui_type = "VIEW_3D"
types = ["MESH", "GPENCIL"]
types = {"MESH", "GPENCIL"}
objects = [obj for obj in window.scene.objects if obj.type in types]
if camera == "AUTO":