summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-05-03 22:19:09 -0600
committerTavian Barnes <tavianator@gmail.com>2010-05-03 22:19:09 -0600
commitc50dfa559693664b707ca83a67da268e9959a8e4 (patch)
tree89451944c4c93a21b520c7a36399d0a696c921b6
parentc27decbb0a998080e215ec2fc5df9c9f26529999 (diff)
downloaddimension-c50dfa559693664b707ca83a67da268e9959a8e4.tar.xz
Don't apply object modifiers to a NULL CSG object.
-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;
}