Merge pull request #5848 from ynput/bugfix/blender-missing-greasepencil-review

Blender: Fix missing Grease Pencils in review
This commit is contained in:
Libor Batek 2023-11-02 09:33:42 +01:00 committed by GitHub
commit ef7a3fceb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,11 +31,12 @@ class CollectReview(pyblish.api.InstancePlugin):
focal_length = cameras[0].data.lens
# get isolate objects list from meshes instance members .
# get isolate objects list from meshes instance members.
types = {"MESH", "GPENCIL"}
isolate_objects = [
obj
for obj in instance
if isinstance(obj, bpy.types.Object) and obj.type == "MESH"
if isinstance(obj, bpy.types.Object) and obj.type in types
]
if not instance.data.get("remove"):