From 0f8969640ccb5e7f615c85576e569ba23dd62c6f Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sat, 28 Feb 2009 10:23:36 +0000 Subject: Bugfixes for armature operators - parent + align operators weren't working correctly, since the active bone wasn't being accounted for in the right way. --- source/blender/editors/space_outliner/outliner.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/editors/space_outliner') diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c index b513bf7066a..220fd7b8dc8 100644 --- a/source/blender/editors/space_outliner/outliner.c +++ b/source/blender/editors/space_outliner/outliner.c @@ -3127,7 +3127,7 @@ static void tree_element_to_path(SpaceOops *soops, TreeElement *te, TreeStoreEle /* step 1: flatten out hierarchy of parents into a flat chain */ for (tem= te->parent; tem; tem= tem->parent) { - ld= MEM_callocN(sizeof(LinkData), "LinkData for ks_editop_add_cb()"); + ld= MEM_callocN(sizeof(LinkData), "LinkData for tree_element_to_path()"); ld->data= tem; BLI_addhead(&hierarchy, ld); } @@ -3145,7 +3145,6 @@ static void tree_element_to_path(SpaceOops *soops, TreeElement *te, TreeStoreEle /* just 'append' property to path * - to prevent memory leaks, we must write to newpath not path, then free old path + swap them */ - if(tse->type == TSE_RNA_PROPERTY) { if(RNA_property_type(ptr, prop) == PROP_POINTER) { /* for pointer we just append property name */ -- cgit v1.2.3