include cleanup, no functional changes

- removed DNA_brush_types.h from DNA_scene_types.h (and some other similar cases)
- removed DNA_wave_types.h (never used)
- removed Main.wave
This commit is contained in:
Campbell Barton 2010-08-04 04:01:27 +00:00
parent 8902a4b2f1
commit 708ef64663
104 changed files with 204 additions and 205 deletions

@ -31,8 +31,6 @@
#ifndef BKE_ANIM_H
#define BKE_ANIM_H
#define MAX_DUPLI_RECUR 8
struct Path;
struct Object;
struct PartEff;
@ -42,8 +40,6 @@ struct bAnimVizSettings;
struct bMotionPath;
struct bPoseChannel;
#include "DNA_object_types.h"
/* ---------------------------------------------------- */
/* Animation Visualisation */
@ -54,7 +50,7 @@ void animviz_free_motionpath(struct bMotionPath *mpath);
struct bMotionPath *animviz_verify_motionpaths(struct Scene *scene, struct Object *ob, struct bPoseChannel *pchan);
void animviz_get_object_motionpaths(Object *ob, ListBase *targets);
void animviz_get_object_motionpaths(struct Object *ob, ListBase *targets);
void animviz_calc_motionpaths(struct Scene *scene, ListBase *targets);
/* ---------------------------------------------------- */

@ -83,7 +83,7 @@ extern void copy_displist(struct ListBase *lbn, struct ListBase *lb);
extern void free_disp_elem(DispList *dl);
extern DispList *find_displist_create(struct ListBase *lb, int type);
extern DispList *find_displist(struct ListBase *lb, int type);
extern void addnormalsDispList(struct Object *ob, struct ListBase *lb);
extern void addnormalsDispList(struct ListBase *lb);
extern void count_displist(struct ListBase *lb, int *totvert, int *totface);
extern void freedisplist(struct ListBase *lb);
extern int displist_has_faces(struct ListBase *lb);

@ -55,7 +55,7 @@ int new_id(struct ListBase *lb, struct ID *id, const char *name);
struct ListBase *which_libbase(struct Main *mainlib, short type);
#define MAX_LIBARRAY 40
#define MAX_LIBARRAY 39
int set_listbasepointers(struct Main *main, struct ListBase **lb);
void free_libblock(struct ListBase *lb, void *idv);

