Various fixes in rna_*_api.c files to remove compiler warnings.
This commit is contained in:
@@ -118,6 +118,7 @@ void EM_select_face(struct EditFace *efa, int sel);
|
||||
void EM_select_face_fgon(struct EditMesh *em, struct EditFace *efa, int val);
|
||||
void EM_select_swap(struct EditMesh *em);
|
||||
void EM_toggle_select_all(struct EditMesh *em);
|
||||
void EM_select_all(struct EditMesh *em);
|
||||
void EM_selectmode_flush(struct EditMesh *em);
|
||||
void EM_deselect_flush(struct EditMesh *em);
|
||||
void EM_selectmode_set(struct EditMesh *em);
|
||||
|
||||
@@ -3288,6 +3288,11 @@ void EM_toggle_select_all(EditMesh *em) /* exported for UV */
|
||||
EM_set_flag_all(em, SELECT);
|
||||
}
|
||||
|
||||
void EM_select_all(EditMesh *em)
|
||||
{
|
||||
EM_set_flag_all(em, SELECT);
|
||||
}
|
||||
|
||||
static int toggle_select_all_exec(bContext *C, wmOperator *op)
|
||||
{
|
||||
Object *obedit= CTX_data_edit_object(C);
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
|
||||
#ifdef RNA_RUNTIME
|
||||
|
||||
#include "BKE_action.h"
|
||||
|
||||
#include "DNA_anim_types.h"
|
||||
#include "DNA_curve_types.h"
|
||||
|
||||
|
||||
@@ -41,6 +41,8 @@
|
||||
#include "BKE_utildefines.h"
|
||||
#include "BKE_image.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
/*
|
||||
User should check if returned path exists before copying a file there.
|
||||
|
||||
|
||||
@@ -197,13 +197,15 @@ void rna_Object_update_data(struct bContext *C, struct PointerRNA *ptr);
|
||||
|
||||
/* API functions */
|
||||
|
||||
void RNA_api_action(StructRNA *srna);
|
||||
void RNA_api_image(struct StructRNA *srna);
|
||||
void RNA_api_main(struct StructRNA *srna);
|
||||
void RNA_api_material(StructRNA *srna);
|
||||
void RNA_api_mesh(struct StructRNA *srna);
|
||||
void RNA_api_object(struct StructRNA *srna);
|
||||
void RNA_api_scene(struct StructRNA *srna);
|
||||
void RNA_api_ui_layout(struct StructRNA *srna);
|
||||
void RNA_api_wm(struct StructRNA *srna);
|
||||
void RNA_api_scene(struct StructRNA *srna);
|
||||
void RNA_api_material(StructRNA *srna);
|
||||
|
||||
/* ID Properties */
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "BKE_DerivedMesh.h"
|
||||
#include "BKE_main.h"
|
||||
#include "BKE_mesh.h"
|
||||
#include "BKE_material.h"
|
||||
|
||||
#include "DNA_mesh_types.h"
|
||||
#include "DNA_scene_types.h"
|
||||
@@ -52,6 +53,8 @@
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
static void rna_Mesh_calc_edges(Mesh *mesh)
|
||||
{
|
||||
CustomData edata;
|
||||
|
||||
@@ -273,7 +273,7 @@ static void rna_Object_convert_to_triface(Object *ob, bContext *C, ReportList *r
|
||||
make_editMesh(sce, ob);
|
||||
|
||||
/* select all */
|
||||
EM_set_flag_all(me->edit_mesh, SELECT);
|
||||
EM_select_all(me->edit_mesh);
|
||||
|
||||
convert_to_triface(me->edit_mesh, 0);
|
||||
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
|
||||
void RNA_api_pose(StructRNA *srna)
|
||||
{
|
||||
FunctionRNA *func;
|
||||
PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,12 @@
|
||||
#ifdef RNA_RUNTIME
|
||||
|
||||
#include "BKE_scene.h"
|
||||
#include "BKE_depsgraph.h"
|
||||
|
||||
#include "ED_object.h"
|
||||
|
||||
#include "WM_api.h"
|
||||
|
||||
static void rna_Scene_add_object(Scene *sce, ReportList *reports, Object *ob)
|
||||
{
|
||||
Base *base= object_in_scene(ob, sce);
|
||||
|
||||
@@ -3,7 +3,7 @@ Import ('env')
|
||||
|
||||
sources = env.Glob('intern/*.c')
|
||||
|
||||
incs = '. ../editors/include ../makesdna ../makesrna ../makesrna/intern ../blenlib ../blenkernel ../nodes'
|
||||
incs = '. ../editors/include ../makesdna ../makesrna ../blenlib ../blenkernel ../nodes'
|
||||
incs += ' ../imbuf ../blenloader ../render/extern/include ../windowmanager'
|
||||
incs += ' #intern/guardedalloc #intern/memutil #extern/glew/include'
|
||||
incs += ' ' + env['BF_PYTHON_INC']
|
||||
|
||||
@@ -97,6 +97,10 @@
|
||||
#include "binreloc.h"
|
||||
#endif
|
||||
|
||||
#ifdef WITH_UNIT_TEST
|
||||
#include "tests/test.h"
|
||||
#endif
|
||||
|
||||
// from buildinfo.c
|
||||
#ifdef BUILD_DATE
|
||||
extern char * build_date;
|
||||
|
||||
6
source/creator/tests/test.h
Normal file
6
source/creator/tests/test.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef _BF_UNIT_TEST
|
||||
#define _BF_UNIT_TEST
|
||||
|
||||
int run_tests();
|
||||
|
||||
#endif /* _BF_UNIT_TEST */
|
||||
Reference in New Issue
Block a user