diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-22 20:30:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-22 20:30:57 +0400 |
commit | 7e121cb9a5f717c66a5d76eaa4d608cc8b5d80c3 (patch) | |
tree | ff5e9b8d4d63565cb2421043654fcab63e3ec537 /source/blender/editors/object/object_relations.c | |
parent | 6bb0fc3e4fd494acf43111264e2097809a5daf61 (diff) |
clear parent on objects with no parent would still transform them.
Diffstat (limited to 'source/blender/editors/object/object_relations.c')
-rw-r--r-- | source/blender/editors/object/object_relations.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index 2aaabebdb29..3711bc34fdf 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -421,6 +421,9 @@ static int parent_clear_exec(bContext *C, wmOperator *op) CTX_DATA_BEGIN(C, Object*, ob, selected_editable_objects) { + if(ob->parent == NULL) + continue; + if(type == 0) { ob->parent= NULL; } |