diff options
-rw-r--r-- | source/blender/editors/space_outliner/outliner_edit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c index ed4ecff88b9..1e9b681197c 100644 --- a/source/blender/editors/space_outliner/outliner_edit.c +++ b/source/blender/editors/space_outliner/outliner_edit.c @@ -1662,17 +1662,15 @@ static int outliner_parenting_poll(bContext *C) static int parent_clear_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) { Main *bmain = CTX_data_main(C); - Scene *scene = NULL; Object *ob = NULL; SpaceOops *soops = CTX_wm_space_outliner(C); - TreeElement *te; char obname[MAX_ID_NAME]; RNA_string_get(op->ptr, "dragged_obj", obname); ob = (Object *)BKE_libblock_find_name(ID_OB, obname); /* search forwards to find the object */ - te = outliner_find_id(soops, &soops->tree, (ID *)ob); + outliner_find_id(soops, &soops->tree, (ID *)ob); ED_object_parent_clear(ob, RNA_enum_get(op->ptr, "type")); |