mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Use set instead of list to check types
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
d66709791b
commit
bd545bce39
1 changed files with 1 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue