From: hgn Date: Wed, 3 Aug 2022 13:00:20 +0000 (+0100) Subject: visibility fix X-Git-Url: https://skaterift.com/git/?a=commitdiff_plain;h=bbaea1a1d3521ae318d89710d5a320ce01bebb55;p=blender_graphics_cropper.git visibility fix --- diff --git a/blender_graphics_cropper.py b/blender_graphics_cropper.py index ad12dfc..10c6ec9 100644 --- a/blender_graphics_cropper.py +++ b/blender_graphics_cropper.py @@ -27,7 +27,7 @@ def cropper_draw_ui(): h = bpy.context.region.height for obj in bpy.context.scene.objects: - if obj.cropper_data.enabled: + if obj.cropper_data.enabled and obj.visible_get(): x = obj.cropper_data.resolution[0] y = obj.cropper_data.resolution[1] c = Vector((1,1,0,1)) if obj.select_get() else Vector((0.6,0.4,0,1)) @@ -59,7 +59,7 @@ def cropper_draw(): colours = [] for obj in bpy.context.scene.objects: - if obj.cropper_data.enabled: + if obj.cropper_data.enabled and obj.visible_get(): x = obj.cropper_data.resolution[0] y = obj.cropper_data.resolution[1] c = Vector((1,1,0,1)) if obj.select_get() else Vector((0.6,0.4,0,1))