Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2003-11-23 23:28:35 +0300
committerMartin Poirier <theeth@yahoo.com>2003-11-23 23:28:35 +0300
commitd3563d23b7ce4b8da634a01e67660e4aa2a6d7ac (patch)
tree26a9be68cccc88cc8e7fa83d861a094062af2532 /source/blender/src/editconstraint.c
parentf58d256a9cd5b6a1cf920b63202e979b0e785308 (diff)
No line for constraint without target
Code notes: The constraint_has_target can be used to test if a constraint has a target at all.
Diffstat (limited to 'source/blender/src/editconstraint.c')
-rw-r--r--source/blender/src/editconstraint.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/editconstraint.c b/source/blender/src/editconstraint.c
index 4f3e4d40513..999a4d5f444 100644
--- a/source/blender/src/editconstraint.c
+++ b/source/blender/src/editconstraint.c
@@ -491,7 +491,10 @@ static short detect_constraint_loop (Object *owner, const char* substring, int d
case CONSTRAINT_TYPE_TRACKTO:
{
bTrackToConstraint *data = curcon->data;
- if (!exist_object(data->tar)) data->tar = NULL;
+ if (!exist_object(data->tar)) {
+ data->tar = NULL;
+ break;
+ }
if (typefrom != CONSTRAINT_TYPE_TRACKTO && typefrom != CONSTRAINT_TYPE_LOCKTRACK){
if (add_constraint_element (data->tar, data->subtarget, owner, substring)){