armature ghost stepsize was not initialized, Aligorith: can you check this is correct?
authorCampbell Barton <ideasman42@gmail.com>
Fri, 1 Jan 2010 19:10:31 +0000 (19:10 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 1 Jan 2010 19:10:31 +0000 (19:10 +0000)
remove other small warnings

source/blender/blenlib/intern/BLI_kdopbvh.c
source/blender/blenloader/intern/readfile.c
source/blender/editors/space_console/console_ops.c
source/blender/editors/space_sequencer/sequencer_edit.c
source/blender/editors/space_view3d/drawanimviz.c
source/blender/editors/space_view3d/view3d_draw.c

index 3f4b9fbae2581a23aecaeca24d0f1dfc0a4cd644..eebff8dfaefbc1c99f4f6530d9a296ce30a56fd2 100644 (file)
@@ -302,6 +302,8 @@ static BVHNode *bvh_medianof3(BVHNode **a, int lo, int mid, int hi, int axis) //
                        return a[mid];
        }
 }
+
+#if 0
 /*
 * Quicksort algorithm modified for Introsort
 */
@@ -332,7 +334,7 @@ static void sort(BVHNode **a0, int begin, int end, int axis)
                bvh_insertionsort(a, begin, end, axis);
        }
 }
-#if 0
+
 static void sort_along_axis(BVHTree *tree, int start, int end, int axis)
 {
        sort(tree->nodes, start, end, axis);
index 6717bb2b89c14eeefc1bf7e7870804c067cbb9b6..88c120dc1e15176b5e1609df0cd0eb02481230ce 100644 (file)
 #include "BLI_storage_types.h" // for relname flags
 
 #include "BKE_animsys.h"
+#include "BKE_anim.h"
 #include "BKE_action.h"
 #include "BKE_armature.h"
 #include "BKE_brush.h"
index e615ae8f140dbfc9d2ebfde01f1862120bb95ddd..f3f3853f63b75a760c120183e8f0d6a9f4d60bbc 100644 (file)
@@ -824,7 +824,7 @@ static void console_modal_select_apply(bContext *C, wmOperator *op, wmEvent *eve
 
 static void set_cursor_exit(bContext *C, wmOperator *op)
 {
-       SpaceConsole *sc= CTX_wm_space_console(C);
+//     SpaceConsole *sc= CTX_wm_space_console(C);
        SetConsoleCursor *scu= op->customdata;
 
        /*
@@ -840,7 +840,7 @@ static void set_cursor_exit(bContext *C, wmOperator *op)
 static int console_modal_select_invoke(bContext *C, wmOperator *op, wmEvent *event)
 {
        SpaceConsole *sc= CTX_wm_space_console(C);
-       ARegion *ar= CTX_wm_region(C);
+//     ARegion *ar= CTX_wm_region(C);
        SetConsoleCursor *scu;
 
        op->customdata= MEM_callocN(sizeof(SetConsoleCursor), "SetConsoleCursor");
index f174e96120c3aea490513cd26e3bf1a0e3f2c33e..0f3adae8c2011dd41dfec5c34594e83b62327223 100644 (file)
@@ -2331,11 +2331,13 @@ void SEQUENCER_OT_view_all_preview(wmOperatorType *ot)
        ot->flag= OPTYPE_REGISTER;
 }
 
+#if 0
 static EnumPropertyItem view_type_items[] = {
                {SEQ_VIEW_SEQUENCE, "SEQUENCER", ICON_SEQ_SEQUENCER, "Sequencer", ""},
                {SEQ_VIEW_PREVIEW,  "PREVIEW", ICON_SEQ_PREVIEW, "Image Preview", ""},
                {SEQ_VIEW_SEQUENCE_PREVIEW,  "SEQUENCER_PREVIEW", ICON_SEQ_SEQUENCER, "Sequencer and Image Preview", ""},
                {0, NULL, 0, NULL, NULL}};
+#endif
 
 /* view_all operator */
 static int sequencer_view_toggle_exec(bContext *C, wmOperator *op)
index c999de92ea222e3700f1f3ed61cab256dcaf1da0..8a9e1077530934f8ef3bd11b55aeca25c580e2c9 100644 (file)
@@ -110,7 +110,7 @@ void draw_motion_path_instance(Scene *scene, View3D *v3d, ARegion *ar,
        //RegionView3D *rv3d= ar->regiondata;
        bMotionPathVert *mpv, *mpv_start;
        int sfra, efra, len;
-       int i, stepsize;
+       int i, stepsize= avs->ghost_step;
        
        /* get frame ranges */
        if (avs->path_type == MOTIONPATH_TYPE_ACFRA) {
index f251e54ead10426fdef491ec5fc33abc7015ff4a..4e9d92e8c1713e30a258fbe318d5342b81f1c967 100644 (file)
@@ -1646,7 +1646,6 @@ void view3d_update_depths(ARegion *ar, View3D *v3d)
 void draw_depth_gpencil(Scene *scene, ARegion *ar, View3D *v3d)
 {
        RegionView3D *rv3d= ar->regiondata;
-       Scene *sce;
 
        setwinmatrixview3d(ar, v3d, NULL);      /* 0= no pick rect */
        setviewmatrixview3d(scene, v3d, rv3d);  /* note: calls where_is_object for camera... */