@ -58,7 +58,6 @@ typedef struct Main {
ListBase mat;
ListBase tex;
ListBase image;
ListBase wave;
ListBase latt;
ListBase lamp;
ListBase camera;

@ -36,24 +36,26 @@
/* not very important, but the stack solver likes to know a maximum */
#define MAX_SOCKET 64
struct ID;
struct bNodeTree;
struct bContext;
struct bNode;
struct bNodeLink;
struct bNodeSocket;
struct bNodeStack;
struct uiLayout;
struct rctf;
struct ListBase;
struct RenderData;
struct Scene;
struct Main;
struct Tex;
struct bNodeTree;
struct GPUMaterial;
struct GPUNode;
struct GPUNodeStack;
struct ID;
struct ListBase;
struct Main;
struct MTex;
struct PointerRNA;
struct bContext;
struct rctf;
struct RenderData;
struct Scene;
struct Tex;
struct uiLayout;
/* ************** NODE TYPE DEFINITIONS ***** */

@ -37,6 +37,7 @@
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BKE_animsys.h"
#include "BKE_action.h"

@ -49,7 +49,7 @@
#include "DNA_scene_types.h"
#include "DNA_vfont_types.h"
#include "BKE_anim.h"
//(INCLUDE_LINT)#include "BKE_anim.h"
#include "BKE_curve.h"
#include "BKE_DerivedMesh.h"
#include "BKE_depsgraph.h"

@ -45,6 +45,7 @@
#include "DNA_meshdata_types.h"
#include "DNA_nla_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BKE_animsys.h"
#include "BKE_armature.h"

@ -52,6 +52,7 @@
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"
#include "DNA_sound_types.h"
#include "BLI_blenlib.h"
#include "BLI_dynstr.h"

@ -45,6 +45,7 @@
#include "DNA_key_types.h"
#include "DNA_scene_types.h"
#include "DNA_vfont_types.h"
#include "DNA_object_types.h"
#include "BKE_animsys.h"
#include "BKE_anim.h"

@ -39,6 +39,7 @@
#include "DNA_curve_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "DNA_material_types.h"
#include "BLI_blenlib.h"
@ -153,7 +154,7 @@ void copy_displist(ListBase *lbn, ListBase *lb)
}
}
void addnormalsDispList(Object *ob, ListBase *lb)
void addnormalsDispList(ListBase *lb)
{
DispList *dl = NULL;
float *vdata, *ndata, nor[3];

@ -46,6 +46,7 @@
#include "DNA_curve_types.h"
#include "DNA_vfont_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BKE_utildefines.h"

@ -54,6 +54,7 @@
#include "DNA_sequence_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h" /* windows needs for M_PI */
#include "BLI_blenlib.h"

@ -44,6 +44,7 @@
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "DNA_lattice_types.h"
#include "DNA_curve_types.h"
#include "DNA_key_types.h"

@ -43,27 +43,29 @@
#include "MEM_guardedalloc.h"
/* all types are needed here, in order to do memory operations */
#include "DNA_scene_types.h"
#include "DNA_mesh_types.h"
#include "DNA_lattice_types.h"
#include "DNA_meta_types.h"
#include "DNA_material_types.h"
#include "DNA_wave_types.h"
#include "DNA_lamp_types.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_brush_types.h"
#include "DNA_camera_types.h"
#include "DNA_group_types.h"
#include "DNA_ipo_types.h"
#include "DNA_key_types.h"
#include "DNA_world_types.h"
#include "DNA_screen_types.h"
#include "DNA_vfont_types.h"
#include "DNA_text_types.h"
#include "DNA_sound_types.h"
#include "DNA_group_types.h"
#include "DNA_armature_types.h"
#include "DNA_node_types.h"
#include "DNA_lamp_types.h"
#include "DNA_lattice_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meta_types.h"
#include "DNA_nla_types.h"
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sound_types.h"
#include "DNA_text_types.h"
#include "DNA_vfont_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_anim_types.h"
#include "DNA_world_types.h"
#include "DNA_gpencil_types.h"
#include "BLI_blenlib.h"
#include "BLI_dynstr.h"
@ -174,8 +176,6 @@ int id_make_local(ID *id, int test)
return 1;
case ID_IM:
return 0; /* not implemented */
case ID_WV:
return 0; /* deprecated */
case ID_LT:
if(!test) {
make_local_lattice((Lattice*)id);
@ -264,8 +264,6 @@ int id_copy(ID *id, ID **newid, int test)
case ID_IM:
if(!test) *newid= (ID*)copy_image((Image*)id);
return 1;
case ID_WV:
return 0; /* deprecated */
case ID_LT:
if(!test) *newid= (ID*)copy_lattice((Lattice*)id);
return 1;
@ -374,8 +372,6 @@ ListBase *which_libbase(Main *mainlib, short type)
return &(mainlib->tex);
case ID_IM:
return &(mainlib->image);
case ID_WV:
return &(mainlib->wave);
case ID_LT:
return &(mainlib->latt);
case ID_LA:
@ -475,7 +471,6 @@ int set_listbasepointers(Main *main, ListBase **lb)
lb[a++]= &(main->curve);
lb[a++]= &(main->mball);
lb[a++]= &(main->wave);
lb[a++]= &(main->latt);
lb[a++]= &(main->lamp);
lb[a++]= &(main->camera);
@ -542,9 +537,6 @@ static ID *alloc_libblock_notest(short type)
case ID_IM:
id= MEM_callocN(sizeof(Image), "image");
break;
case ID_WV:
id= MEM_callocN(sizeof(Wave), "wave");
break;
case ID_LT:
id= MEM_callocN(sizeof(Lattice), "latt");
break;
@ -746,9 +738,6 @@ void free_libblock(ListBase *lb, void *idv)
case ID_IM:
free_image((Image *)id);
break;
case ID_WV:
/* free_wave(id); */
break;
case ID_LT:
free_lattice((Lattice *)id);
break;

@ -283,7 +283,7 @@ void free_object(Object *ob)
ob->path= 0;
if(ob->adt) BKE_free_animdata((ID *)ob);
if(ob->poselib) ob->poselib->id.us--;
if(ob->gpd) ob->gpd->id.us--;
if(ob->gpd) ((ID *)ob->gpd)->us--;
if(ob->defbase.first)
BLI_freelistN(&ob->defbase);
if(ob->pose)

@ -30,6 +30,7 @@
#include "DNA_object_types.h"
#include "DNA_mesh_types.h"
#include "DNA_scene_types.h"
#include "DNA_brush_types.h"
#include "BKE_brush.h"
#include "BKE_library.h"

@ -62,7 +62,6 @@
#include "BLI_listbase.h"
#include "BLI_threads.h"
#include "BKE_anim.h"
#include "BKE_animsys.h"
#include "BKE_boids.h"
#include "BKE_cdderivedmesh.h"

@ -42,6 +42,7 @@
#include "DNA_anim_types.h"
#include "DNA_group_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_sequence_types.h"

@ -39,6 +39,7 @@
#include "DNA_scene_types.h"
#include "DNA_anim_types.h"
#include "DNA_object_types.h"
#include "DNA_sound_types.h"
#include "BKE_animsys.h"
#include "BKE_global.h"

@ -16,6 +16,7 @@
#include "DNA_sequence_types.h"
#include "DNA_packedFile_types.h"
#include "DNA_screen_types.h"
#include "DNA_sound_types.h"
#include "AUD_C-API.h"

@ -43,6 +43,8 @@
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_text_types.h"
#include "DNA_userdef_types.h"
#include "DNA_object_types.h"
#include "BKE_depsgraph.h"
#include "BKE_global.h"
@ -479,7 +481,7 @@ void unlink_text(Main *bmain, Text *text)
for(scene=bmain->scene.first; scene; scene=scene->id.next)
if(scene->r.dometext == text)
scene->r.dometext = NULL;
for(ob=bmain->object.first; ob; ob=ob->id.next) {
/* game controllers */
for(cont=ob->controllers.first; cont; cont=cont->next) {

@ -36,6 +36,7 @@
#include "DNA_world_types.h"
#include "DNA_scene_types.h"
#include "DNA_texture_types.h"
#include "BKE_library.h"
#include "BKE_animsys.h"

@ -43,6 +43,8 @@
#include "DNA_mesh_types.h"
#include "DNA_scene_types.h" /* to get the current frame */
#include "DNA_image_types.h"
#include "DNA_sound_types.h"
#include "DNA_sequence_types.h"
#include "DNA_vfont_types.h"
#include "DNA_windowmanager_types.h"

@ -107,7 +107,6 @@ static IDType idtypes[]= {
{ ID_VF, "VFont", "fonts", IDTYPE_FLAGS_ISLINKABLE},
{ ID_WO, "World", "worlds", IDTYPE_FLAGS_ISLINKABLE},
{ ID_WM, "WindowManager", "window_managers", 0},
{ ID_WV, "Wave", "waves", 0}, /* deprecated */
};
static int nidtypes= sizeof(idtypes)/sizeof(idtypes[0]);

@ -9289,7 +9289,6 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
idproperties_fix_group_lengths(main->mat);
idproperties_fix_group_lengths(main->tex);
idproperties_fix_group_lengths(main->image);
idproperties_fix_group_lengths(main->wave);
idproperties_fix_group_lengths(main->latt);
idproperties_fix_group_lengths(main->lamp);
idproperties_fix_group_lengths(main->camera);

@ -33,6 +33,7 @@
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_key_types.h"
#include "DNA_gpencil_types.h"
#include "RNA_access.h"
#include "RNA_define.h"

@ -64,6 +64,8 @@
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_world_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
#include "MEM_guardedalloc.h"

@ -53,6 +53,7 @@
#include "DNA_node_types.h"
#include "DNA_particle_types.h"
#include "DNA_world_types.h"
#include "DNA_gpencil_types.h"
#include "BKE_action.h"
#include "BKE_depsgraph.h"

@ -45,6 +45,7 @@
#include "DNA_key_types.h"
#include "DNA_material_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BKE_animsys.h"
#include "BKE_action.h"

@ -42,6 +42,7 @@
#include "DNA_anim_types.h"
#include "DNA_constraint_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BKE_main.h"
#include "BKE_animsys.h"

@ -60,6 +60,7 @@
#include "BKE_subsurf.h"
#include "BKE_utildefines.h"
#include "BKE_modifier.h"
#include "DNA_object_types.h"
#include "BIF_gl.h"
#include "BIF_generate.h"

@ -36,6 +36,7 @@
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"

@ -26,6 +26,7 @@
#include "MEM_guardedalloc.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_armature_types.h"
@ -41,7 +42,6 @@
#include "BKE_global.h"
#include "BKE_DerivedMesh.h"
#include "BKE_object.h"
#include "BKE_anim.h"
#include "BKE_context.h"
#include "BKE_sketch.h"

@ -41,6 +41,7 @@
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BKE_anim.h"
#include "BKE_idprop.h"

@ -45,6 +45,7 @@
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "DNA_gpencil_types.h"
#include "BKE_armature.h"
#include "BKE_blender.h"

@ -44,6 +44,7 @@
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_gpencil_types.h"
#include "UI_view2d.h"

@ -40,6 +40,7 @@
#include "DNA_curve_types.h"
#include "DNA_scene_types.h"
#include "DNA_text_types.h"
#include "DNA_object_types.h"
#include "BKE_action.h"
#include "BKE_armature.h"

@ -131,10 +131,10 @@ void OBJECT_OT_hook_reset(struct wmOperatorType *ot);
void OBJECT_OT_hook_recenter(struct wmOperatorType *ot);
/* object_lattice.c */
void free_editLatt(Object *ob);
void make_editLatt(Object *obedit);
void load_editLatt(Object *obedit);
void remake_editLatt(Object *obedit);
void free_editLatt(struct Object *ob);
void make_editLatt(struct Object *obedit);
void load_editLatt(struct Object *obedit);
void remake_editLatt(struct Object *obedit);
void LATTICE_OT_select_all(struct wmOperatorType *ot);
void LATTICE_OT_make_regular(struct wmOperatorType *ot);

@ -41,6 +41,7 @@
#include "DNA_particle_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"
#include "BLI_editVert.h"

@ -45,9 +45,9 @@
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BKE_action.h"
#include "BKE_anim.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_depsgraph.h"

@ -33,7 +33,6 @@
#include "DNA_scene_types.h"
#include "BKE_anim.h"
#include "BKE_context.h"
#include "BKE_particle.h"
#include "BKE_report.h"

@ -54,6 +54,7 @@
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "DNA_scene_types.h"
#include "DNA_brush_types.h"
#include "DNA_screen_types.h"
#include "BKE_context.h"

@ -54,6 +54,7 @@
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_brush_types.h"
#include "BKE_context.h"
#include "BKE_idprop.h"

@ -46,7 +46,7 @@ static int brush_add_exec(bContext *C, wmOperator *op)
{
/*int type = RNA_enum_get(op->ptr, "type");*/
Paint *paint = paint_get_active(CTX_data_scene(C));
Brush *br = paint_brush(paint);
struct Brush *br = paint_brush(paint);
if (br)
br = copy_brush(br);
@ -76,7 +76,7 @@ void BRUSH_OT_add(wmOperatorType *ot)
static int brush_scale_size_exec(bContext *C, wmOperator *op)
{
Paint *paint= paint_get_active(CTX_data_scene(C));
Brush *brush= paint_brush(paint);
struct Brush *brush= paint_brush(paint);
// Object *ob= CTX_data_active_object(C);
float scalar= RNA_float_get(op->ptr, "scalar");
@ -157,7 +157,7 @@ void PAINT_OT_vertex_color_set(wmOperatorType *ot)
static int brush_reset_exec(bContext *C, wmOperator *op)
{
Paint *paint = paint_get_active(CTX_data_scene(C));
Brush *brush = paint_brush(paint);
struct Brush *brush = paint_brush(paint);
Object *ob = CTX_data_active_object(C);
if(!ob) return OPERATOR_CANCELLED;

@ -30,6 +30,7 @@
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_brush_types.h"
#include "RNA_access.h"

@ -7,6 +7,7 @@
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_brush_types.h"
#include "RNA_access.h"
#include "RNA_define.h"

@ -48,6 +48,7 @@
#include "DNA_armature_types.h"
#include "DNA_mesh_types.h"
#include "DNA_particle_types.h"
#include "DNA_brush_types.h"
#include "RNA_access.h"
#include "RNA_define.h"

@ -46,6 +46,7 @@
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_brush_types.h"
#include "BKE_brush.h"
#include "BKE_cdderivedmesh.h"

@ -111,6 +111,6 @@ struct MultiresModifierData *sculpt_multires_active(struct Scene *scene, struct
int sculpt_modifiers_active(Scene *scene, Object *ob);
void sculpt_vertcos_to_key(Object *ob, KeyBlock *kb, float (*vertCos)[3]);
void brush_jitter_pos(Brush *brush, float *pos, float *jitterpos);
void brush_jitter_pos(struct Brush *brush, float *pos, float *jitterpos);
#endif

@ -36,6 +36,7 @@
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
#include "DNA_sequence_types.h"
#include "DNA_sound_types.h"
#include "DNA_userdef_types.h"
#include "BKE_context.h"

@ -65,6 +65,7 @@
#include "action_intern.h"
/* ************************************************************************** */
/* KEYFRAMES STUFF */
@ -994,7 +995,7 @@ static void mouse_action_keys (bAnimContext *ac, int mval[2], short select_mode,
return;
}
else if (ale->type == ANIMTYPE_GPLAYER) {
bGPDlayer *gpl= (bGPDlayer *)ale->data;
struct bGPDlayer *gpl= (struct bGPDlayer *)ale->data;
gpl_to_keylist(ads, gpl, &anim_keys, NULL);
}

@ -36,6 +36,7 @@
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_brush_types.h"
#include "BLI_listbase.h"
@ -342,7 +343,7 @@ static int buttons_context_path_brush(const bContext *C, ButsContextPath *path)
br= paint_brush(paint_get_active(scene));
if(br) {
RNA_id_pointer_create(&br->id, &path->ptr[path->len]);
RNA_id_pointer_create((ID *)br, &path->ptr[path->len]);
path->len++;
return 1;

@ -36,6 +36,7 @@
#include "DNA_space_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_brush_types.h"
#include "PIL_time.h"
#include "BLI_threads.h"

@ -40,6 +40,7 @@
#include "DNA_sensor_types.h"
#include "DNA_constraint_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_object_types.h"
#include "MEM_guardedalloc.h"
@ -556,7 +557,7 @@ void do_logic_buts(bContext *C, void *arg, int event)
bSoundActuator *sa= act->data;
if(sa->sndnr)
{
bSound *sound= bmain->sound.first;
ID *sound= bmain->sound.first;
int nr= 1;
if(sa->sndnr == -2) {
@ -570,16 +571,16 @@ void do_logic_buts(bContext *C, void *arg, int event)
if(nr==sa->sndnr)
break;
nr++;
sound= sound->id.next;
sound= sound->next;
}
if(sa->sound)
sa->sound->id.us--;
((ID *)sa->sound)->us--;
sa->sound= sound;
sa->sound= (struct bSound *)sound;
if(sound)
sound->id.us++;
sound->us++;
sa->sndnr= 0;
didit= 1;
@ -2153,7 +2154,7 @@ static short draw_actuatorbuttons(Main *bmain, Object *ob, bActuator *act, uiBlo
if(sa->sound) {
char dummy_str[] = "Sound mode %t|Play Stop %x0|Play End %x1|Loop Stop %x2|Loop End %x3|Loop Ping Pong Stop %x5|Loop Ping Pong %x4";
uiDefBut(block, TEX, B_IDNAME, "SO:",xco+30,yco-22,wval-20,19, sa->sound->id.name+2, 0.0, 21.0, 0, 0, "");
uiDefBut(block, TEX, B_IDNAME, "SO:",xco+30,yco-22,wval-20,19, ((ID *)sa->sound)->name+2, 0.0, 21.0, 0, 0, "");
uiDefButS(block, MENU, 1, dummy_str,xco+10,yco-44,width-20, 19, &sa->type, 0.0, 0.0, 0, 0, "");
uiDefButF(block, NUM, 0, "Volume:", xco+10,yco-66,wval, 19, &sa->volume, 0.0, 1.0, 0, 0, "Sets the volume of this sound");
uiDefButF(block, NUM, 0, "Pitch:",xco+wval+10,yco-66,wval, 19, &sa->pitch,-12.0, 12.0, 0, 0, "Sets the pitch of this sound");

@ -411,7 +411,7 @@ void snode_set_context(SpaceNode *snode, Scene *scene)
snode->id= &tx->id;
}
else {
Brush *brush= NULL;
struct Brush *brush= NULL;
if(ob && (ob->mode & OB_MODE_SCULPT))
brush= paint_brush(&scene->toolsettings->sculpt->paint);

@ -48,6 +48,7 @@
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_sequence_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"

@ -39,6 +39,7 @@
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_userdef_types.h"
#include "DNA_sound_types.h"
#include "BKE_context.h"
#include "BKE_global.h"

@ -725,8 +725,9 @@ static void recurs_del_seq_flag(Scene *scene, ListBase *lb, short flag, short de
while(seq) {
seqn= seq->next;
if((seq->flag & flag) || deleteall) {
if(seq->type==SEQ_SOUND && seq->sound)
seq->sound->id.us--;
if(seq->type==SEQ_SOUND && seq->sound) {
((ID *)seq->sound)->us--; /* TODO, could be moved into seq_free_sequence() */
}
BLI_remlink(lb, seq);
if(seq==last_seq) seq_active_set(scene, NULL);

@ -36,6 +36,7 @@
#include "DNA_constraint_types.h"
#include "DNA_text_types.h"
#include "DNA_userdef_types.h"
#include "BLI_blenlib.h"
#include "PIL_time.h"
@ -591,6 +592,7 @@ void TEXT_OT_run_script(wmOperatorType *ot)
static int refresh_pyconstraints_exec(bContext *C, wmOperator *op)
{
#ifndef DISABLE_PYTHON
#if 0
Text *text= CTX_data_edit_text(C);
Object *ob;
bConstraint *con;
@ -624,6 +626,7 @@ static int refresh_pyconstraints_exec(bContext *C, wmOperator *op)
DAG_id_flush_update(&ob->id, OB_RECALC_DATA);
}
}
#endif
#endif
return OPERATOR_FINISHED;

@ -38,12 +38,12 @@
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_view3d_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_dlrbTree.h"
#include "BKE_anim.h"
#include "BKE_animsys.h"
#include "BKE_action.h"
#include "BKE_armature.h"

@ -39,6 +39,7 @@
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_view3d_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"

@ -3107,7 +3107,7 @@ static int drawDispList(Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *bas
dl= lb->first;
if(dl==NULL) return 1;
if(dl->nors==0) addnormalsDispList(ob, lb);
if(dl->nors==0) addnormalsDispList(lb);
index3_nors_incr= 0;
if( displist_has_faces(lb)==0) {
@ -3154,7 +3154,7 @@ static int drawDispList(Scene *scene, View3D *v3d, RegionView3D *rv3d, Base *bas
dl= lb->first;
if(dl==NULL) return 1;
if(dl->nors==NULL) addnormalsDispList(ob, lb);
if(dl->nors==NULL) addnormalsDispList(lb);
if(draw_glsl_material(scene, ob, v3d, dt)) {
GPU_begin_object_materials(v3d, rv3d, scene, ob, 1, NULL);

@ -45,7 +45,6 @@
#include "BLI_edgehash.h"
#include "BLI_rand.h"
#include "BKE_anim.h" //for the where_on_path function
#include "BKE_curve.h"
#include "BKE_constraint.h" // for the get_constraint_target function
#include "BKE_DerivedMesh.h"

@ -33,6 +33,7 @@
#include "DNA_armature_types.h"
#include "DNA_camera_types.h"
#include "DNA_customdata_types.h"
#include "DNA_object_types.h"
#include "DNA_group_types.h"
#include "DNA_key_types.h"
#include "DNA_lamp_types.h"

@ -37,6 +37,7 @@
#include "DNA_lattice_types.h"
#include "DNA_meta_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
@ -44,7 +45,6 @@
#include "BLI_linklist.h"
#include "BKE_action.h"
#include "BKE_anim.h"
#include "BKE_armature.h"
#include "BKE_context.h"
#include "BKE_curve.h"

@ -35,6 +35,7 @@
#include "DNA_camera_types.h"
#include "DNA_lamp_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "MEM_guardedalloc.h"

@ -48,7 +48,6 @@
#include "DNA_view3d_types.h"
#include "DNA_constraint_types.h"
#include "BKE_anim.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_blender.h"

@ -55,7 +55,6 @@
#include "BKE_animsys.h"
#include "BKE_action.h"
#include "BKE_anim.h"
#include "BKE_armature.h"
#include "BKE_cloth.h"
#include "BKE_curve.h"

@ -36,6 +36,7 @@
#include "DNA_armature_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "DNA_meshdata_types.h" // Temporary, for snapping to other unselected meshes
#include "DNA_space_types.h"
#include "DNA_screen_types.h"

@ -164,7 +164,6 @@ typedef struct PreviewImage {
#define ID_MA MAKE_ID2('M', 'A') /* Material */
#define ID_TE MAKE_ID2('T', 'E') /* Texture */
#define ID_IM MAKE_ID2('I', 'M') /* Image */
#define ID_WV MAKE_ID2('W', 'V') /* Wave (unused) */
#define ID_LT MAKE_ID2('L', 'T') /* Lattice */
#define ID_LA MAKE_ID2('L', 'A') /* Lamp */
#define ID_CA MAKE_ID2('C', 'A') /* Camera */

@ -33,9 +33,8 @@
#include "DNA_listBase.h"
#include "DNA_ID.h"
#include "DNA_gpencil_types.h"
#include "DNA_view2d_types.h"
#include "DNA_userdef_types.h"
#include "DNA_userdef_types.h" /* ThemeWireColor */
struct SpaceLink;
struct Object;

@ -37,9 +37,6 @@ struct Scene;
struct Group;
struct Text;
// for Sound3D
#include "DNA_sound_types.h"
/* ****************** ACTUATORS ********************* */
/* unused now, moved to editobjectactuator in 2.02. Still needed for dna */
@ -61,6 +58,18 @@ typedef struct bActionActuator {
float stridelength; /* Displacement incurred by cycle */ // not in use
} bActionActuator;
typedef struct Sound3D
{
float min_gain;
float max_gain;
float reference_distance;
float max_distance;
float rolloff_factor;
float cone_inner_angle;
float cone_outer_angle;
float cone_outer_gain;
} Sound3D;
typedef struct bSoundActuator {
short flag, sndnr;
int pad1, pad2;

@ -31,7 +31,7 @@
#define DNA_BRUSH_TYPES_H
#include "DNA_ID.h"
#include "DNA_texture_types.h"
#include "DNA_texture_types.h" /* for MTex */
//#ifndef MAX_MTEX // XXX Not used?
//#define MAX_MTEX 18
@ -94,6 +94,9 @@ typedef struct Brush {
float add_col[3];
float sub_col[3];
int use_flag; /* set the different object modes this brush should be shown in */
int pad4;
} Brush;
/* Brush.flag */

@ -33,7 +33,6 @@
#include "DNA_ID.h"
#include "DNA_listBase.h"
#include "DNA_object_types.h"
struct Action;
struct Text;
@ -82,7 +81,7 @@ typedef struct bConstraint {
typedef struct bConstraintTarget {
struct bConstraintTarget *next, *prev;
Object *tar; /* object to use as target */
struct Object *tar; /* object to use as target */
char subtarget[32]; /* subtarget - pchan or vgroup name */
float matrix[4][4]; /* matrix used during constraint solving - should be cleared before each use */
@ -118,7 +117,7 @@ typedef struct bPythonConstraint {
ListBase targets; /* a list of targets that this constraint has (bConstraintTarget-s) */
Object *tar; /* target from previous implementation (version-patch sets this to NULL on file-load) */
struct Object *tar; /* target from previous implementation (version-patch sets this to NULL on file-load) */
char subtarget[32]; /* subtarger from previous implentation (version-patch sets this to "" on file-load) */
} bPythonConstraint;
@ -130,13 +129,13 @@ typedef struct bPythonConstraint {
This is indicated in the comments for each field
*/
typedef struct bKinematicConstraint {
Object *tar; /* All: target object in case constraint needs a target */
struct Object *tar; /* All: target object in case constraint needs a target */
short iterations; /* All: Maximum number of iterations to try */
short flag; /* All & CopyPose: some options Like CONSTRAINT_IK_TIP */
short rootbone; /* All: index to rootbone, if zero go all the way to mother bone */
short max_rootbone; /* CopyPose: for auto-ik, maximum length of chain */
char subtarget[32]; /* All: String to specify sub-object target */
Object *poletar; /* All: Pole vector target */
struct Object *poletar; /* All: Pole vector target */
char polesubtarget[32]; /* All: Pole vector sub-object target */
float poleangle; /* All: Pole vector rest angle */
float weight; /* All: Weight of constraint in IK tree */
@ -160,7 +159,7 @@ typedef enum B_CONSTRAINT_IK_TYPE {
*/
typedef struct bSplineIKConstraint {
/* target(s) */
Object *tar; /* curve object (with follow path enabled) which drives the bone chain */
struct Object *tar; /* curve object (with follow path enabled) which drives the bone chain */
/* binding details */
float *points; /* array of numpoints items, denoting parametric positions along curve that joints should follow */
@ -177,7 +176,7 @@ typedef struct bSplineIKConstraint {
/* Track To Constraint */
typedef struct bTrackToConstraint {
Object *tar;
struct Object *tar;
int reserved1; /* I'll be using reserved1 and reserved2 as Track and Up flags, not sure if that's what they were intented for anyway. Not sure either if it would create backward incompatibility if I were to rename them. - theeth*/
int reserved2;
int flags;
@ -187,7 +186,7 @@ typedef struct bTrackToConstraint {
/* Copy Rotation Constraint */
typedef struct bRotateLikeConstraint {
Object *tar;
struct Object *tar;
int flag;
int reserved1;
char subtarget[32];
@ -195,7 +194,7 @@ typedef struct bRotateLikeConstraint {
/* Copy Location Constraint */
typedef struct bLocateLikeConstraint {
Object *tar;
struct Object *tar;
int flag;
int reserved1;
char subtarget[32];
@ -203,7 +202,7 @@ typedef struct bLocateLikeConstraint {
/* Copy Scale Constraint */
typedef struct bSizeLikeConstraint {
Object *tar;
struct Object *tar;
int flag;
int reserved1;
char subtarget[32];
@ -217,13 +216,13 @@ typedef struct bSameVolumeConstraint {
/* Copy Transform Constraint */
typedef struct bTransLikeConstraint {
Object *tar;
struct Object *tar;
char subtarget[32];
} bTransLikeConstraint;
/* Floor Constraint */
typedef struct bMinMaxConstraint {
Object *tar;
struct Object *tar;
int minmaxflag;
float offset;
int flag;
@ -234,7 +233,7 @@ typedef struct bMinMaxConstraint {
/* Action Constraint */
typedef struct bActionConstraint {
Object *tar;
struct Object *tar;
short type; /* what transform 'channel' drives the result */
short local; /* was used in versions prior to the Constraints recode */
int start;
@ -248,7 +247,7 @@ typedef struct bActionConstraint {
/* Locked Axis Tracking constraint */
typedef struct bLockTrackConstraint {
Object *tar;
struct Object *tar;
int trackflag;
int lockflag;
char subtarget[32];
@ -256,7 +255,7 @@ typedef struct bLockTrackConstraint {
/* Damped Tracking constraint */
typedef struct bDampTrackConstraint {
Object *tar;
struct Object *tar;
int trackflag;
int pad;
char subtarget[32];
@ -264,7 +263,7 @@ typedef struct bDampTrackConstraint {
/* Follow Path constraints */
typedef struct bFollowPathConstraint {
Object *tar; /* Must be path object */
struct Object *tar; /* Must be path object */
float offset; /* Offset in time on the path (in frames), when NOT using 'fixed position' */
float offset_fac; /* Parametric offset factor defining position along path, when using 'fixed position' */
@ -277,7 +276,7 @@ typedef struct bFollowPathConstraint {
/* Stretch to constraint */
typedef struct bStretchToConstraint {
Object *tar;
struct Object *tar;
int volmode;
int plane;
float orglength;
@ -287,8 +286,8 @@ typedef struct bStretchToConstraint {
/* Rigid Body constraint */
typedef struct bRigidBodyJointConstraint {
Object *tar;
Object *child;
struct Object *tar;
struct Object *child;
int type;
float pivX;
float pivY;
@ -307,14 +306,14 @@ typedef struct bRigidBodyJointConstraint {
/* Clamp-To Constraint */
typedef struct bClampToConstraint {
Object *tar; /* 'target' must be a curve */
struct Object *tar; /* 'target' must be a curve */
int flag; /* which axis/plane to compare owner's location on */
int flag2; /* for legacy reasons, this is flag2. used for any extra settings */
} bClampToConstraint;
/* Child Of Constraint */
typedef struct bChildOfConstraint {
Object *tar; /* object which will act as parent (or target comes from) */
struct Object *tar; /* object which will act as parent (or target comes from) */
int flag; /* settings */
int pad;
float invmat[4][4]; /* parent-inverse matrix to use */
@ -323,7 +322,7 @@ typedef struct bChildOfConstraint {
/* Generic Transform->Transform Constraint */
typedef struct bTransformConstraint {
Object *tar; /* target (i.e. 'driver' object/bone) */
struct Object *tar; /* target (i.e. 'driver' object/bone) */
char subtarget[32];
short from, to; /* can be loc(0) , rot(1), or size(2) */
@ -342,7 +341,7 @@ typedef struct bPivotConstraint {
/* Pivot Point:
* Either target object + offset, or just offset is used
*/
Object *tar; /* target object (optional) */
struct Object *tar; /* target object (optional) */
char subtarget[32]; /* subtarget name (optional) */
float offset[3]; /* offset from the target to use, regardless of whether it exists */
@ -385,7 +384,7 @@ typedef struct bSizeLimitConstraint {
/* Limit Distance Constraint */
typedef struct bDistLimitConstraint {
Object *tar;
struct Object *tar;
char subtarget[32];
float dist; /* distance (radius of clamping sphere) from target */
@ -398,7 +397,7 @@ typedef struct bDistLimitConstraint {
/* ShrinkWrap Constraint */
typedef struct bShrinkwrapConstraint {
Object *target;
struct Object *target;
float dist; /* distance to kept from target */
short shrinkType; /* shrink type (look on MOD shrinkwrap for values) */
char projAxis; /* axis to project over UP_X, UP_Y, UP_Z */

@ -35,7 +35,7 @@
#include "DNA_listBase.h"
#include "DNA_ID.h"
#include "DNA_action_types.h"
#include "DNA_action_types.h" /* bAnimVizSettings */
#ifdef __cplusplus
extern "C" {
@ -556,6 +556,8 @@ typedef enum ObjectMode {
OB_MODE_POSE = 64
} ObjectMode;
#define MAX_DUPLI_RECUR 8
#ifdef __cplusplus
}
#endif

@ -36,12 +36,12 @@
extern "C" {
#endif
#include "DNA_brush_types.h"
#include "DNA_vec_types.h"
#include "DNA_listBase.h"
#include "DNA_ID.h"
struct Object;
struct Brush;
struct World;
struct Scene;
struct Image;
@ -345,7 +345,7 @@ typedef struct RenderData {
short bake_normal_space, bake_quad_split;
float bake_maxdist, bake_biasdist, bake_pad;
/* paths to backbufffer, output, ftype */
/* paths to backbufffer, output */
char backbuf[160], pic[160];
/* stamps flags. */
@ -508,7 +508,7 @@ typedef struct TimeMarker {
typedef struct Paint {
/* Array of brushes selected for use in this paint mode */
Brush **brushes;
struct Brush **brushes;
int active_brush_index, brush_count;
/* WM Paint cursor */

@ -32,12 +32,11 @@
#define DNA_SEQUENCE_TYPES_H
#include "DNA_listBase.h"
/* needed for sound support */
#include "DNA_sound_types.h"
#include "DNA_vec_types.h"
struct Ipo;
struct Scene;
struct bSound;
/* strlens; 80= FILE_MAXFILE, 160= FILE_MAXDIR */

@ -41,18 +41,6 @@ struct Ipo;
struct PackedFile;
struct SpaceLink;
typedef struct Sound3D
{
float min_gain;
float max_gain;
float reference_distance;
float max_distance;
float rolloff_factor;
float cone_inner_angle;
float cone_outer_angle;
float cone_outer_gain;
} Sound3D;
typedef struct bSound {
ID id;
@ -115,22 +103,6 @@ typedef enum eSound_Type {
#define SND_DRAWFRAMES 1
#define SND_CFRA_NUM 2
typedef struct SpaceSound {
struct SpaceLink *next, *prev;
ListBase regionbase; /* storage of regions for inactive spaces */
int spacetype;
float blockscale;
struct ScrArea *area;
View2D v2d;
bSound *sound;
short mode, sndnr;
short xof, yof;
short flag, lock;
int pad2;
} SpaceSound;
#define SOUND_FLAGS_3D (1 << 3)
/* to DNA_sound_types.h*/

@ -42,6 +42,7 @@
struct ID;
struct Text;
struct Script;
struct bSound;
struct ImBuf;
struct Image;
struct Scopes;
@ -550,6 +551,22 @@ typedef struct SpaceUserPref {
} SpaceUserPref;
typedef struct SpaceSound {
struct SpaceLink *next, *prev;
ListBase regionbase; /* storage of regions for inactive spaces */
int spacetype;
float blockscale;
struct ScrArea *area;
View2D v2d;
struct bSound *sound;
short mode, sndnr;
short xof, yof;
short flag, lock;
int pad2;
} SpaceSound;
/* view3d Now in DNA_view3d_types.h */

@ -1,50 +0,0 @@
/**
* blenlib/DNA_wave_types.h (mar-2001 nzc)
*
* $Id$
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved.
*
* The Original Code is: all of this file.
*
* Contributor(s): none yet.
*
* ***** END GPL LICENSE BLOCK *****
*/
#ifndef DNA_WAVE_TYPES_H
#define DNA_WAVE_TYPES_H
#include "DNA_ID.h"
struct Ipo;
/* a Wave has never been implemented... it was meant as a 'free' mathematical
deformation object type (ton) */
typedef struct Wave {
ID id;
struct Ipo *ipo;
} Wave;
#endif

@ -78,7 +78,6 @@ char *includefiles[] = {
"DNA_image_types.h",
"DNA_texture_types.h",
"DNA_lamp_types.h",
"DNA_wave_types.h",
"DNA_material_types.h",
"DNA_vfont_types.h",
// if you add files here, please add them at the end
@ -1128,7 +1127,6 @@ int main(int argc, char ** argv)
#include "DNA_image_types.h"
#include "DNA_texture_types.h"
#include "DNA_lamp_types.h"
#include "DNA_wave_types.h"
#include "DNA_material_types.h"
#include "DNA_vfont_types.h"
#include "DNA_meta_types.h"

@ -29,6 +29,7 @@
#include "rna_internal.h"
#include "DNA_color_types.h"
#include "DNA_texture_types.h"
#ifdef RNA_RUNTIME

@ -30,6 +30,7 @@
#include "DNA_ID.h"
#include "DNA_scene_types.h"
#include "DNA_brush_types.h"
#include "BKE_paint.h"

@ -33,6 +33,7 @@
#include "string.h"
#include "DNA_armature_types.h"
#include "DNA_object_types.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_lattice.h"

@ -34,6 +34,7 @@
#include "DNA_curve_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"
#include "BLI_ghash.h"

@ -30,6 +30,7 @@
*
*/
#include "DNA_object_types.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_modifier.h"

@ -31,6 +31,7 @@
*/
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"

@ -33,6 +33,7 @@
#include "string.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_lattice.h"

@ -31,6 +31,7 @@
*/
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"

@ -32,6 +32,7 @@
#include "DNA_scene_types.h"
#include "DNA_object_fluidsim.h"
#include "DNA_object_types.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_modifier.h"

@ -32,6 +32,7 @@
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"

@ -32,6 +32,8 @@
#include "string.h"
#include "DNA_object_types.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_lattice.h"
#include "BKE_modifier.h"

@ -33,6 +33,7 @@
#include "DNA_armature_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "BLI_ghash.h"

@ -31,6 +31,7 @@
*/
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"

@ -30,8 +30,8 @@
*
*/
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"

@ -33,6 +33,7 @@
/* Screw modifier: revolves the edges about an axis */
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"

@ -36,6 +36,8 @@
#include "BKE_modifier.h"
#include "BKE_shrinkwrap.h"
#include "DNA_object_types.h"
#include "depsgraph_private.h"
#include "MOD_util.h"

@ -31,6 +31,7 @@
*/
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"

@ -34,6 +34,8 @@
#include "MEM_guardedalloc.h"
#include "DNA_object_types.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_modifier.h"
#include "BKE_smoke.h"

Some files were not shown because too many files have changed in this diff Show More