More constraints bugfixes:

* Fixed crash that occurs when using an unknown constraint type or a Null constraint - missing NULL check
* ClampTo constraint now draws ok again
* Null constraints now get drawn in the stack again
This commit is contained in:
2007-10-23 10:16:46 +00:00
parent cf8032f315
commit 535deca633
3 changed files with 34 additions and 32 deletions

View File

@@ -4317,7 +4317,7 @@ void draw_object(Base *base, int flag)
ListBase targets = {NULL, NULL};
bConstraintTarget *ct;
if ((curcon->flag & CONSTRAINT_EXPAND) && (cti->get_constraint_targets)) {
if ((curcon->flag & CONSTRAINT_EXPAND) && (cti) && (cti->get_constraint_targets)) {
cti->get_constraint_targets(curcon, &targets);
for (ct= targets.first; ct; ct= ct->next) {