fix for crash with edit armature buttons when no bones were selected (uninitialized...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 15 Jul 2011 23:55:20 +0000 (23:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 15 Jul 2011 23:55:20 +0000 (23:55 +0000)
source/blender/editors/space_view3d/view3d_buttons.c

index ef7ada85843dd786b6dc65460634004c28760b11..6e03866153f93d78c7f846877c64a39dd1eec533 100644 (file)
@@ -967,7 +967,7 @@ static void v3d_editarmature_buts(uiLayout *layout, Object *ob)
        ebone= arm->act_edbone;
 
        if (!ebone || (ebone->layer & arm->layer)==0) {
-               uiItemL(col, "Nothing selected", ICON_NONE);
+               uiItemL(layout, "Nothing selected", ICON_NONE);
                return;
        }
 //     row= uiLayoutRow(layout, 0);