}
else if(sl->spacetype==SPACE_CONSOLE) {
SpaceConsole *sconsole= (SpaceConsole *)sl;
- ConsoleLine *cl;
+ //ConsoleLine *cl;
link_list(fd, &sconsole->scrollback);
link_list(fd, &sconsole->history);
#include "DNA_space_types.h"
#include "DNA_scene_types.h"
+#include "RNA_access.h"
+
#include "BKE_action.h"
#include "BKE_fcurve.h"
#include "BKE_key.h"
#include "ED_keyframing.h"
#include "ED_keyframes_edit.h"
-#include "RNA_access.h"
-
/* This file contains code for various keyframe-editing tools which are 'destructive'
* (i.e. they will modify the order of the keyframes, and change the size of the array).
* While some of these tools may eventually be moved out into blenkernel, for now, it is
MemoNode *min_node = NULL;
float *vec0 = vec_cache[previous];
float *vec1 = vec_cache[current];
- float min_weight;
- int min_next;
+ float min_weight= 0.0f;
+ int min_next= 0;
int next;
for (next = current + 1; next <= nb_positions - (joints_left - 1); next++)
{
MemoNode *next_node;
float *vec2 = vec_cache[next];
- float weight = 0;
+ float weight = 0.0f;
/* ADD WEIGHT OF PREVIOUS - CURRENT - NEXT triple */
weight = calcCostAngleLengthDistance(iter, vec_cache, edge, vec0, vec1, vec2, current, next, angle_weight, length_weight, distance_weight);
ReebGraph *reebg;
double start_time, end_time;
double gstart_time, gend_time;
- double reeb_time, rig_time, retarget_time, total_time;
+ double reeb_time, rig_time=0.0, retarget_time=0.0, total_time;
gstart_time = start_time = PIL_check_seconds_timer();
}
else {
short mval[2];
- int mx, my;
+ int mx=0, my=0;
float *fp= give_cursor(NULL, NULL); // XXX should be scene, v3d
float dvec[3];
uiItemL(uiLayoutColumn(split, 0), name, 0);
col= uiLayoutColumn(split, 0);
}
+ else
+ col= NULL;
/* temp hack to show normal button for spin/screw */
if(strcmp(name, "Axis")==0) {
{
int a;
float h,s,v;
- float dx, dy, sx1, sx2, sy, x, y;
+ float dx, dy, sx1, sx2, sy, x=0.0f, y=0.0f;
float col0[4][3]; // left half, rect bottom to top
float col1[4][3]; // right half, rect bottom to top
bDeformGroup *dg, *cdg;
char name[32], s[32];
MDeformWeight *org, *cpy;
- MDeformVert *dvert, *dvert_array;
- int i, idg, icdg, dvert_tot;
+ MDeformVert *dvert, *dvert_array=NULL;
+ int i, idg, icdg, dvert_tot=0;
if (ob->type != OB_MESH && ob->type != OB_LATTICE)
return;
void del_defgroup_in_object_mode ( Object *ob )
{
bDeformGroup *dg;
- MDeformVert *dvert_array, *dvert;
-
- int i, e, dvert_tot;
+ MDeformVert *dvert, *dvert_array=NULL;
+ int i, e, dvert_tot=0;
if ((!ob) || (ob->type != OB_MESH && ob->type != OB_LATTICE))
return;
#include "WM_api.h"
#include "WM_types.h"
+/* enable/disable overall compilation */
+#ifndef DISABLE_ELBEEM
+
/* XXX */
/* from header info.c */
static int start_progress_bar(void) {return 0;};
"INVALID" /* end */
};
-/* enable/disable overall compilation */
-#ifndef DISABLE_ELBEEM
-
-
/* ********************** fluid sim settings struct functions ********************** */
/* helper function */
ParticleEditSettings *pset= PE_settings(CTX_data_scene(C));
ParticleBrushData *brush;
int mode = RNA_enum_get(op->ptr, "mode");
- float original_value;
+ float original_value=1.0f;
if(pset->brushtype < 0)
return OPERATOR_CANCELLED;
ParticleEdit *edit= 0;
ParticleUndo *undo;
DynStr *ds;
- short event;
+ short event=0;
char *menu;
if(!PE_can_edit(psys)) return;
// ScrArea *sa= NULL; // XXX
// View3D *v3d= NULL; // XXX
RenderLayer *rl;
- int ofsx, ofsy;
+ int ofsx=0, ofsy=0;
if(renrect) return;
View3D *v3d= sa->spacedata.first;
RegionView3D *rv3d= NULL; // XXX
Render *re;
- RenderInfo *ri; /* preview struct! */
+ RenderInfo *ri=NULL; /* preview struct! */
RenderStats *rstats;
RenderData rdata;
rctf viewplane;
return sa;
}
+#if 0 // XXX not used
static ScrArea *find_empty_image_area(bContext *C)
{
bScreen *sc= CTX_wm_screen(C);
}
return sa;
}
+#endif // XXX not used
static void screen_set_image_output(bContext *C)
{
static void project_bucket_init(const ProjPaintState *ps, const int thread_index, const int bucket_index, rctf *bucket_bounds)
{
LinkNode *node;
- int face_index, image_index;
+ int face_index, image_index=0;
ImBuf *ibuf = NULL;
MTFace *tf;
/* TODO - replace this with a tricker method that uses sideofline for all screenCoords's edges against the closest bucket corner */
rctf bucket_bounds;
float p1[2], p2[2], p3[2], p4[2];
- float *v, *v1,*v2,*v3,*v4;
+ float *v, *v1,*v2,*v3,*v4=NULL;
int fidx;
project_bucket_bounds(ps, bucket_x, bucket_y, &bucket_bounds);
if (tf->tpage && ((G.f & G_FACESELECT)==0 || mf->flag & ME_FACE_SEL)) {
- float *v1coSS, *v2coSS, *v3coSS, *v4coSS;
+ float *v1coSS, *v2coSS, *v3coSS, *v4coSS=NULL;
v1coSS = ps->screenCoords[mf->v1];
v2coSS = ps->screenCoords[mf->v2];
/* context */
ProjPaintImage *last_projIma;
int last_image_index = -1;
- int last_tile_width;
+ int last_tile_width=0;
for(a=0, last_projIma=ps->projImages; a < ps->image_tot; a++, last_projIma++) {
int size = sizeof(UndoTile **) * IMAPAINT_TILE_NUMBER(last_projIma->ibuf->x) * IMAPAINT_TILE_NUMBER(last_projIma->ibuf->y);
ProjPixel *projPixel;
int last_index = -1;
- ProjPaintImage *last_projIma;
+ ProjPaintImage *last_projIma= NULL;
ImagePaintPartialRedraw *last_partial_redraw_cell;
float rgba[4], alpha, dist_nosqrt;
int active_file;
if (layout == NULL)
- return NULL;
+ return 0;
offsetx = (x)/(layout->tile_w + 2*layout->tile_border_x);
offsety = (y)/(layout->tile_h + 2*layout->tile_border_y);
for(i= 0; i<nentries; ++i) {
struct direntry* file = filelist_file(sfile->files, i);
- char* dir = filelist_dir(sfile->files);
+ const char* dir = filelist_dir(sfile->files);
if (file && S_ISDIR(file->type)) {
BLI_make_file_string(G.sce, tmp, dir, file->relname);
autocomplete_do_name(autocpl,tmp);
BLI_add_slash(str);
}
}
-}
\ No newline at end of file
+}
#include "WM_api.h"
#include "WM_types.h"
+
+#include "RNA_access.h"
#include "RNA_define.h"
+
#include "ED_screen.h"
#include "outliner_intern.h"
float vec[3], vec2[3];
float *vd = pdd->vd;
float *cd = pdd->cd;
- float ma_r;
- float ma_g;
- float ma_b;
+ float ma_r=0.0f;
+ float ma_g=0.0f;
+ float ma_b=0.0f;
if(pdd->ma_r) {
ma_r = *pdd->ma_r;
BIF_selectTransformOrientation(C, (TransformOrientation *) target);
}
+#if 0 // XXX not used
static void view3d_panel_transform_spaces(const bContext *C, Panel *pa)
{
Scene *scene= CTX_data_scene(C);
}
uiBlockEndAlign(block);
}
+#endif // XXX not used
static void weight_paint_buttons(Scene *scene, uiBlock *block)
{
}
}
+#if 0 // XXX not used anymore
static void view3d_panel_background(const bContext *C, Panel *pa)
{
View3D *v3d= CTX_wm_view3d(C);
// }
uiBlockEndAlign(block);
}
+#endif // XXX not used anymore
#if 0
static void view3d_panel_preview(bContext *C, ARegion *ar, short cntrl) // VIEW3D_HANDLER_PREVIEW
}
#endif
+#if 0 // XXX not used
static void delete_sketch_armature(bContext *C, void *arg1, void *arg2)
{
BIF_deleteSketch(C);
RNA_pointer_create(&wm->id, op->type->srna, op->properties, &ptr);
uiDefAutoButsRNA(C, pa->layout, &ptr, 2);
}
+#endif // XXX not used
void view3d_buttons_register(ARegionType *art)
{
ot->poll= ED_operator_view3d_active;
}
+#if GAMEBLENDER == 1
+
static ListBase queue_back;
static void SaveState(bContext *C)
{
/* maybe we need this defined somewhere else */
extern void StartKetsjiShell(struct bContext *C,int always_use_expand_framing);
+#endif // GAMEBLENDER == 1
static int game_engine_exec(bContext *C, wmOperator *unused)
{
- Scene *startscene = CTX_data_scene(C);
-
#if GAMEBLENDER == 1
+ Scene *startscene = CTX_data_scene(C);
view3d_operator_needs_opengl(C);
//#include "BIF_editparticle.h"
//#include "BIF_meshtools.h"
+#include "BKE_animsys.h"
#include "BKE_action.h"
#include "BKE_anim.h"
#include "BKE_armature.h"
flushTransSeq(t);
}
else if (t->spacetype == SPACE_ACTION) {
- SpaceAction *sact= (SpaceAction *)t->sa->spacedata.first;
Scene *scene;
bAnimContext ac;
BLI_freelistN(&anim_data);
}
else if (t->spacetype == SPACE_IPO) {
- SpaceIpo *sipo= (SpaceIpo *)t->sa->spacedata.first;
Scene *scene;
ListBase anim_data = {NULL, NULL};
/* now test if there is a need to re-sort */
for (ale= anim_data.first; ale; ale= ale->next) {
FCurve *fcu= (FCurve *)ale->key_data;
- AnimData *adt= BKE_animdata_from_id(ale->id);
/* watch it: if the time is wrong: do not correct handles yet */
if (test_time_fcurve(fcu))
}
}
else if(ob && (ob->flag & OB_POSEMODE)) {
- bArmature *arm = ob->data;
bPoseChannel *pchan;
int mode = TFM_ROTATION; // mislead counting bones... bah. We don't know the manipulator mode, could be mixed
StructRNA *ptype;
PointerRNA itemptr;
PropertyRNA *itemprop, *iprop;
- PropertyType itemtype;
+ PropertyType itemtype=0;
RawArray in;
int itemlen= 0;
strcpy(str, "Invalid target!");
}
-static EnumPropertyItem from_items[] = {
+EnumPropertyItem from_items[] = {
{PART_FROM_VERT, "VERT", 0, "Vertexes", ""},
{PART_FROM_FACE, "FACE", 0, "Faces", ""},
{PART_FROM_VOLUME, "VOLUME", 0, "Volume", ""},
{0, NULL, 0, NULL, NULL}
};
-static EnumPropertyItem reactor_from_items[] = {
+EnumPropertyItem reactor_from_items[] = {
{PART_FROM_VERT, "VERT", 0, "Vertexes", ""},
{PART_FROM_FACE, "FACE", 0, "Faces", ""},
{PART_FROM_VOLUME, "VOLUME", 0, "Volume", ""},
/* ********** END MY WINDOW ************** */
+#if 0 // XXX not used...
#ifdef WIN32
static int is_a_really_crappy_nvidia_card(void) {
static int well_is_it= -1;
return well_is_it;
}
#endif
+#endif // XXX not used...