diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-05-03 22:19:09 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-05-03 22:19:09 -0600 |
commit | c50dfa559693664b707ca83a67da268e9959a8e4 (patch) | |
tree | 89451944c4c93a21b520c7a36399d0a696c921b6 | |
parent | c27decbb0a998080e215ec2fc5df9c9f26529999 (diff) | |
download | dimension-c50dfa559693664b707ca83a67da268e9959a8e4.tar.xz |
Don't apply object modifiers to a NULL CSG object.
-rw-r--r-- | dimension/realize.c | 3 |
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; } |