forked from bartvdbraak/blender
code cleanup: unused functions
This commit is contained in:
parent
13ec0cd6c3
commit
03b07a719f
@ -107,10 +107,12 @@ __attribute__((nonnull))
|
|||||||
;
|
;
|
||||||
void clear_id_newpoins(void);
|
void clear_id_newpoins(void);
|
||||||
|
|
||||||
|
#if 0
|
||||||
void IDnames_to_pupstring(const char **str, const char *title, const char *extraops,
|
void IDnames_to_pupstring(const char **str, const char *title, const char *extraops,
|
||||||
struct ListBase *lb, struct ID *link, short *nr);
|
struct ListBase *lb, struct ID *link, short *nr);
|
||||||
void IMAnames_to_pupstring(const char **str, const char *title, const char *extraops,
|
void IMAnames_to_pupstring(const char **str, const char *title, const char *extraops,
|
||||||
struct ListBase *lb, struct ID *link, short *nr);
|
struct ListBase *lb, struct ID *link, short *nr);
|
||||||
|
#endif
|
||||||
|
|
||||||
void flag_listbase_ids(ListBase *lb, short flag, short value);
|
void flag_listbase_ids(ListBase *lb, short flag, short value);
|
||||||
void flag_all_listbases_ids(short flag, short value);
|
void flag_all_listbases_ids(short flag, short value);
|
||||||
|
@ -59,7 +59,8 @@ struct Material *give_node_material(struct Material *ma); /* returns node materi
|
|||||||
void BKE_material_make_local(struct Material *ma);
|
void BKE_material_make_local(struct Material *ma);
|
||||||
void extern_local_matarar(struct Material **matar, short totcol);
|
void extern_local_matarar(struct Material **matar, short totcol);
|
||||||
|
|
||||||
void automatname(struct Material *);
|
/* UNUSED */
|
||||||
|
// void automatname(struct Material *);
|
||||||
|
|
||||||
/* material slots */
|
/* material slots */
|
||||||
|
|
||||||
|
@ -444,9 +444,6 @@ const char * nodeStaticSocketInterfaceType(int type, int subtype);
|
|||||||
BLI_ghashIterator_free(__node_socket_type_iter__); \
|
BLI_ghashIterator_free(__node_socket_type_iter__); \
|
||||||
}
|
}
|
||||||
|
|
||||||
void nodeMakeDynamicType(struct bNode *node);
|
|
||||||
int nodeDynamicUnlinkText(struct ID *txtid);
|
|
||||||
|
|
||||||
struct bNodeSocket *nodeFindSocket(struct bNode *node, int in_out, const char *identifier);
|
struct bNodeSocket *nodeFindSocket(struct bNode *node, int in_out, const char *identifier);
|
||||||
struct bNodeSocket *nodeAddSocket(struct bNodeTree *ntree, struct bNode *node, int in_out, const char *idname,
|
struct bNodeSocket *nodeAddSocket(struct bNodeTree *ntree, struct bNode *node, int in_out, const char *idname,
|
||||||
const char *identifier, const char *name);
|
const char *identifier, const char *name);
|
||||||
@ -575,9 +572,6 @@ void BKE_node_preview_set_pixel(struct bNodePreview *preview, const f
|
|||||||
/* ************** NODE TYPE ACCESS *************** */
|
/* ************** NODE TYPE ACCESS *************** */
|
||||||
|
|
||||||
const char *nodeLabel(struct bNode *node);
|
const char *nodeLabel(struct bNode *node);
|
||||||
struct bNodeTree *nodeGroupEditGet(struct bNode *node);
|
|
||||||
struct bNodeTree *nodeGroupEditSet(struct bNode *node, int edit);
|
|
||||||
void nodeGroupEditClear(struct bNode *node);
|
|
||||||
|
|
||||||
int nodeGroupPoll(struct bNodeTree *nodetree, struct bNodeTree *grouptree);
|
int nodeGroupPoll(struct bNodeTree *nodetree, struct bNodeTree *grouptree);
|
||||||
|
|
||||||
|
@ -255,7 +255,8 @@ struct ParticleSystem *psys_get_current(struct Object *ob);
|
|||||||
/* for rna */
|
/* for rna */
|
||||||
short psys_get_current_num(struct Object *ob);
|
short psys_get_current_num(struct Object *ob);
|
||||||
void psys_set_current_num(Object *ob, int index);
|
void psys_set_current_num(Object *ob, int index);
|
||||||
struct Object *psys_find_object(struct Scene *scene, struct ParticleSystem *psys);
|
/* UNUSED */
|
||||||
|
// struct Object *psys_find_object(struct Scene *scene, struct ParticleSystem *psys);
|
||||||
|
|
||||||
struct Object *psys_get_lattice(struct ParticleSimulationData *sim);
|
struct Object *psys_get_lattice(struct ParticleSimulationData *sim);
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ void smokeModifier_reset_turbulence(struct SmokeModifierData *smd);
|
|||||||
void smokeModifier_createType(struct SmokeModifierData *smd);
|
void smokeModifier_createType(struct SmokeModifierData *smd);
|
||||||
void smokeModifier_copy(struct SmokeModifierData *smd, struct SmokeModifierData *tsmd);
|
void smokeModifier_copy(struct SmokeModifierData *smd, struct SmokeModifierData *tsmd);
|
||||||
|
|
||||||
long long smoke_get_mem_req(int xres, int yres, int zres, int amplify);
|
|
||||||
float smoke_get_velocity_at(struct Object *ob, float position[3], float velocity[3]);
|
float smoke_get_velocity_at(struct Object *ob, float position[3], float velocity[3]);
|
||||||
int smoke_get_data_flags(struct SmokeDomainSettings *sds);
|
int smoke_get_data_flags(struct SmokeDomainSettings *sds);
|
||||||
|
|
||||||
|
@ -78,7 +78,8 @@ struct MTex *add_mtex_id(struct ID *id, int slot);
|
|||||||
struct Tex *BKE_texture_copy(struct Tex *tex);
|
struct Tex *BKE_texture_copy(struct Tex *tex);
|
||||||
struct Tex *localize_texture(struct Tex *tex);
|
struct Tex *localize_texture(struct Tex *tex);
|
||||||
void BKE_texture_make_local(struct Tex *tex);
|
void BKE_texture_make_local(struct Tex *tex);
|
||||||
void autotexname(struct Tex *tex);
|
/* UNUSED */
|
||||||
|
// void autotexname(struct Tex *tex);
|
||||||
|
|
||||||
struct Tex *give_current_object_texture(struct Object *ob);
|
struct Tex *give_current_object_texture(struct Object *ob);
|
||||||
struct Tex *give_current_material_texture(struct Material *ma);
|
struct Tex *give_current_material_texture(struct Material *ma);
|
||||||
|
@ -124,7 +124,6 @@ void push_queue(DagNodeQueue *queue, DagNode *node);
|
|||||||
void push_stack(DagNodeQueue *queue, DagNode *node);
|
void push_stack(DagNodeQueue *queue, DagNode *node);
|
||||||
DagNode *pop_queue(DagNodeQueue *queue);
|
DagNode *pop_queue(DagNodeQueue *queue);
|
||||||
DagNode *get_top_node_queue(DagNodeQueue *queue);
|
DagNode *get_top_node_queue(DagNodeQueue *queue);
|
||||||
int queue_count(DagNodeQueue *queue);
|
|
||||||
void queue_delete(DagNodeQueue *queue);
|
void queue_delete(DagNodeQueue *queue);
|
||||||
|
|
||||||
// Dag management
|
// Dag management
|
||||||
@ -137,9 +136,6 @@ DagNode *dag_get_node(DagForest *forest, void *fob);
|
|||||||
DagNode *dag_get_sub_node(DagForest *forest, void *fob);
|
DagNode *dag_get_sub_node(DagForest *forest, void *fob);
|
||||||
void dag_add_relation(DagForest *forest, DagNode *fob1, DagNode *fob2, short rel, const char *name);
|
void dag_add_relation(DagForest *forest, DagNode *fob1, DagNode *fob2, short rel, const char *name);
|
||||||
|
|
||||||
DagNodeQueue *graph_dfs(void);
|
|
||||||
|
|
||||||
void set_node_xy(DagNode *node, float x, float y);
|
|
||||||
void graph_print_queue(DagNodeQueue *nqueue);
|
void graph_print_queue(DagNodeQueue *nqueue);
|
||||||
void graph_print_queue_dist(DagNodeQueue *nqueue);
|
void graph_print_queue_dist(DagNodeQueue *nqueue);
|
||||||
void graph_print_adj_list(DagForest *dag);
|
void graph_print_adj_list(DagForest *dag);
|
||||||
|
@ -1130,7 +1130,7 @@ static void IDnames_to_dyn_pupstring(DynStr *pupds, ListBase *lb, ID *link, shor
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0 /* unused */
|
||||||
/* used by headerbuttons.c buttons.c editobject.c editseq.c */
|
/* used by headerbuttons.c buttons.c editobject.c editseq.c */
|
||||||
/* if (nr == NULL) no MAX_IDPUP, this for non-header browsing */
|
/* if (nr == NULL) no MAX_IDPUP, this for non-header browsing */
|
||||||
void IDnames_to_pupstring(const char **str, const char *title, const char *extraops, ListBase *lb, ID *link, short *nr)
|
void IDnames_to_pupstring(const char **str, const char *title, const char *extraops, ListBase *lb, ID *link, short *nr)
|
||||||
@ -1155,7 +1155,6 @@ void IDnames_to_pupstring(const char **str, const char *title, const char *extra
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* skips viewer images */
|
/* skips viewer images */
|
||||||
#if 0 /* unused */
|
|
||||||
void IMAnames_to_pupstring(const char **str, const char *title, const char *extraops, ListBase *lb, ID *link, short *nr)
|
void IMAnames_to_pupstring(const char **str, const char *title, const char *extraops, ListBase *lb, ID *link, short *nr)
|
||||||
{
|
{
|
||||||
DynStr *pupds = BLI_dynstr_new();
|
DynStr *pupds = BLI_dynstr_new();
|
||||||
|
@ -438,28 +438,6 @@ GHashIterator *nodeSocketTypeGetIterator(void)
|
|||||||
return BLI_ghashIterator_new(nodesockettypes_hash);
|
return BLI_ghashIterator_new(nodesockettypes_hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
void nodeMakeDynamicType(bNode *UNUSED(node))
|
|
||||||
{
|
|
||||||
#if 0 /* XXX deprecated */
|
|
||||||
/* find SH_DYNAMIC_NODE ntype */
|
|
||||||
bNodeType *ntype = ntreeType_Shader->node_types.first;
|
|
||||||
while (ntype) {
|
|
||||||
if (ntype->type == NODE_DYNAMIC)
|
|
||||||
break;
|
|
||||||
ntype = ntype->next;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* make own type struct to fill */
|
|
||||||
if (ntype) {
|
|
||||||
/*node->typeinfo= MEM_dupallocN(ntype);*/
|
|
||||||
bNodeType *newtype = MEM_callocN(sizeof(bNodeType), "dynamic bNodeType");
|
|
||||||
*newtype = *ntype;
|
|
||||||
BLI_strncpy(newtype->name, ntype->name, sizeof(newtype->name));
|
|
||||||
node->typeinfo = newtype;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
struct bNodeSocket *nodeFindSocket(bNode *node, int in_out, const char *identifier)
|
struct bNodeSocket *nodeFindSocket(bNode *node, int in_out, const char *identifier)
|
||||||
{
|
{
|
||||||
bNodeSocket *sock = (in_out == SOCK_IN ? node->inputs.first : node->outputs.first);
|
bNodeSocket *sock = (in_out == SOCK_IN ? node->inputs.first : node->outputs.first);
|
||||||
|
@ -173,35 +173,19 @@ void glaDefine2DArea(struct rcti *screen_rect);
|
|||||||
|
|
||||||
typedef struct gla2DDrawInfo gla2DDrawInfo;
|
typedef struct gla2DDrawInfo gla2DDrawInfo;
|
||||||
|
|
||||||
/** Save the current OpenGL state and initialize OpenGL for 2D
|
/* UNUSED */
|
||||||
* rendering. glaEnd2DDraw should be called on the returned structure
|
#if 0
|
||||||
* to free it and to return OpenGL to its previous state. The
|
|
||||||
* scissor rectangle is set to match the viewport.
|
|
||||||
*
|
|
||||||
* See glaDefine2DArea for an explanation of why this function uses integers.
|
|
||||||
*
|
|
||||||
* \param screen_rect The screen rectangle to be used for 2D drawing.
|
|
||||||
* \param world_rect The world rectangle that the 2D area represented
|
|
||||||
* by \a screen_rect is supposed to represent. If NULL it is assumed the
|
|
||||||
* world has a 1 to 1 mapping to the screen.
|
|
||||||
*/
|
|
||||||
gla2DDrawInfo *glaBegin2DDraw(struct rcti *screen_rect, struct rctf *world_rect);
|
gla2DDrawInfo *glaBegin2DDraw(struct rcti *screen_rect, struct rctf *world_rect);
|
||||||
|
void gla2DDrawTranslatePt(gla2DDrawInfo *di, float wo_x, float wo_y, int *sc_x_r, int *sc_y_r);
|
||||||
/** Translate the (\a wo_x, \a wo_y) point from world coordinates into screen space. */
|
|
||||||
void gla2DDrawTranslatePt(gla2DDrawInfo *di, float wo_x, float wo_y, int *sc_x_r, int *sc_y_r);
|
|
||||||
|
|
||||||
/** Translate the \a world point from world coordiantes into screen space. */
|
|
||||||
void gla2DDrawTranslatePtv(gla2DDrawInfo *di, float world[2], int screen_r[2]);
|
void gla2DDrawTranslatePtv(gla2DDrawInfo *di, float world[2], int screen_r[2]);
|
||||||
|
|
||||||
/* Restores the previous OpenGL state and free's the auxilary
|
void glaEnd2DDraw(gla2DDrawInfo *di);
|
||||||
* gla data.
|
|
||||||
*/
|
|
||||||
void glaEnd2DDraw(gla2DDrawInfo *di);
|
|
||||||
|
|
||||||
/** Adjust the transformation mapping of a 2d area */
|
/** Adjust the transformation mapping of a 2d area */
|
||||||
void gla2DGetMap(gla2DDrawInfo *di, struct rctf *rect);
|
void gla2DGetMap(gla2DDrawInfo *di, struct rctf *rect);
|
||||||
void gla2DSetMap(gla2DDrawInfo *di, struct rctf *rect);
|
void gla2DSetMap(gla2DDrawInfo *di, struct rctf *rect);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* use this for platform hacks. glPointSize is solved here */
|
/* use this for platform hacks. glPointSize is solved here */
|
||||||
void bglBegin(int mode);
|
void bglBegin(int mode);
|
||||||
|
@ -251,7 +251,6 @@ void ED_mesh_vertices_remove(struct Mesh *mesh, struct ReportList *reports, int
|
|||||||
void ED_mesh_transform(struct Mesh *me, float *mat);
|
void ED_mesh_transform(struct Mesh *me, float *mat);
|
||||||
void ED_mesh_calc_normals(struct Mesh *me);
|
void ED_mesh_calc_normals(struct Mesh *me);
|
||||||
void ED_mesh_calc_tessface(struct Mesh *mesh);
|
void ED_mesh_calc_tessface(struct Mesh *mesh);
|
||||||
void ED_mesh_material_link(struct Mesh *me, struct Material *ma);
|
|
||||||
void ED_mesh_update(struct Mesh *mesh, struct bContext *C, int calc_edges, int calc_tessface);
|
void ED_mesh_update(struct Mesh *mesh, struct bContext *C, int calc_edges, int calc_tessface);
|
||||||
|
|
||||||
int ED_mesh_uv_texture_add(struct Mesh *me, const char *name, const bool active_set);
|
int ED_mesh_uv_texture_add(struct Mesh *me, const char *name, const bool active_set);
|
||||||
|
@ -113,7 +113,8 @@ struct Base;
|
|||||||
struct Scene;
|
struct Scene;
|
||||||
struct Object;
|
struct Object;
|
||||||
|
|
||||||
int BIF_snappingSupported(struct Object *obedit);
|
/* UNUSED */
|
||||||
|
// int BIF_snappingSupported(struct Object *obedit);
|
||||||
|
|
||||||
struct TransformOrientation;
|
struct TransformOrientation;
|
||||||
struct bContext;
|
struct bContext;
|
||||||
|
@ -90,7 +90,6 @@ void ED_clipboard_posebuf_free(void);
|
|||||||
/* ************** XXX OLD CRUFT WARNING ************* */
|
/* ************** XXX OLD CRUFT WARNING ************* */
|
||||||
|
|
||||||
void apply_keyb_grid(int shift, int ctrl, float *val, float fac1, float fac2, float fac3, int invert);
|
void apply_keyb_grid(int shift, int ctrl, float *val, float fac1, float fac2, float fac3, int invert);
|
||||||
int GetButStringLength(const char *str);
|
|
||||||
|
|
||||||
/* where else to go ? */
|
/* where else to go ? */
|
||||||
void unpack_menu(struct bContext *C, const char *opname, const char *id_name, const char *abs_name, const char *folder, struct PackedFile *pf);
|
void unpack_menu(struct bContext *C, const char *opname, const char *id_name, const char *abs_name, const char *folder, struct PackedFile *pf);
|
||||||
|
@ -803,7 +803,6 @@ uiBlock *uiLayoutAbsoluteBlock(uiLayout *layout);
|
|||||||
|
|
||||||
/* templates */
|
/* templates */
|
||||||
void uiTemplateHeader(uiLayout *layout, struct bContext *C, int menus);
|
void uiTemplateHeader(uiLayout *layout, struct bContext *C, int menus);
|
||||||
void uiTemplateDopeSheetFilter(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr);
|
|
||||||
void uiTemplateID(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname,
|
void uiTemplateID(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname,
|
||||||
const char *newop, const char *openop, const char *unlinkop);
|
const char *newop, const char *openop, const char *unlinkop);
|
||||||
void uiTemplateIDBrowse(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname,
|
void uiTemplateIDBrowse(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname,
|
||||||
@ -836,7 +835,6 @@ void uiOperatorSearch_But(uiBut *but);
|
|||||||
void uiTemplateOperatorSearch(uiLayout *layout);
|
void uiTemplateOperatorSearch(uiLayout *layout);
|
||||||
void uiTemplateHeader3D(uiLayout *layout, struct bContext *C);
|
void uiTemplateHeader3D(uiLayout *layout, struct bContext *C);
|
||||||
void uiTemplateEditModeSelection(uiLayout *layout, struct bContext *C);
|
void uiTemplateEditModeSelection(uiLayout *layout, struct bContext *C);
|
||||||
void uiTemplateTextureImage(uiLayout *layout, struct bContext *C, struct Tex *tex);
|
|
||||||
void uiTemplateReportsBanner(uiLayout *layout, struct bContext *C);
|
void uiTemplateReportsBanner(uiLayout *layout, struct bContext *C);
|
||||||
void uiTemplateKeymapItemProperties(uiLayout *layout, struct PointerRNA *ptr);
|
void uiTemplateKeymapItemProperties(uiLayout *layout, struct PointerRNA *ptr);
|
||||||
void uiTemplateComponentMenu(uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *name);
|
void uiTemplateComponentMenu(uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *name);
|
||||||
|
@ -759,6 +759,18 @@ void gla2DSetMap(gla2DDrawInfo *di, rctf *rect)
|
|||||||
di->wo_to_sc[1] = sc_h / wo_h;
|
di->wo_to_sc[1] = sc_h / wo_h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Save the current OpenGL state and initialize OpenGL for 2D
|
||||||
|
* rendering. glaEnd2DDraw should be called on the returned structure
|
||||||
|
* to free it and to return OpenGL to its previous state. The
|
||||||
|
* scissor rectangle is set to match the viewport.
|
||||||
|
*
|
||||||
|
* See glaDefine2DArea for an explanation of why this function uses integers.
|
||||||
|
*
|
||||||
|
* \param screen_rect The screen rectangle to be used for 2D drawing.
|
||||||
|
* \param world_rect The world rectangle that the 2D area represented
|
||||||
|
* by \a screen_rect is supposed to represent. If NULL it is assumed the
|
||||||
|
* world has a 1 to 1 mapping to the screen.
|
||||||
|
*/
|
||||||
gla2DDrawInfo *glaBegin2DDraw(rcti *screen_rect, rctf *world_rect)
|
gla2DDrawInfo *glaBegin2DDraw(rcti *screen_rect, rctf *world_rect)
|
||||||
{
|
{
|
||||||
gla2DDrawInfo *di = MEM_mallocN(sizeof(*di), "gla2DDrawInfo");
|
gla2DDrawInfo *di = MEM_mallocN(sizeof(*di), "gla2DDrawInfo");
|
||||||
@ -794,17 +806,27 @@ gla2DDrawInfo *glaBegin2DDraw(rcti *screen_rect, rctf *world_rect)
|
|||||||
return di;
|
return di;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Translate the (\a wo_x, \a wo_y) point from world coordinates into screen space.
|
||||||
|
*/
|
||||||
void gla2DDrawTranslatePt(gla2DDrawInfo *di, float wo_x, float wo_y, int *sc_x_r, int *sc_y_r)
|
void gla2DDrawTranslatePt(gla2DDrawInfo *di, float wo_x, float wo_y, int *sc_x_r, int *sc_y_r)
|
||||||
{
|
{
|
||||||
*sc_x_r = (wo_x - di->world_rect.xmin) * di->wo_to_sc[0];
|
*sc_x_r = (wo_x - di->world_rect.xmin) * di->wo_to_sc[0];
|
||||||
*sc_y_r = (wo_y - di->world_rect.ymin) * di->wo_to_sc[1];
|
*sc_y_r = (wo_y - di->world_rect.ymin) * di->wo_to_sc[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Translate the \a world point from world coordiantes into screen space.
|
||||||
|
*/
|
||||||
void gla2DDrawTranslatePtv(gla2DDrawInfo *di, float world[2], int screen_r[2])
|
void gla2DDrawTranslatePtv(gla2DDrawInfo *di, float world[2], int screen_r[2])
|
||||||
{
|
{
|
||||||
screen_r[0] = (world[0] - di->world_rect.xmin) * di->wo_to_sc[0];
|
screen_r[0] = (world[0] - di->world_rect.xmin) * di->wo_to_sc[0];
|
||||||
screen_r[1] = (world[1] - di->world_rect.ymin) * di->wo_to_sc[1];
|
screen_r[1] = (world[1] - di->world_rect.ymin) * di->wo_to_sc[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Restores the previous OpenGL state and free's the auxilary gla data.
|
||||||
|
*/
|
||||||
void glaEnd2DDraw(gla2DDrawInfo *di)
|
void glaEnd2DDraw(gla2DDrawInfo *di)
|
||||||
{
|
{
|
||||||
glViewport(di->orig_vp[0], di->orig_vp[1], di->orig_vp[2], di->orig_vp[3]);
|
glViewport(di->orig_vp[0], di->orig_vp[1], di->orig_vp[2], di->orig_vp[3]);
|
||||||
|
@ -54,8 +54,6 @@ struct SculptUndoNode;
|
|||||||
/* Interface */
|
/* Interface */
|
||||||
struct MultiresModifierData *sculpt_multires_active(struct Scene *scene, struct Object *ob);
|
struct MultiresModifierData *sculpt_multires_active(struct Scene *scene, struct Object *ob);
|
||||||
|
|
||||||
void sculpt(struct Sculpt *sd);
|
|
||||||
|
|
||||||
int sculpt_mode_poll(struct bContext *C);
|
int sculpt_mode_poll(struct bContext *C);
|
||||||
int sculpt_mode_poll_view3d(struct bContext *C);
|
int sculpt_mode_poll_view3d(struct bContext *C);
|
||||||
int sculpt_poll(struct bContext *C);
|
int sculpt_poll(struct bContext *C);
|
||||||
|
@ -275,9 +275,9 @@ static void draw_movieclip_buffer(const bContext *C, SpaceClip *sc, ARegion *ar,
|
|||||||
/* non-scaled proxy shouldn't use filtering */
|
/* non-scaled proxy shouldn't use filtering */
|
||||||
if ((clip->flag & MCLIP_USE_PROXY) == 0 ||
|
if ((clip->flag & MCLIP_USE_PROXY) == 0 ||
|
||||||
ELEM(sc->user.render_size, MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_PROXY_RENDER_SIZE_100))
|
ELEM(sc->user.render_size, MCLIP_PROXY_RENDER_SIZE_FULL, MCLIP_PROXY_RENDER_SIZE_100))
|
||||||
{
|
{
|
||||||
filter = GL_NEAREST;
|
filter = GL_NEAREST;
|
||||||
}
|
}
|
||||||
|
|
||||||
glaDrawImBuf_glsl_ctx(C, ibuf, x, y, GL_NEAREST);
|
glaDrawImBuf_glsl_ctx(C, ibuf, x, y, GL_NEAREST);
|
||||||
|
|
||||||
|
@ -155,10 +155,6 @@ void NODE_OT_group_insert(struct wmOperatorType *ot);
|
|||||||
void NODE_OT_group_ungroup(struct wmOperatorType *ot);
|
void NODE_OT_group_ungroup(struct wmOperatorType *ot);
|
||||||
void NODE_OT_group_separate(struct wmOperatorType *ot);
|
void NODE_OT_group_separate(struct wmOperatorType *ot);
|
||||||
void NODE_OT_group_edit(struct wmOperatorType *ot);
|
void NODE_OT_group_edit(struct wmOperatorType *ot);
|
||||||
void NODE_OT_group_socket_add(struct wmOperatorType *ot);
|
|
||||||
void NODE_OT_group_socket_remove(struct wmOperatorType *ot);
|
|
||||||
void NODE_OT_group_socket_move_up(struct wmOperatorType *ot);
|
|
||||||
void NODE_OT_group_socket_move_down(struct wmOperatorType *ot);
|
|
||||||
|
|
||||||
|
|
||||||
/* node_relationships.c */
|
/* node_relationships.c */
|
||||||
@ -181,9 +177,7 @@ void snode_notify(struct bContext *C, struct SpaceNode *snode);
|
|||||||
void snode_dag_update(struct bContext *C, struct SpaceNode *snode);
|
void snode_dag_update(struct bContext *C, struct SpaceNode *snode);
|
||||||
void snode_set_context(const struct bContext *C);
|
void snode_set_context(const struct bContext *C);
|
||||||
|
|
||||||
bNode *node_tree_get_editgroup(bNodeTree *ntree);
|
|
||||||
void snode_update(struct SpaceNode *snode, struct bNode *node);
|
void snode_update(struct SpaceNode *snode, struct bNode *node);
|
||||||
bNode *editnode_get_active(bNodeTree *ntree);
|
|
||||||
int composite_node_active(struct bContext *C);
|
int composite_node_active(struct bContext *C);
|
||||||
|
|
||||||
int node_has_hidden_sockets(bNode *node);
|
int node_has_hidden_sockets(bNode *node);
|
||||||
|
@ -54,7 +54,8 @@ struct ARegion *sequencer_has_buttons_region(struct ScrArea *sa);
|
|||||||
void draw_timeline_seq(const struct bContext *C, struct ARegion *ar);
|
void draw_timeline_seq(const struct bContext *C, struct ARegion *ar);
|
||||||
void draw_image_seq(const struct bContext *C, struct Scene *scene, struct ARegion *ar, struct SpaceSeq *sseq, int cfra, int offset, int draw_overlay);
|
void draw_image_seq(const struct bContext *C, struct Scene *scene, struct ARegion *ar, struct SpaceSeq *sseq, int cfra, int offset, int draw_overlay);
|
||||||
|
|
||||||
void seq_reset_imageofs(struct SpaceSeq *sseq);
|
/* UNUSED */
|
||||||
|
// void seq_reset_imageofs(struct SpaceSeq *sseq);
|
||||||
|
|
||||||
struct ImBuf *sequencer_ibuf_get(struct Main *bmain, struct Scene *scene, struct SpaceSeq *sseq, int cfra, int frame_ofs);
|
struct ImBuf *sequencer_ibuf_get(struct Main *bmain, struct Scene *scene, struct SpaceSeq *sseq, int cfra, int frame_ofs);
|
||||||
|
|
||||||
@ -69,7 +70,8 @@ int seq_effect_find_selected(struct Scene *scene, struct Sequence *activeseq, in
|
|||||||
|
|
||||||
/* operator helpers */
|
/* operator helpers */
|
||||||
int sequencer_edit_poll(struct bContext *C);
|
int sequencer_edit_poll(struct bContext *C);
|
||||||
int sequencer_strip_poll(struct bContext *C);
|
/* UNUSED */
|
||||||
|
//int sequencer_strip_poll(struct bContext *C);
|
||||||
int sequencer_strip_has_path_poll(struct bContext *C);
|
int sequencer_strip_has_path_poll(struct bContext *C);
|
||||||
int sequencer_view_poll(struct bContext *C);
|
int sequencer_view_poll(struct bContext *C);
|
||||||
|
|
||||||
|
@ -162,17 +162,6 @@ void apply_keyb_grid(int shift, int ctrl, float *val, float fac1, float fac2, fl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 /* UNUSED */
|
|
||||||
int GetButStringLength(const char *str)
|
|
||||||
{
|
|
||||||
int rt;
|
|
||||||
|
|
||||||
rt = UI_GetStringWidth(str);
|
|
||||||
|
|
||||||
return rt + 15;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void unpack_menu(bContext *C, const char *opname, const char *id_name, const char *abs_name, const char *folder, struct PackedFile *pf)
|
void unpack_menu(bContext *C, const char *opname, const char *id_name, const char *abs_name, const char *folder, struct PackedFile *pf)
|
||||||
{
|
{
|
||||||
PointerRNA props_ptr;
|
PointerRNA props_ptr;
|
||||||
|
@ -52,7 +52,6 @@ void register_node_type_cmp_value(void);
|
|||||||
void register_node_type_cmp_rgb(void);
|
void register_node_type_cmp_rgb(void);
|
||||||
void register_node_type_cmp_curve_time(void);
|
void register_node_type_cmp_curve_time(void);
|
||||||
void register_node_type_cmp_movieclip(void);
|
void register_node_type_cmp_movieclip(void);
|
||||||
void register_node_type_cmp_usermask(struct bNodeTreeType *ttype);
|
|
||||||
|
|
||||||
void register_node_type_cmp_composite(void);
|
void register_node_type_cmp_composite(void);
|
||||||
void register_node_type_cmp_viewer(void);
|
void register_node_type_cmp_viewer(void);
|
||||||
|
@ -92,7 +92,6 @@ typedef struct ShaderCallData {
|
|||||||
} ShaderCallData;
|
} ShaderCallData;
|
||||||
|
|
||||||
|
|
||||||
extern void node_ID_title_cb(void *node_v, void *unused_v);
|
|
||||||
void nodestack_get_vec(float *in, short type_in, bNodeStack *ns);
|
void nodestack_get_vec(float *in, short type_in, bNodeStack *ns);
|
||||||
|
|
||||||
void node_gpu_stack_from_data(struct GPUNodeStack *gs, int type, struct bNodeStack *ns);
|
void node_gpu_stack_from_data(struct GPUNodeStack *gs, int type, struct bNodeStack *ns);
|
||||||
|
@ -158,9 +158,6 @@ typedef struct RenderStats {
|
|||||||
struct Render *RE_NewRender (const char *name);
|
struct Render *RE_NewRender (const char *name);
|
||||||
struct Render *RE_GetRender(const char *name);
|
struct Render *RE_GetRender(const char *name);
|
||||||
|
|
||||||
/* returns 1 while render is working (or renders called from within render) */
|
|
||||||
int RE_RenderInProgress(struct Render *re);
|
|
||||||
|
|
||||||
/* assign default dummy callbacks */
|
/* assign default dummy callbacks */
|
||||||
void RE_InitRenderCB(struct Render *re);
|
void RE_InitRenderCB(struct Render *re);
|
||||||
|
|
||||||
|
@ -37,20 +37,12 @@
|
|||||||
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
||||||
|
|
||||||
/* called by meshtools */
|
/* called by meshtools */
|
||||||
struct View3D;
|
|
||||||
struct Scene;
|
|
||||||
struct LinkNode;
|
|
||||||
|
|
||||||
void RE_make_sticky(struct Scene *scene, struct Object *camera, struct LinkNode *objects);
|
|
||||||
|
|
||||||
/* for radiosity module */
|
|
||||||
struct RadView;
|
|
||||||
struct RNode;
|
|
||||||
struct Render;
|
|
||||||
struct MTex;
|
|
||||||
struct ImBuf;
|
|
||||||
struct ImagePool;
|
|
||||||
struct DerivedMesh;
|
struct DerivedMesh;
|
||||||
|
struct ImagePool;
|
||||||
|
struct LinkNode;
|
||||||
|
struct MTex;
|
||||||
|
struct Scene;
|
||||||
|
struct View3D;
|
||||||
|
|
||||||
/* particle.c, effect.c, editmesh_modes.c and brush.c, returns 1 if rgb, 0 otherwise */
|
/* particle.c, effect.c, editmesh_modes.c and brush.c, returns 1 if rgb, 0 otherwise */
|
||||||
int externtex(struct MTex *mtex, const float vec[3], float *tin, float *tr, float *tg, float *tb, float *ta, const int thread, struct ImagePool *pool);
|
int externtex(struct MTex *mtex, const float vec[3], float *tin, float *tr, float *tg, float *tb, float *ta, const int thread, struct ImagePool *pool);
|
||||||
|
@ -455,9 +455,7 @@ void uiTemplateRunningJobs(struct uiLayout *layout, struct bContext *C) {}
|
|||||||
void uiTemplateOperatorSearch(struct uiLayout *layout) {}
|
void uiTemplateOperatorSearch(struct uiLayout *layout) {}
|
||||||
void uiTemplateHeader3D(struct uiLayout *layout, struct bContext *C) {}
|
void uiTemplateHeader3D(struct uiLayout *layout, struct bContext *C) {}
|
||||||
void uiTemplateEditModeSelection(struct uiLayout *layout, struct bContext *C) {}
|
void uiTemplateEditModeSelection(struct uiLayout *layout, struct bContext *C) {}
|
||||||
void uiTemplateTextureImage(struct uiLayout *layout, struct bContext *C, struct Tex *tex) {}
|
|
||||||
void uiTemplateImage(struct uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, char *propname, struct PointerRNA *userptr, int compact) {}
|
void uiTemplateImage(struct uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, char *propname, struct PointerRNA *userptr, int compact) {}
|
||||||
void uiTemplateDopeSheetFilter(struct uiLayout *layout, struct bContext *C, struct PointerRNA *ptr) {}
|
|
||||||
void uiTemplateColorPicker(struct uiLayout *layout, struct PointerRNA *ptr, char *propname, int value_slider) {}
|
void uiTemplateColorPicker(struct uiLayout *layout, struct PointerRNA *ptr, char *propname, int value_slider) {}
|
||||||
void uiTemplateHistogram(struct uiLayout *layout, struct PointerRNA *ptr, char *propname, int expand) {}
|
void uiTemplateHistogram(struct uiLayout *layout, struct PointerRNA *ptr, char *propname, int expand) {}
|
||||||
void uiTemplateReportsBanner(struct uiLayout *layout, struct bContext *C, struct wmOperator *op) {}
|
void uiTemplateReportsBanner(struct uiLayout *layout, struct bContext *C, struct wmOperator *op) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user