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:
authorCampbell Barton <ideasman42@gmail.com>2010-09-22 20:30:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-22 20:30:57 +0400
commit7e121cb9a5f717c66a5d76eaa4d608cc8b5d80c3 (patch)
treeff5e9b8d4d63565cb2421043654fcab63e3ec537 /source/blender/editors/object/object_relations.c
parent6bb0fc3e4fd494acf43111264e2097809a5daf61 (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.c3
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;
}