summaryrefslogtreecommitdiff
path: root/src/lightctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lightctx.c')
-rw-r--r--src/lightctx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lightctx.c b/src/lightctx.c
index 8551882..21c0c03 100644
--- a/src/lightctx.c
+++ b/src/lightctx.c
@@ -172,6 +172,12 @@ int any_selected_fixture_has(struct lightctx *nl, int attr)
for ( i=0; i<nl->n_sel; i++ ) {
struct fixture *fix = &nl->fixtures[nl->selection[i]];
if ( fix->cls->attributes & attr ) return 1;
+ if ( fix->cls->attributes & GOBO ) {
+ if ( fix->cls->gobo_flags[fix->gobo] & attr ) return 1;
+ }
+ if ( fix->cls->attributes & PRISM ) {
+ if ( fix->cls->prism_flags[fix->prism] & attr ) return 1;
+ }
}
return 0;
}