Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-10-21 14:56:31 +0400
committerJoshua Leung <aligorith@gmail.com>2009-10-21 14:56:31 +0400
commit2344d62dfbb6f41318ea75fb610d1823baf23cfb (patch)
tree9d0a9539186ca9bd069e92920fd29f7c521ef1b6 /source/blender/editors/space_view3d
parent7685def9af9f69c2ff176a32d586fcbf0d938512 (diff)
Silencing some compiler warnings for mingw
* Unused functions * Uninitialised vars
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c2
-rw-r--r--source/blender/editors/space_view3d/drawvolume.c2
-rw-r--r--source/blender/editors/space_view3d/view3d_buttons.c25
3 files changed, 5 insertions, 24 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index b4ffc022471..22fd77afd88 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -4157,7 +4157,7 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, RegionView3D *rv3d, Obj
PTCacheEditKey *key;
ParticleEditSettings *pset = PE_settings(scene);
int i, k, totpoint = edit->totpoint, timed = pset->flag & PE_FADE_TIME ? pset->fade_frames : 0;
- int steps;
+ int steps=1;
char nosel[4], sel[4];
float sel_col[3];
float nosel_col[3];
diff --git a/source/blender/editors/space_view3d/drawvolume.c b/source/blender/editors/space_view3d/drawvolume.c
index a1a59fb0e6a..3c80441b9e6 100644
--- a/source/blender/editors/space_view3d/drawvolume.c
+++ b/source/blender/editors/space_view3d/drawvolume.c
@@ -217,7 +217,7 @@ void draw_volume(Scene *scene, ARegion *ar, View3D *v3d, Base *base, GPUTexture
RegionView3D *rv3d= ar->regiondata;
float viewnormal[3];
- int i, j, n, good_index, count = 0;
+ int i, j, n, good_index;
float d, d0, dd, ds;
float *points = NULL;
int numpoints = 0;
diff --git a/source/blender/editors/space_view3d/view3d_buttons.c b/source/blender/editors/space_view3d/view3d_buttons.c
index 0cdf849d453..276ce52c2a9 100644
--- a/source/blender/editors/space_view3d/view3d_buttons.c
+++ b/source/blender/editors/space_view3d/view3d_buttons.c
@@ -1300,6 +1300,7 @@ static void view3d_panel_preview(bContext *C, ARegion *ar, short cntrl) // VIEW3
}
#endif
+#if 0 // XXX not used
static void delete_sketch_armature(bContext *C, void *arg1, void *arg2)
{
BIF_deleteSketch(C);
@@ -1316,6 +1317,7 @@ static void assign_template_sketch_armature(bContext *C, void *arg1, void *arg2)
BIF_setTemplate(C, index);
}
+
static int view3d_panel_bonesketch_spaces_poll(const bContext *C, PanelType *pt)
{
Object *obedit = CTX_data_edit_object(C);
@@ -1432,8 +1434,6 @@ static void view3d_panel_bonesketch_spaces(const bContext *C, Panel *pa)
uiBlockEndAlign(block);
}
-#if 0 // XXX not used
-
/* op->invoke */
static void redo_cb(bContext *C, void *arg_op, void *arg2)
{
@@ -1496,26 +1496,7 @@ void view3d_buttons_register(ARegionType *art)
strcpy(pt->label, "Grease Pencil");
pt->draw= gpencil_panel_standard;
BLI_addtail(&art->paneltypes, pt);
-/*
- pt= MEM_callocN(sizeof(PanelType), "spacetype view3d panel properties");
- strcpy(pt->idname, "VIEW3D_PT_properties");
- strcpy(pt->label, "View Properties");
- pt->draw= view3d_panel_properties;
- BLI_addtail(&art->paneltypes, pt);
-
- pt= MEM_callocN(sizeof(PanelType), "spacetype view3d panel transform spaces");
- strcpy(pt->idname, "VIEW3D_PT_transform spaces");
- strcpy(pt->label, "Transform Orientations");
- pt->draw= view3d_panel_transform_spaces;
- BLI_addtail(&art->paneltypes, pt);
-
- pt= MEM_callocN(sizeof(PanelType), "spacetype view3d panel bonesketch spaces");
- strcpy(pt->idname, "VIEW3D_PT_bonesketch_spaces");
- strcpy(pt->label, "Bone Sketching");
- pt->draw= view3d_panel_bonesketch_spaces;
- pt->poll= view3d_panel_bonesketch_spaces_poll;
- BLI_addtail(&art->paneltypes, pt);
-*/
+
// XXX view3d_panel_preview(C, ar, 0);
}