moved more minor changes across from trunk, fixed some incorrect merges and removed unused includes.
This commit is contained in:
@@ -45,7 +45,6 @@
|
||||
#include "DNA_object_types.h"
|
||||
|
||||
#include "BLI_math.h"
|
||||
#include "BLI_cellalloc.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "BKE_bmesh.h"
|
||||
|
||||
@@ -52,8 +52,6 @@
|
||||
#include "DNA_key_types.h"
|
||||
#include "DNA_meshdata_types.h"
|
||||
#include "DNA_scene_types.h"
|
||||
#include "DNA_windowmanager_types.h"
|
||||
#include "DNA_view3d_types.h"
|
||||
#include "DNA_vfont_types.h"
|
||||
|
||||
#include "BKE_animsys.h"
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
|
||||
#include "BLI_math.h"
|
||||
#include "BLI_blenlib.h"
|
||||
#include "BLI_cellalloc.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "DNA_anim_types.h"
|
||||
|
||||
@@ -456,8 +456,6 @@ static int read_undosave(bContext *C, UndoElem *uel)
|
||||
|
||||
BLI_strncpy(mainstr, G.main->name, sizeof(mainstr)); /* temporal store */
|
||||
|
||||
strcpy(mainstr, G.main->name); /* temporal store */
|
||||
|
||||
fileflags= G.fileflags;
|
||||
G.fileflags |= G_FILE_NO_UI;
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
#include "BLI_listbase.h"
|
||||
#include "BLI_math.h"
|
||||
#include "BLI_editVert.h"
|
||||
#include "BLI_cellalloc.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "DNA_armature_types.h"
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
|
||||
/* ************************* fluidsim bobj file handling **************************** */
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
// file handling
|
||||
//-------------------------------------------------------------------------------
|
||||
|
||||
@@ -258,7 +258,7 @@ static PackedFile *get_builtin_packedfile(void)
|
||||
void free_ttfont(void)
|
||||
{
|
||||
struct TmpFont *tf;
|
||||
|
||||
|
||||
for(tf= ttfdata.first; tf; tf= tf->next) {
|
||||
if(tf->pf) freePackedFile(tf->pf); /* NULL when the font file can't be found on disk */
|
||||
tf->pf= NULL;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id$
|
||||
* $Id: idcode.c 35493 2011-03-12 14:38:00Z campbellbarton $
|
||||
*
|
||||
* ***** BEGIN GPL LICENSE BLOCK *****
|
||||
*
|
||||
|
||||
@@ -67,7 +67,6 @@
|
||||
|
||||
|
||||
#include "RNA_access.h"
|
||||
#include "BLI_cellalloc.h"
|
||||
|
||||
#define KEY_MODE_DUMMY 0 /* use where mode isn't checked for */
|
||||
#define KEY_MODE_BPOINT 1
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
|
||||
#include "BLI_blenlib.h"
|
||||
#include "BLI_math.h"
|
||||
#include "BLI_cellalloc.h"
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "DNA_mesh_types.h"
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
#include "BLI_edgehash.h"
|
||||
#include "BLI_ghash.h"
|
||||
#include "BLI_memarena.h"
|
||||
#include "BLI_cellalloc.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
|
||||
@@ -3654,4 +3654,5 @@ void clear_scene_in_nodes(Main *bmain, Scene *sce)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -594,15 +594,6 @@ void set_sca_new_poins_ob(Object *ob)
|
||||
bPropertyActuator *pa= act->data;
|
||||
ID_NEW(pa->ob);
|
||||
}
|
||||
else if(act->type==ACT_ARMATURE) {
|
||||
bArmatureActuator *aa = act->data;
|
||||
ID_NEW(aa->target);
|
||||
ID_NEW(aa->subtarget);
|
||||
}
|
||||
else if(act->type==ACT_PROPERTY) {
|
||||
bPropertyActuator *pa= act->data;
|
||||
ID_NEW(pa->ob);
|
||||
}
|
||||
}
|
||||
act= act->next;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id$
|
||||
* $Id: seqcache.c 36197 2011-04-17 10:05:27Z schlaile $
|
||||
*
|
||||
* ***** BEGIN GPL LICENSE BLOCK *****
|
||||
*
|
||||
|
||||
@@ -71,7 +71,6 @@ variables on the UI for now
|
||||
#include "BLI_utildefines.h"
|
||||
#include "BLI_ghash.h"
|
||||
#include "BLI_threads.h"
|
||||
#include "BLI_cellalloc.h"
|
||||
|
||||
#include "BKE_curve.h"
|
||||
#include "BKE_effect.h"
|
||||
|
||||
@@ -454,8 +454,8 @@ void sound_seek_scene(struct bContext *C)
|
||||
AUD_resume(scene->sound_scene_handle);
|
||||
if(AUD_getStatus(scene->sound_scrub_handle) != AUD_STATUS_INVALID)
|
||||
AUD_seek(scene->sound_scrub_handle, 0);
|
||||
//XXX merge EEK! else
|
||||
//scene->sound_scrub_handle = AUD_pauseAfter(scene->sound_scene_handle, 1 / FPS);
|
||||
else
|
||||
scene->sound_scrub_handle = AUD_pauseAfter(scene->sound_scene_handle, 1 / FPS);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1405,8 +1405,7 @@ int BLI_pbvh_node_raycast(PBVH *bvh, PBVHNode *node, float (*origco)[3],
|
||||
return hit;
|
||||
}
|
||||
|
||||
//#include "BIF_gl.h"
|
||||
//#include "BIF_glutil.h"
|
||||
//#include <GL/glew.h>
|
||||
|
||||
void BLI_pbvh_node_draw(PBVHNode *node, void *UNUSED(data))
|
||||
{
|
||||
|
||||
@@ -43,8 +43,6 @@
|
||||
#include <math.h>
|
||||
|
||||
#include "DNA_vec_types.h"
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include "BLI_rect.h"
|
||||
|
||||
int BLI_rcti_is_empty(rcti * rect)
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
#include "BLI_blenlib.h"
|
||||
#include "BLI_math.h"
|
||||
#include "BLI_memarena.h"
|
||||
#include "BLI_cellalloc.h"
|
||||
#include "BLI_utildefines.h"
|
||||
#include "BLI_ghash.h"
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_screen.h"
|
||||
#include "BKE_tessmesh.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
|
||||
|
||||
@@ -5757,7 +5757,7 @@ void draw_outliner(const bContext *C)
|
||||
outliner_back(ar);
|
||||
block= uiBeginBlock(C, ar, "outliner buttons", UI_EMBOSS);
|
||||
outliner_draw_tree((bContext *)C, block, scene, ar, soops);
|
||||
|
||||
|
||||
if(ELEM(soops->outlinevis, SO_DATABLOCKS, SO_USERDEF)) {
|
||||
/* draw rna buttons */
|
||||
outliner_draw_rnacols(ar, sizex_rna);
|
||||
@@ -5775,9 +5775,6 @@ void draw_outliner(const bContext *C)
|
||||
/* draw edit buttons if nessecery */
|
||||
outliner_buttons(C, block, ar, soops, &soops->tree);
|
||||
|
||||
/* draw edit buttons if nessecery */
|
||||
outliner_buttons(C, block, ar, soops, &soops->tree);
|
||||
|
||||
uiEndBlock(C, block);
|
||||
uiDrawBlock(C, block);
|
||||
|
||||
|
||||
@@ -55,7 +55,6 @@
|
||||
#include "BKE_paint.h"
|
||||
#include "BKE_report.h"
|
||||
#include "BKE_scene.h"
|
||||
#include "BKE_tessmesh.h"
|
||||
|
||||
|
||||
#include "BIF_gl.h"
|
||||
@@ -1686,7 +1685,7 @@ static int viewselected_exec(bContext *C, wmOperator *UNUSED(op)) /* like a loca
|
||||
INIT_MINMAX(min, max);
|
||||
|
||||
if (ob && ob->mode & OB_MODE_WEIGHT_PAINT) {
|
||||
/* hardcoded exception, we look for the one selectedW armature */
|
||||
/* hardcoded exception, we look for the one selected armature */
|
||||
/* this is weak code this way, we should make a generic active/selection callback interface once... */
|
||||
Base *base;
|
||||
for(base=scene->base.first; base; base= base->next) {
|
||||
@@ -2182,18 +2181,18 @@ static void axis_set_view(bContext *C, View3D *v3d, ARegion *ar, float q1, float
|
||||
|
||||
if(align_active==FALSE) {
|
||||
/* normal operation */
|
||||
if(rv3d->viewlock) {
|
||||
/* only pass on if */
|
||||
if(rv3d->viewlock) {
|
||||
/* only pass on if */
|
||||
if(rv3d->view==RV3D_VIEW_FRONT && view==RV3D_VIEW_BACK);
|
||||
else if(rv3d->view==RV3D_VIEW_BACK && view==RV3D_VIEW_FRONT);
|
||||
else if(rv3d->view==RV3D_VIEW_RIGHT && view==RV3D_VIEW_LEFT);
|
||||
else if(rv3d->view==RV3D_VIEW_LEFT && view==RV3D_VIEW_RIGHT);
|
||||
else if(rv3d->view==RV3D_VIEW_BOTTOM && view==RV3D_VIEW_TOP);
|
||||
else if(rv3d->view==RV3D_VIEW_TOP && view==RV3D_VIEW_BOTTOM);
|
||||
else return;
|
||||
}
|
||||
else return;
|
||||
}
|
||||
|
||||
rv3d->view= view;
|
||||
rv3d->view= view;
|
||||
}
|
||||
|
||||
if(rv3d->viewlock) {
|
||||
|
||||
Reference in New Issue
Block a user