mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Include grease pencil in review and thumbnails
This commit is contained in:
parent
aeb6afb33b
commit
d66709791b
1 changed files with 4 additions and 3 deletions
|
|
@ -148,13 +148,14 @@ def applied_view(window, camera, isolate=None, options=None):
|
|||
|
||||
area.ui_type = "VIEW_3D"
|
||||
|
||||
meshes = [obj for obj in window.scene.objects if obj.type == "MESH"]
|
||||
types = ["MESH", "GPENCIL"]
|
||||
objects = [obj for obj in window.scene.objects if obj.type in types]
|
||||
|
||||
if camera == "AUTO":
|
||||
space.region_3d.view_perspective = "ORTHO"
|
||||
isolate_objects(window, isolate or meshes)
|
||||
isolate_objects(window, isolate or objects)
|
||||
else:
|
||||
isolate_objects(window, isolate or meshes)
|
||||
isolate_objects(window, isolate or objects)
|
||||
space.camera = window.scene.objects.get(camera)
|
||||
space.region_3d.view_perspective = "CAMERA"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue