summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dimension/realize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dimension/realize.c b/dimension/realize.c
index 8a1f024..aa019ed 100644
--- a/dimension/realize.c
+++ b/dimension/realize.c
@@ -915,7 +915,8 @@ dmnsn_realize_csg(dmnsn_astnode astnode, dmnsn_array *lights,
}
}
- dmnsn_realize_object_modifiers(modifiers, csg);
+ if (csg)
+ dmnsn_realize_object_modifiers(modifiers, csg);
return csg;
}