quiet compiler warnings.

This commit is contained in:
Campbell Barton
2013-08-14 11:29:22 +00:00
parent c09034608c
commit 1979720d03

View File

@@ -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"));