svn merge -r37030:37035 https://svn.blender.org/svnroot/bf-blender/trunk/blender
This commit is contained in:
@@ -205,17 +205,17 @@ void rna_ID_fake_user_set(PointerRNA *ptr, int value)
|
||||
}
|
||||
}
|
||||
|
||||
IDProperty *rna_PropertyGroup_idprops(PointerRNA *ptr, int create)
|
||||
IDProperty *rna_PropertyGroup_idprops(PointerRNA *ptr, int UNUSED(create))
|
||||
{
|
||||
return ptr->data;
|
||||
}
|
||||
|
||||
void rna_PropertyGroup_unregister(Main *bmain, StructRNA *type)
|
||||
void rna_PropertyGroup_unregister(Main *UNUSED(bmain), StructRNA *type)
|
||||
{
|
||||
RNA_struct_free(&BLENDER_RNA, type);
|
||||
}
|
||||
|
||||
StructRNA *rna_PropertyGroup_register(Main *bmain, ReportList *reports, void *data, const char *identifier, StructValidateFunc validate, StructCallbackFunc call, StructFreeFunc free)
|
||||
StructRNA *rna_PropertyGroup_register(Main *UNUSED(bmain), ReportList *reports, void *data, const char *identifier, StructValidateFunc validate, StructCallbackFunc UNUSED(call), StructFreeFunc UNUSED(free))
|
||||
{
|
||||
PointerRNA dummyptr;
|
||||
|
||||
|
||||
@@ -288,7 +288,7 @@ static int rna_ensure_property_array_length(PointerRNA *ptr, PropertyRNA *prop)
|
||||
}
|
||||
}
|
||||
|
||||
static int rna_ensure_property_array_check(PointerRNA *ptr, PropertyRNA *prop)
|
||||
static int rna_ensure_property_array_check(PointerRNA *UNUSED(ptr), PropertyRNA *prop)
|
||||
{
|
||||
if(prop->magic == RNA_MAGIC) {
|
||||
return (prop->getlength || prop->totarraylength) ? 1:0;
|
||||
@@ -1304,7 +1304,7 @@ int RNA_property_animateable(PointerRNA *ptr, PropertyRNA *prop)
|
||||
return (prop->flag & PROP_EDITABLE);
|
||||
}
|
||||
|
||||
int RNA_property_animated(PointerRNA *ptr, PropertyRNA *prop)
|
||||
int RNA_property_animated(PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop))
|
||||
{
|
||||
/* would need to ask animation system */
|
||||
|
||||
@@ -1524,7 +1524,7 @@ void RNA_property_boolean_set_index(PointerRNA *ptr, PropertyRNA *prop, int inde
|
||||
}
|
||||
}
|
||||
|
||||
int RNA_property_boolean_get_default(PointerRNA *ptr, PropertyRNA *prop)
|
||||
int RNA_property_boolean_get_default(PointerRNA *UNUSED(ptr), PropertyRNA *prop)
|
||||
{
|
||||
BooleanPropertyRNA *bprop= (BooleanPropertyRNA*)prop;
|
||||
|
||||
@@ -1533,7 +1533,7 @@ int RNA_property_boolean_get_default(PointerRNA *ptr, PropertyRNA *prop)
|
||||
return bprop->defaultvalue;
|
||||
}
|
||||
|
||||
void RNA_property_boolean_get_default_array(PointerRNA *ptr, PropertyRNA *prop, int *values)
|
||||
void RNA_property_boolean_get_default_array(PointerRNA *UNUSED(ptr), PropertyRNA *prop, int *values)
|
||||
{
|
||||
BooleanPropertyRNA *bprop= (BooleanPropertyRNA*)prop;
|
||||
|
||||
@@ -1710,13 +1710,13 @@ void RNA_property_int_set_index(PointerRNA *ptr, PropertyRNA *prop, int index, i
|
||||
}
|
||||
}
|
||||
|
||||
int RNA_property_int_get_default(PointerRNA *ptr, PropertyRNA *prop)
|
||||
int RNA_property_int_get_default(PointerRNA *UNUSED(ptr), PropertyRNA *prop)
|
||||
{
|
||||
IntPropertyRNA *iprop= (IntPropertyRNA*)prop;
|
||||
return iprop->defaultvalue;
|
||||
}
|
||||
|
||||
void RNA_property_int_get_default_array(PointerRNA *ptr, PropertyRNA *prop, int *values)
|
||||
void RNA_property_int_get_default_array(PointerRNA *UNUSED(ptr), PropertyRNA *prop, int *values)
|
||||
{
|
||||
IntPropertyRNA *iprop= (IntPropertyRNA*)prop;
|
||||
|
||||
@@ -1918,7 +1918,7 @@ void RNA_property_float_set_index(PointerRNA *ptr, PropertyRNA *prop, int index,
|
||||
}
|
||||
}
|
||||
|
||||
float RNA_property_float_get_default(PointerRNA *ptr, PropertyRNA *prop)
|
||||
float RNA_property_float_get_default(PointerRNA *UNUSED(ptr), PropertyRNA *prop)
|
||||
{
|
||||
FloatPropertyRNA *fprop= (FloatPropertyRNA*)prop;
|
||||
|
||||
@@ -1927,7 +1927,7 @@ float RNA_property_float_get_default(PointerRNA *ptr, PropertyRNA *prop)
|
||||
return fprop->defaultvalue;
|
||||
}
|
||||
|
||||
void RNA_property_float_get_default_array(PointerRNA *ptr, PropertyRNA *prop, float *values)
|
||||
void RNA_property_float_get_default_array(PointerRNA *UNUSED(ptr), PropertyRNA *prop, float *values)
|
||||
{
|
||||
FloatPropertyRNA *fprop= (FloatPropertyRNA*)prop;
|
||||
|
||||
@@ -2034,7 +2034,7 @@ void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *val
|
||||
}
|
||||
}
|
||||
|
||||
void RNA_property_string_get_default(PointerRNA *ptr, PropertyRNA *prop, char *value)
|
||||
void RNA_property_string_get_default(PointerRNA *UNUSED(ptr), PropertyRNA *prop, char *value)
|
||||
{
|
||||
StringPropertyRNA *sprop= (StringPropertyRNA*)prop;
|
||||
|
||||
@@ -2063,7 +2063,7 @@ char *RNA_property_string_get_default_alloc(PointerRNA *ptr, PropertyRNA *prop,
|
||||
}
|
||||
|
||||
/* this is the length without \0 terminator */
|
||||
int RNA_property_string_default_length(PointerRNA *ptr, PropertyRNA *prop)
|
||||
int RNA_property_string_default_length(PointerRNA *UNUSED(ptr), PropertyRNA *prop)
|
||||
{
|
||||
StringPropertyRNA *sprop= (StringPropertyRNA*)prop;
|
||||
|
||||
@@ -2111,7 +2111,7 @@ void RNA_property_enum_set(PointerRNA *ptr, PropertyRNA *prop, int value)
|
||||
}
|
||||
}
|
||||
|
||||
int RNA_property_enum_get_default(PointerRNA *ptr, PropertyRNA *prop)
|
||||
int RNA_property_enum_get_default(PointerRNA *UNUSED(ptr), PropertyRNA *prop)
|
||||
{
|
||||
EnumPropertyRNA *eprop= (EnumPropertyRNA*)prop;
|
||||
|
||||
@@ -3383,7 +3383,7 @@ int RNA_path_resolve_full(PointerRNA *ptr, const char *path, PointerRNA *r_ptr,
|
||||
}
|
||||
|
||||
|
||||
char *RNA_path_append(const char *path, PointerRNA *ptr, PropertyRNA *prop, int intkey, const char *strkey)
|
||||
char *RNA_path_append(const char *path, PointerRNA *UNUSED(ptr), PropertyRNA *prop, int intkey, const char *strkey)
|
||||
{
|
||||
DynStr *dynstr;
|
||||
const char *s;
|
||||
@@ -4261,12 +4261,12 @@ int RNA_function_defined(FunctionRNA *func)
|
||||
return func->call != NULL;
|
||||
}
|
||||
|
||||
PropertyRNA *RNA_function_get_parameter(PointerRNA *ptr, FunctionRNA *func, int index)
|
||||
PropertyRNA *RNA_function_get_parameter(PointerRNA *UNUSED(ptr), FunctionRNA *func, int index)
|
||||
{
|
||||
return BLI_findlink(&func->cont.properties, index);
|
||||
}
|
||||
|
||||
PropertyRNA *RNA_function_find_parameter(PointerRNA *ptr, FunctionRNA *func, const char *identifier)
|
||||
PropertyRNA *RNA_function_find_parameter(PointerRNA *UNUSED(ptr), FunctionRNA *func, const char *identifier)
|
||||
{
|
||||
return BLI_findstring(&func->cont.properties, identifier, offsetof(PropertyRNA, identifier));
|
||||
}
|
||||
@@ -4278,7 +4278,7 @@ const struct ListBase *RNA_function_defined_parameters(FunctionRNA *func)
|
||||
|
||||
/* Utility */
|
||||
|
||||
ParameterList *RNA_parameter_list_create(ParameterList *parms, PointerRNA *ptr, FunctionRNA *func)
|
||||
ParameterList *RNA_parameter_list_create(ParameterList *parms, PointerRNA *UNUSED(ptr), FunctionRNA *func)
|
||||
{
|
||||
PropertyRNA *parm;
|
||||
void *data;
|
||||
@@ -4416,7 +4416,7 @@ void RNA_parameter_list_next(ParameterIterator *iter)
|
||||
}
|
||||
}
|
||||
|
||||
void RNA_parameter_list_end(ParameterIterator *iter)
|
||||
void RNA_parameter_list_end(ParameterIterator *UNUSED(iter))
|
||||
{
|
||||
/* nothing to do */
|
||||
}
|
||||
@@ -4516,12 +4516,12 @@ void RNA_parameter_length_set(ParameterList *parms, PropertyRNA *parm, int lengt
|
||||
RNA_parameter_list_end(&iter);
|
||||
}
|
||||
|
||||
int RNA_parameter_length_get_data(ParameterList *parms, PropertyRNA *parm, void *data)
|
||||
int RNA_parameter_length_get_data(ParameterList *UNUSED(parms), PropertyRNA *UNUSED(parm), void *data)
|
||||
{
|
||||
return *((int *)((char *)data));
|
||||
}
|
||||
|
||||
void RNA_parameter_length_set_data(ParameterList *parms, PropertyRNA *parm, void *data, int length)
|
||||
void RNA_parameter_length_set_data(ParameterList *UNUSED(parms), PropertyRNA *UNUSED(parm), void *data, int length)
|
||||
{
|
||||
*((int *)data)= length;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#include "ED_armature.h"
|
||||
#include "BKE_armature.h"
|
||||
|
||||
static void rna_Armature_update_data(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Armature_update_data(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
ID *id= ptr->id.data;
|
||||
|
||||
@@ -126,7 +126,7 @@ void rna_Armature_edit_bone_remove(bArmature *arm, ReportList *reports, EditBone
|
||||
ED_armature_edit_bone_remove(arm, ebone);
|
||||
}
|
||||
|
||||
static void rna_Armature_update_layers(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Armature_update_layers(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
bArmature *arm= ptr->id.data;
|
||||
Object *ob;
|
||||
@@ -140,7 +140,7 @@ static void rna_Armature_update_layers(Main *bmain, Scene *scene, PointerRNA *pt
|
||||
WM_main_add_notifier(NC_GEOM|ND_DATA, arm);
|
||||
}
|
||||
|
||||
static void rna_Armature_redraw_data(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Armature_redraw_data(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
ID *id= ptr->id.data;
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ static void rna_Brush_reset_icon(Brush *br, const char *UNUSED(type))
|
||||
id->icon_id = 0;
|
||||
}
|
||||
|
||||
static void rna_Brush_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Brush_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Brush *br= (Brush*)ptr->data;
|
||||
WM_main_add_notifier(NC_BRUSH|NA_EDITED, br);
|
||||
@@ -145,7 +145,7 @@ static void rna_Brush_imagepaint_tool_update(Main *bmain, Scene *scene, PointerR
|
||||
rna_Brush_update(bmain, scene, ptr);
|
||||
}
|
||||
|
||||
static void rna_Brush_icon_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Brush_icon_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Brush *br= (Brush*)ptr->data;
|
||||
|
||||
@@ -258,7 +258,7 @@ static float rna_Brush_get_alpha(PointerRNA *ptr)
|
||||
return brush_alpha(me);
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Brush_direction_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Brush_direction_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
static EnumPropertyItem prop_default_items[]= {
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_depsgraph.h"
|
||||
|
||||
static void rna_cloth_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_cloth_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
|
||||
@@ -57,7 +57,7 @@ static void rna_cloth_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
WM_main_add_notifier(NC_OBJECT|ND_MODIFIER, ob);
|
||||
}
|
||||
|
||||
static void rna_cloth_pinning_changed(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_cloth_pinning_changed(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
// ClothSimSettings *settings = (ClothSimSettings*)ptr->data;
|
||||
@@ -69,7 +69,7 @@ static void rna_cloth_pinning_changed(Main *bmain, Scene *scene, PointerRNA *ptr
|
||||
WM_main_add_notifier(NC_OBJECT|ND_MODIFIER, ob);
|
||||
}
|
||||
|
||||
static void rna_cloth_reset(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_cloth_reset(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
ClothSimSettings *settings = (ClothSimSettings*)ptr->data;
|
||||
|
||||
@@ -237,7 +237,7 @@ MEM_freeN(texture_path); \
|
||||
return path;
|
||||
}
|
||||
|
||||
static void rna_ColorRamp_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_ColorRamp_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
if (ptr->id.data) {
|
||||
ID *id= ptr->id.data;
|
||||
@@ -300,7 +300,7 @@ static void rna_ColorRampElement_remove(struct ColorBand *coba, ReportList *repo
|
||||
|
||||
}
|
||||
|
||||
static void rna_Scopes_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Scopes_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Scopes *s= (Scopes*)ptr->data;
|
||||
s->ok = 0;
|
||||
|
||||
@@ -205,7 +205,7 @@ static char *rna_Constraint_path(PointerRNA *ptr)
|
||||
return BLI_sprintfN("constraints[\"%s\"]", con->name);
|
||||
}
|
||||
|
||||
static void rna_Constraint_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Constraint_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
ED_object_constraint_update(ptr->id.data);
|
||||
}
|
||||
@@ -243,7 +243,7 @@ static void rna_Constraint_ik_type_set(struct PointerRNA *ptr, int value)
|
||||
}
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Constraint_owner_space_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Constraint_owner_space_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
bConstraint *con= (bConstraint*)ptr->data;
|
||||
@@ -254,7 +254,7 @@ static EnumPropertyItem *rna_Constraint_owner_space_itemf(bContext *C, PointerRN
|
||||
return space_object_items;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Constraint_target_space_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Constraint_target_space_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
bConstraint *con= (bConstraint*)ptr->data;
|
||||
bConstraintTypeInfo *cti= constraint_get_typeinfo(con);
|
||||
|
||||
@@ -180,7 +180,7 @@ static void rna_BezTriple_ctrlpoint_set(PointerRNA *ptr, const float *values)
|
||||
bt->vec[1][2]= values[2];
|
||||
}
|
||||
|
||||
static void rna_Curve_texspace_set(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Curve_texspace_set(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Curve *cu= (Curve*)ptr->data;
|
||||
|
||||
@@ -289,7 +289,7 @@ static void rna_BPoint_array_begin(CollectionPropertyIterator *iter, PointerRNA
|
||||
rna_iterator_array_begin(iter, (void*)nu->bp, sizeof(BPoint), nu->pntsv>0 ? nu->pntsu*nu->pntsv : nu->pntsu, 0, NULL);
|
||||
}
|
||||
|
||||
static void rna_Curve_update_data_id(Main *bmain, Scene *scene, ID *id)
|
||||
static void rna_Curve_update_data_id(Main *UNUSED(bmain), Scene *UNUSED(scene), ID *id)
|
||||
{
|
||||
DAG_id_tag_update(id, 0);
|
||||
WM_main_add_notifier(NC_GEOM|ND_DATA, id);
|
||||
|
||||
@@ -446,7 +446,7 @@ BlenderRNA *RNA_create(void)
|
||||
return brna;
|
||||
}
|
||||
|
||||
void RNA_define_free(BlenderRNA *brna)
|
||||
void RNA_define_free(BlenderRNA *UNUSED(brna))
|
||||
{
|
||||
StructDefRNA *ds;
|
||||
FunctionDefRNA *dfunc;
|
||||
@@ -2562,7 +2562,7 @@ void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
|
||||
RNA_def_function_output(func, ret);
|
||||
}
|
||||
|
||||
void RNA_def_function_output(FunctionRNA *func, PropertyRNA *ret)
|
||||
void RNA_def_function_output(FunctionRNA *UNUSED(func), PropertyRNA *ret)
|
||||
{
|
||||
ret->flag|= PROP_OUTPUT;
|
||||
}
|
||||
|
||||
@@ -446,7 +446,7 @@ static void rna_FCurve_modifiers_remove(FCurve *fcu, ReportList *reports, FModif
|
||||
remove_fmodifier(&fcu->modifiers, fcm);
|
||||
}
|
||||
|
||||
static void rna_FModifier_active_set(PointerRNA *ptr, int value)
|
||||
static void rna_FModifier_active_set(PointerRNA *ptr, int UNUSED(value))
|
||||
{
|
||||
FModifier *fm= (FModifier*)ptr->data;
|
||||
|
||||
@@ -454,7 +454,7 @@ static void rna_FModifier_active_set(PointerRNA *ptr, int value)
|
||||
fm->flag |= FMODIFIER_FLAG_ACTIVE;
|
||||
}
|
||||
|
||||
static void rna_FModifier_active_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_FModifier_active_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
FModifier *fm, *fmo= (FModifier*)ptr->data;
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ static EnumPropertyItem image_source_items[]= {
|
||||
|
||||
#include "IMB_imbuf_types.h"
|
||||
|
||||
static void rna_Image_animated_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Image_animated_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Image *ima= (Image*)ptr->data;
|
||||
int nr;
|
||||
@@ -80,14 +80,14 @@ static int rna_Image_dirty_get(PointerRNA *ptr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void rna_Image_source_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Image_source_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Image *ima= ptr->id.data;
|
||||
BKE_image_signal(ima, NULL, IMA_SIGNAL_SRC_CHANGE);
|
||||
DAG_id_tag_update(&ima->id, 0);
|
||||
}
|
||||
|
||||
static void rna_Image_fields_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Image_fields_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Image *ima= ptr->id.data;
|
||||
ImBuf *ibuf;
|
||||
@@ -108,20 +108,20 @@ static void rna_Image_fields_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
BKE_image_release_ibuf(ima, lock);
|
||||
}
|
||||
|
||||
static void rna_Image_reload_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Image_reload_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Image *ima= ptr->id.data;
|
||||
BKE_image_signal(ima, NULL, IMA_SIGNAL_RELOAD);
|
||||
DAG_id_tag_update(&ima->id, 0);
|
||||
}
|
||||
|
||||
static void rna_Image_generated_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Image_generated_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Image *ima= ptr->id.data;
|
||||
BKE_image_signal(ima, NULL, IMA_SIGNAL_FREE);
|
||||
}
|
||||
|
||||
static void rna_ImageUser_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_ImageUser_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
ImageUser *iuser= ptr->data;
|
||||
|
||||
@@ -143,7 +143,7 @@ char *rna_ImageUser_path(PointerRNA *ptr)
|
||||
return BLI_strdup("");
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Image_source_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Image_source_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
Image *ima= (Image*)ptr->data;
|
||||
EnumPropertyItem *item= NULL;
|
||||
|
||||
@@ -107,7 +107,7 @@ static StructRNA* rna_Lamp_refine(struct PointerRNA *ptr)
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_Lamp_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Lamp_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
Lamp *la= ptr->id.data;
|
||||
|
||||
@@ -118,7 +118,7 @@ static void rna_Lamp_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
WM_main_add_notifier(NC_LAMP|ND_LIGHTING, la);
|
||||
}
|
||||
|
||||
static void rna_Lamp_draw_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Lamp_draw_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Lamp *la= ptr->id.data;
|
||||
|
||||
@@ -126,7 +126,7 @@ static void rna_Lamp_draw_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
WM_main_add_notifier(NC_LAMP|ND_LIGHTING_DRAW, la);
|
||||
}
|
||||
|
||||
static void rna_Lamp_sky_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Lamp_sky_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Lamp *la= ptr->id.data;
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ static void rna_Lattice_points_begin(CollectionPropertyIterator *iter, PointerRN
|
||||
rna_iterator_array_begin(iter, NULL, 0, 0, 0, NULL);
|
||||
}
|
||||
|
||||
static void rna_Lattice_update_data(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Lattice_update_data(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
ID *id= ptr->id.data;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
/* all the list begin functions are added manually here, Main is not in SDNA */
|
||||
|
||||
static int rna_Main_is_saved_get(PointerRNA *ptr)
|
||||
static int rna_Main_is_saved_get(PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
return G.relbase_valid;
|
||||
}
|
||||
@@ -50,8 +50,9 @@ static int rna_Main_is_saved_get(PointerRNA *ptr)
|
||||
static int rna_Main_is_dirty_get(PointerRNA *ptr)
|
||||
{
|
||||
/* XXX, not totally nice to do it this way, should store in main ? */
|
||||
Main *bmain= (Main*)ptr->data;
|
||||
wmWindowManager *wm;
|
||||
for(wm= G.main->wm.first; wm; wm= wm->id.next) {
|
||||
for(wm= bmain->wm.first; wm; wm= wm->id.next) {
|
||||
return !wm->file_saved;
|
||||
}
|
||||
|
||||
|
||||
@@ -84,12 +84,12 @@
|
||||
|
||||
#include "ED_screen.h"
|
||||
|
||||
Tex *rna_Main_add_texture(Main *bmain, const char *name)
|
||||
Tex *rna_Main_add_texture(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
return add_texture(name);
|
||||
}
|
||||
|
||||
Camera *rna_Main_cameras_new(Main *bmain, const char *name)
|
||||
Camera *rna_Main_cameras_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
ID *id= add_camera(name);
|
||||
id_us_min(id);
|
||||
@@ -105,7 +105,7 @@ void rna_Main_cameras_remove(Main *bmain, ReportList *reports, struct Camera *ca
|
||||
/* XXX python now has invalid pointer? */
|
||||
}
|
||||
|
||||
Scene *rna_Main_scenes_new(Main *bmain, const char *name)
|
||||
Scene *rna_Main_scenes_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
return add_scene(name);
|
||||
}
|
||||
@@ -129,7 +129,7 @@ void rna_Main_scenes_remove(Main *bmain, bContext *C, ReportList *reports, struc
|
||||
unlink_scene(bmain, scene, newscene);
|
||||
}
|
||||
|
||||
Object *rna_Main_objects_new(Main *bmain, ReportList *reports, const char *name, ID *data)
|
||||
Object *rna_Main_objects_new(Main *UNUSED(bmain), ReportList *reports, const char *name, ID *data)
|
||||
{
|
||||
Object *ob;
|
||||
int type= OB_EMPTY;
|
||||
@@ -190,7 +190,7 @@ void rna_Main_objects_remove(Main *bmain, ReportList *reports, struct Object *ob
|
||||
}
|
||||
}
|
||||
|
||||
struct Material *rna_Main_materials_new(Main *bmain, const char *name)
|
||||
struct Material *rna_Main_materials_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
ID *id= (ID *)add_material(name);
|
||||
id_us_min(id);
|
||||
@@ -206,7 +206,7 @@ void rna_Main_materials_remove(Main *bmain, ReportList *reports, struct Material
|
||||
/* XXX python now has invalid pointer? */
|
||||
}
|
||||
|
||||
struct bNodeTree *rna_Main_nodetree_new(Main *bmain, const char *name, int type)
|
||||
struct bNodeTree *rna_Main_nodetree_new(Main *UNUSED(bmain), const char *name, int type)
|
||||
{
|
||||
bNodeTree *tree = ntreeAddTree(name, type, TRUE);
|
||||
|
||||
@@ -225,7 +225,7 @@ void rna_Main_nodetree_remove(Main *bmain, ReportList *reports, struct bNodeTree
|
||||
/* XXX python now has invalid pointer? */
|
||||
}
|
||||
|
||||
Mesh *rna_Main_meshes_new(Main *bmain, const char *name)
|
||||
Mesh *rna_Main_meshes_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
Mesh *me= add_mesh(name);
|
||||
id_us_min(&me->id);
|
||||
@@ -241,7 +241,7 @@ void rna_Main_meshes_remove(Main *bmain, ReportList *reports, Mesh *mesh)
|
||||
/* XXX python now has invalid pointer? */
|
||||
}
|
||||
|
||||
Lamp *rna_Main_lamps_new(Main *bmain, const char *name, int type)
|
||||
Lamp *rna_Main_lamps_new(Main *UNUSED(bmain), const char *name, int type)
|
||||
{
|
||||
Lamp *lamp= add_lamp(name);
|
||||
lamp->type= type;
|
||||
@@ -258,14 +258,14 @@ void rna_Main_lamps_remove(Main *bmain, ReportList *reports, Lamp *lamp)
|
||||
/* XXX python now has invalid pointer? */
|
||||
}
|
||||
|
||||
Image *rna_Main_images_new(Main *bmain, const char *name, int width, int height, int alpha, int float_buffer)
|
||||
Image *rna_Main_images_new(Main *UNUSED(bmain), const char *name, int width, int height, int alpha, int float_buffer)
|
||||
{
|
||||
float color[4]= {0.0, 0.0, 0.0, 1.0};
|
||||
Image *image= BKE_add_image_size(width, height, name, alpha ? 32:24, float_buffer, 0, color);
|
||||
id_us_min(&image->id);
|
||||
return image;
|
||||
}
|
||||
Image *rna_Main_images_load(Main *bmain, ReportList *reports, const char *filepath)
|
||||
Image *rna_Main_images_load(Main *UNUSED(bmain), ReportList *reports, const char *filepath)
|
||||
{
|
||||
Image *ima;
|
||||
|
||||
@@ -287,7 +287,7 @@ void rna_Main_images_remove(Main *bmain, ReportList *reports, Image *image)
|
||||
/* XXX python now has invalid pointer? */
|
||||
}
|
||||
|
||||
Lattice *rna_Main_lattices_new(Main *bmain, const char *name)
|
||||
Lattice *rna_Main_lattices_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
Lattice *lt= add_lattice(name);
|
||||
id_us_min(<->id);
|
||||
@@ -301,7 +301,7 @@ void rna_Main_lattices_remove(Main *bmain, ReportList *reports, struct Lattice *
|
||||
BKE_reportf(reports, RPT_ERROR, "Lattice \"%s\" must have zero users to be removed, found %d.", lt->id.name+2, ID_REAL_USERS(lt));
|
||||
}
|
||||
|
||||
Curve *rna_Main_curves_new(Main *bmain, const char *name, int type)
|
||||
Curve *rna_Main_curves_new(Main *UNUSED(bmain), const char *name, int type)
|
||||
{
|
||||
Curve *cu= add_curve(name, type);
|
||||
id_us_min(&cu->id);
|
||||
@@ -315,7 +315,7 @@ void rna_Main_curves_remove(Main *bmain, ReportList *reports, struct Curve *cu)
|
||||
BKE_reportf(reports, RPT_ERROR, "Curve \"%s\" must have zero users to be removed, found %d.", cu->id.name+2, ID_REAL_USERS(cu));
|
||||
}
|
||||
|
||||
MetaBall *rna_Main_metaballs_new(Main *bmain, const char *name)
|
||||
MetaBall *rna_Main_metaballs_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
MetaBall *mb= add_mball(name);
|
||||
id_us_min(&mb->id);
|
||||
@@ -329,7 +329,7 @@ void rna_Main_metaballs_remove(Main *bmain, ReportList *reports, struct MetaBall
|
||||
BKE_reportf(reports, RPT_ERROR, "MetaBall \"%s\" must have zero users to be removed, found %d.", mb->id.name+2, ID_REAL_USERS(mb));
|
||||
}
|
||||
|
||||
VFont *rna_Main_fonts_load(Main *bmain, ReportList *reports, const char *filepath)
|
||||
VFont *rna_Main_fonts_load(Main *UNUSED(bmain), ReportList *reports, const char *filepath)
|
||||
{
|
||||
VFont *font;
|
||||
|
||||
@@ -352,7 +352,7 @@ void rna_Main_fonts_remove(Main *bmain, ReportList *reports, VFont *vfont)
|
||||
/* XXX python now has invalid pointer? */
|
||||
}
|
||||
|
||||
Tex *rna_Main_textures_new(Main *bmain, const char *name, int type)
|
||||
Tex *rna_Main_textures_new(Main *UNUSED(bmain), const char *name, int type)
|
||||
{
|
||||
Tex *tex= add_texture(name);
|
||||
tex_set_type(tex, type);
|
||||
@@ -367,7 +367,7 @@ void rna_Main_textures_remove(Main *bmain, ReportList *reports, struct Tex *tex)
|
||||
BKE_reportf(reports, RPT_ERROR, "Texture \"%s\" must have zero users to be removed, found %d.", tex->id.name+2, ID_REAL_USERS(tex));
|
||||
}
|
||||
|
||||
Brush *rna_Main_brushes_new(Main *bmain, const char *name)
|
||||
Brush *rna_Main_brushes_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
Brush *brush = add_brush(name);
|
||||
id_us_min(&brush->id);
|
||||
@@ -381,7 +381,7 @@ void rna_Main_brushes_remove(Main *bmain, ReportList *reports, struct Brush *bru
|
||||
BKE_reportf(reports, RPT_ERROR, "Brush \"%s\" must have zero users to be removed, found %d.", brush->id.name+2, ID_REAL_USERS(brush));
|
||||
}
|
||||
|
||||
World *rna_Main_worlds_new(Main *bmain, const char *name)
|
||||
World *rna_Main_worlds_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
World *world = add_world(name);
|
||||
id_us_min(&world->id);
|
||||
@@ -395,7 +395,7 @@ void rna_Main_worlds_remove(Main *bmain, ReportList *reports, struct World *worl
|
||||
BKE_reportf(reports, RPT_ERROR, "World \"%s\" must have zero users to be removed, found %d.", world->id.name+2, ID_REAL_USERS(world));
|
||||
}
|
||||
|
||||
Group *rna_Main_groups_new(Main *bmain, const char *name)
|
||||
Group *rna_Main_groups_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
return add_group(name);
|
||||
}
|
||||
@@ -406,7 +406,7 @@ void rna_Main_groups_remove(Main *bmain, Group *group)
|
||||
/* XXX python now has invalid pointer? */
|
||||
}
|
||||
|
||||
Text *rna_Main_texts_new(Main *bmain, const char *name)
|
||||
Text *rna_Main_texts_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
return add_empty_text(name);
|
||||
}
|
||||
@@ -430,7 +430,7 @@ Text *rna_Main_texts_load(Main *bmain, ReportList *reports, const char *filepath
|
||||
return txt;
|
||||
}
|
||||
|
||||
bArmature *rna_Main_armatures_new(Main *bmain, const char *name)
|
||||
bArmature *rna_Main_armatures_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
bArmature *arm= add_armature(name);
|
||||
id_us_min(&arm->id);
|
||||
@@ -446,7 +446,7 @@ void rna_Main_armatures_remove(Main *bmain, ReportList *reports, bArmature *arm)
|
||||
/* XXX python now has invalid pointer? */
|
||||
}
|
||||
|
||||
bAction *rna_Main_actions_new(Main *bmain, const char *name)
|
||||
bAction *rna_Main_actions_new(Main *UNUSED(bmain), const char *name)
|
||||
{
|
||||
bAction *act= add_empty_action(name);
|
||||
id_us_min(&act->id);
|
||||
|
||||
@@ -89,7 +89,7 @@ EnumPropertyItem ramp_blend_items[] = {
|
||||
|
||||
#include "ED_node.h"
|
||||
|
||||
static void rna_Material_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Material_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
Material *ma= ptr->id.data;
|
||||
|
||||
@@ -100,7 +100,7 @@ static void rna_Material_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
WM_main_add_notifier(NC_MATERIAL|ND_SHADING, ma);
|
||||
}
|
||||
|
||||
static void rna_Material_draw_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Material_draw_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Material *ma= ptr->id.data;
|
||||
|
||||
@@ -272,7 +272,7 @@ static void rna_Material_use_nodes_set(PointerRNA *ptr, int value)
|
||||
ED_node_shader_default(ma);
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Material_texture_coordinates_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Material_texture_coordinates_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
Material *ma= (Material*)ptr->id.data;
|
||||
EnumPropertyItem *item= NULL;
|
||||
|
||||
@@ -217,7 +217,7 @@ static char *rna_Modifier_path(PointerRNA *ptr)
|
||||
return BLI_sprintfN("modifiers[\"%s\"]", ((ModifierData*)ptr->data)->name);
|
||||
}
|
||||
|
||||
static void rna_Modifier_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Modifier_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
DAG_id_tag_update(ptr->id.data, OB_RECALC_DATA);
|
||||
WM_main_add_notifier(NC_OBJECT|ND_MODIFIER, ptr->id.data);
|
||||
|
||||
@@ -94,7 +94,7 @@ static char *rna_NlaStrip_path(PointerRNA *ptr)
|
||||
return "";
|
||||
}
|
||||
|
||||
static void rna_NlaStrip_transform_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_NlaStrip_transform_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
NlaStrip *strip= (NlaStrip*)ptr->data;
|
||||
|
||||
@@ -273,7 +273,7 @@ static void rna_NlaStrip_animated_time_set(PointerRNA *ptr, int value)
|
||||
data->flag &= ~NLASTRIP_FLAG_USR_TIME;
|
||||
}
|
||||
|
||||
static NlaStrip *rna_NlaStrip_new(NlaTrack *track, bContext *C, ReportList *reports, const char *name, int start, bAction *action)
|
||||
static NlaStrip *rna_NlaStrip_new(NlaTrack *track, bContext *C, ReportList *reports, const char *UNUSED(name), int start, bAction *action)
|
||||
{
|
||||
NlaStrip *strip = add_nlastrip(action);
|
||||
|
||||
|
||||
@@ -257,7 +257,7 @@ static void rna_Node_scene_set(PointerRNA *ptr, PointerRNA value)
|
||||
|
||||
|
||||
|
||||
static void node_update(Main *bmain, Scene *scene, bNodeTree *ntree, bNode *node)
|
||||
static void node_update(Main *bmain, Scene *UNUSED(scene), bNodeTree *ntree, bNode *node)
|
||||
{
|
||||
ED_node_generic_update(bmain, ntree, node);
|
||||
}
|
||||
@@ -367,7 +367,7 @@ static EnumPropertyItem *renderresult_layers_add_enum(RenderLayer *rl)
|
||||
return item;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Node_image_layer_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Node_image_layer_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
bNode *node= (bNode*)ptr->data;
|
||||
Image *ima = (Image *)node->id;
|
||||
@@ -384,7 +384,7 @@ static EnumPropertyItem *rna_Node_image_layer_itemf(bContext *C, PointerRNA *ptr
|
||||
return item;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Node_scene_layer_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Node_scene_layer_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
bNode *node= (bNode*)ptr->data;
|
||||
Scene *sce = (Scene *)node->id;
|
||||
@@ -401,7 +401,7 @@ static EnumPropertyItem *rna_Node_scene_layer_itemf(bContext *C, PointerRNA *ptr
|
||||
return item;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Node_channel_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Node_channel_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
bNode *node= (bNode*)ptr->data;
|
||||
EnumPropertyItem *item= NULL;
|
||||
@@ -451,7 +451,7 @@ static EnumPropertyItem *rna_Node_channel_itemf(bContext *C, PointerRNA *ptr, Pr
|
||||
return item;
|
||||
}
|
||||
|
||||
static bNode *rna_NodeTree_node_new(bNodeTree *ntree, bContext *C, ReportList *reports, int type, bNodeTree *group)
|
||||
static bNode *rna_NodeTree_node_new(bNodeTree *ntree, bContext *UNUSED(C), ReportList *reports, int type, bNodeTree *group)
|
||||
{
|
||||
bNode *node;
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ EnumPropertyItem object_type_curve_items[] = {
|
||||
#include "ED_curve.h"
|
||||
#include "ED_lattice.h"
|
||||
|
||||
static void rna_Object_internal_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Object_internal_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
DAG_id_tag_update(ptr->id.data, OB_RECALC_OB);
|
||||
}
|
||||
@@ -214,7 +214,7 @@ static void rna_Object_matrix_basis_set(PointerRNA *ptr, const float values[16])
|
||||
object_apply_mat4(ob, (float(*)[4])values, FALSE, FALSE);
|
||||
}
|
||||
|
||||
void rna_Object_internal_update_data(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
void rna_Object_internal_update_data(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
DAG_id_tag_update(ptr->id.data, OB_RECALC_DATA);
|
||||
WM_main_add_notifier(NC_OBJECT|ND_DRAW, ptr->id.data);
|
||||
@@ -254,14 +254,14 @@ static void rna_Object_dependency_update(Main *bmain, Scene *scene, PointerRNA *
|
||||
}
|
||||
|
||||
/* when changing the selection flag the scene needs updating */
|
||||
static void rna_Object_select_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Object_select_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
short mode = ob->flag & SELECT ? BA_SELECT : BA_DESELECT;
|
||||
ED_base_object_select(object_in_scene(ob, scene), mode);
|
||||
}
|
||||
|
||||
static void rna_Base_select_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Base_select_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Base *base= (Base*)ptr->data;
|
||||
short mode = base->flag & BA_SELECT ? BA_SELECT : BA_DESELECT;
|
||||
@@ -380,7 +380,7 @@ static void rna_Object_parent_type_set(PointerRNA *ptr, int value)
|
||||
ED_object_parent(ob, ob->parent, value, ob->parsubstr);
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Object_parent_type_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Object_parent_type_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
Object *ob= (Object*)ptr->data;
|
||||
EnumPropertyItem *item= NULL;
|
||||
@@ -411,7 +411,7 @@ static EnumPropertyItem *rna_Object_parent_type_itemf(bContext *C, PointerRNA *p
|
||||
return item;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Object_collision_bounds_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Object_collision_bounds_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
Object *ob= (Object*)ptr->data;
|
||||
EnumPropertyItem *item= NULL;
|
||||
@@ -637,7 +637,7 @@ static void rna_Object_active_particle_system_index_set(PointerRNA *ptr, int val
|
||||
psys_set_current_num(ob, value);
|
||||
}
|
||||
|
||||
static void rna_Object_particle_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Object_particle_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
|
||||
@@ -1187,27 +1187,27 @@ static float rna_VertexGroup_weight(ID *id, bDeformGroup *dg, ReportList *report
|
||||
}
|
||||
|
||||
/* generic poll functions */
|
||||
int rna_Lattice_object_poll(PointerRNA *ptr, PointerRNA value)
|
||||
int rna_Lattice_object_poll(PointerRNA *UNUSED(ptr), PointerRNA value)
|
||||
{
|
||||
return ((Object *)value.id.data)->type == OB_LATTICE;
|
||||
}
|
||||
|
||||
int rna_Curve_object_poll(PointerRNA *ptr, PointerRNA value)
|
||||
int rna_Curve_object_poll(PointerRNA *UNUSED(ptr), PointerRNA value)
|
||||
{
|
||||
return ((Object *)value.id.data)->type == OB_CURVE;
|
||||
}
|
||||
|
||||
int rna_Armature_object_poll(PointerRNA *ptr, PointerRNA value)
|
||||
int rna_Armature_object_poll(PointerRNA *UNUSED(ptr), PointerRNA value)
|
||||
{
|
||||
return ((Object *)value.id.data)->type == OB_ARMATURE;
|
||||
}
|
||||
|
||||
int rna_Mesh_object_poll(PointerRNA *ptr, PointerRNA value)
|
||||
int rna_Mesh_object_poll(PointerRNA *UNUSED(ptr), PointerRNA value)
|
||||
{
|
||||
return ((Object *)value.id.data)->type == OB_MESH;
|
||||
}
|
||||
|
||||
int rna_Camera_object_poll(PointerRNA *ptr, PointerRNA value)
|
||||
int rna_Camera_object_poll(PointerRNA *UNUSED(ptr), PointerRNA value)
|
||||
{
|
||||
return ((Object *)value.id.data)->type == OB_CAMERA;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ EnumPropertyItem empty_vortex_shape_items[] = {
|
||||
|
||||
#include "ED_object.h"
|
||||
|
||||
static void rna_Cache_change(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Cache_change(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Object *ob = (Object*)ptr->id.data;
|
||||
PointCache *cache = (PointCache*)ptr->data;
|
||||
@@ -132,7 +132,7 @@ static void rna_Cache_change(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
BLI_freelistN(&pidlist);
|
||||
}
|
||||
|
||||
static void rna_Cache_toggle_disk_cache(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Cache_toggle_disk_cache(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Object *ob = (Object*)ptr->id.data;
|
||||
PointCache *cache = (PointCache*)ptr->data;
|
||||
@@ -158,7 +158,7 @@ static void rna_Cache_toggle_disk_cache(Main *bmain, Scene *scene, PointerRNA *p
|
||||
BLI_freelistN(&pidlist);
|
||||
}
|
||||
|
||||
static void rna_Cache_idname_change(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Cache_idname_change(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Object *ob = (Object*)ptr->id.data;
|
||||
PointCache *cache = (PointCache*)ptr->data;
|
||||
@@ -320,7 +320,7 @@ static void rna_PointCache_frame_step_range(PointerRNA *ptr, int *min, int *max)
|
||||
BLI_freelistN(&pidlist);
|
||||
}
|
||||
|
||||
static char *rna_CollisionSettings_path(PointerRNA *ptr)
|
||||
static char *rna_CollisionSettings_path(PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
/* both methods work ok, but return the shorter path */
|
||||
#if 0
|
||||
@@ -481,7 +481,7 @@ static int particle_id_check(PointerRNA *ptr)
|
||||
return (GS(id->name) == ID_PA);
|
||||
}
|
||||
|
||||
static void rna_FieldSettings_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_FieldSettings_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
if(particle_id_check(ptr)) {
|
||||
ParticleSettings *part = (ParticleSettings*)ptr->id.data;
|
||||
@@ -587,7 +587,7 @@ static char *rna_FieldSettings_path(PointerRNA *ptr)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void rna_EffectorWeight_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_EffectorWeight_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
DAG_id_tag_update((ID*)ptr->id.data, OB_RECALC_DATA|PSYS_RECALC_RESET);
|
||||
|
||||
@@ -661,7 +661,7 @@ static void rna_CollisionSettings_dependency_update(Main *bmain, Scene *scene, P
|
||||
WM_main_add_notifier(NC_OBJECT|ND_DRAW, ob);
|
||||
}
|
||||
|
||||
static void rna_CollisionSettings_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_CollisionSettings_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
|
||||
@@ -669,7 +669,7 @@ static void rna_CollisionSettings_update(Main *bmain, Scene *scene, PointerRNA *
|
||||
WM_main_add_notifier(NC_OBJECT|ND_DRAW, ob);
|
||||
}
|
||||
|
||||
static void rna_softbody_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_softbody_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Object *ob= (Object*)ptr->id.data;
|
||||
|
||||
@@ -678,7 +678,7 @@ static void rna_softbody_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
}
|
||||
|
||||
|
||||
static EnumPropertyItem *rna_Effector_shape_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Effector_shape_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
Object *ob= NULL;
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ static void rna_ParticleHairKey_location_object_set(PointerRNA *ptr, const float
|
||||
}
|
||||
|
||||
/* property update functions */
|
||||
static void particle_recalc(Main *bmain, Scene *scene, PointerRNA *ptr, short flag)
|
||||
static void particle_recalc(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr, short flag)
|
||||
{
|
||||
if(ptr->type==&RNA_ParticleSystem) {
|
||||
ParticleSystem *psys = (ParticleSystem*)ptr->data;
|
||||
@@ -325,7 +325,7 @@ static void rna_Particle_target_reset(Main *bmain, Scene *scene, PointerRNA *ptr
|
||||
WM_main_add_notifier(NC_OBJECT|ND_PARTICLE|NA_EDITED, NULL);
|
||||
}
|
||||
|
||||
static void rna_Particle_target_redo(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Particle_target_redo(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
if(ptr->type==&RNA_ParticleTarget) {
|
||||
Object *ob = (Object*)ptr->id.data;
|
||||
@@ -702,7 +702,7 @@ static void rna_ParticleDupliWeight_name_get(PointerRNA *ptr, char *str)
|
||||
strcpy(str, "No object");
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Particle_from_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Particle_from_itemf(bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
//if(part->type==PART_REACTOR)
|
||||
// return part_reactor_from_items;
|
||||
@@ -710,7 +710,7 @@ static EnumPropertyItem *rna_Particle_from_itemf(bContext *C, PointerRNA *ptr, P
|
||||
return part_from_items;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Particle_dist_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Particle_dist_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
ParticleSettings *part = ptr->id.data;
|
||||
|
||||
@@ -720,7 +720,7 @@ static EnumPropertyItem *rna_Particle_dist_itemf(bContext *C, PointerRNA *ptr, P
|
||||
return part_dist_items;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Particle_draw_as_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Particle_draw_as_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
ParticleSettings *part = ptr->id.data;
|
||||
|
||||
@@ -730,7 +730,7 @@ static EnumPropertyItem *rna_Particle_draw_as_itemf(bContext *C, PointerRNA *ptr
|
||||
return part_draw_as_items;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_Particle_ren_as_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_Particle_ren_as_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
ParticleSettings *part = ptr->id.data;
|
||||
|
||||
|
||||
@@ -71,14 +71,14 @@
|
||||
|
||||
#include "RNA_access.h"
|
||||
|
||||
static void rna_Pose_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Pose_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
// XXX when to use this? ob->pose->flag |= (POSE_LOCKED|POSE_DO_UNLOCK);
|
||||
|
||||
DAG_id_tag_update(ptr->id.data, OB_RECALC_DATA);
|
||||
}
|
||||
|
||||
static void rna_Pose_IK_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Pose_IK_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
// XXX when to use this? ob->pose->flag |= (POSE_LOCKED|POSE_DO_UNLOCK);
|
||||
Object *ob= ptr->id.data;
|
||||
@@ -254,7 +254,7 @@ static StructRNA *rna_Pose_ikparam_typef(PointerRNA *ptr)
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_Itasc_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Itasc_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Object *ob = ptr->id.data;
|
||||
bItasc *itasc = ptr->data;
|
||||
|
||||
@@ -101,7 +101,7 @@ static void engine_render(RenderEngine *engine, struct Scene *scene)
|
||||
RNA_parameter_list_free(&list);
|
||||
}
|
||||
|
||||
static void rna_RenderEngine_unregister(Main *bmain, StructRNA *type)
|
||||
static void rna_RenderEngine_unregister(Main *UNUSED(bmain), StructRNA *type)
|
||||
{
|
||||
RenderEngineType *et= RNA_struct_blender_type_get(type);
|
||||
|
||||
|
||||
@@ -330,7 +330,7 @@ static void rna_Scene_layer_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
DAG_on_visible_update(bmain, FALSE);
|
||||
}
|
||||
|
||||
static void rna_Scene_framelen_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Scene_framelen_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
scene->r.framelen= (float)scene->r.framapto/(float)scene->r.images;
|
||||
}
|
||||
@@ -410,7 +410,7 @@ static void rna_Scene_preview_range_end_frame_set(PointerRNA *ptr, int value)
|
||||
data->r.pefra= value;
|
||||
}
|
||||
|
||||
static void rna_Scene_frame_update(bContext *C, PointerRNA *ptr)
|
||||
static void rna_Scene_frame_update(bContext *C, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
//Scene *scene= ptr->id.data;
|
||||
//ED_update_for_newframe(C);
|
||||
@@ -482,7 +482,7 @@ static void rna_Scene_all_keyingsets_next(CollectionPropertyIterator *iter)
|
||||
}
|
||||
|
||||
|
||||
static char *rna_RenderSettings_path(PointerRNA *ptr)
|
||||
static char *rna_RenderSettings_path(PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
return BLI_sprintfN("render");
|
||||
}
|
||||
@@ -711,7 +711,7 @@ static void rna_RenderSettings_engine_set(PointerRNA *ptr, int value)
|
||||
BLI_strncpy(rd->engine, type->idname, sizeof(rd->engine));
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_RenderSettings_engine_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_RenderSettings_engine_itemf(bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
RenderEngineType *type;
|
||||
EnumPropertyItem *item= NULL;
|
||||
@@ -744,14 +744,14 @@ static int rna_RenderSettings_engine_get(PointerRNA *ptr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void rna_Scene_glsl_update(Main *bmain, Scene *UNUSED(scene_unused), PointerRNA *ptr)
|
||||
static void rna_Scene_glsl_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Scene *scene= (Scene*)ptr->id.data;
|
||||
|
||||
DAG_id_tag_update(&scene->id, 0);
|
||||
}
|
||||
|
||||
static void rna_RenderSettings_color_management_update(Main *bmain, Scene *UNUSED(scene_unused), PointerRNA *ptr)
|
||||
static void rna_RenderSettings_color_management_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
/* reset image nodes */
|
||||
Scene *scene= (Scene*)ptr->id.data;
|
||||
@@ -796,7 +796,7 @@ static void rna_SceneRenderLayer_name_set(PointerRNA *ptr, const char *value)
|
||||
}
|
||||
}
|
||||
|
||||
static int rna_RenderSettings_multiple_engines_get(PointerRNA *ptr)
|
||||
static int rna_RenderSettings_multiple_engines_get(PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
return (BLI_countlist(&R_engines) > 1);
|
||||
}
|
||||
@@ -819,7 +819,7 @@ static void rna_SceneRenderLayer_layer_set(PointerRNA *ptr, const int *values)
|
||||
rl->lay= ED_view3d_scene_layer_set(rl->lay, values, NULL);
|
||||
}
|
||||
|
||||
static void rna_SceneRenderLayer_pass_update(Main *bmain, Scene *UNUSED(scene_unused), PointerRNA *ptr)
|
||||
static void rna_SceneRenderLayer_pass_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Scene *scene= (Scene*)ptr->id.data;
|
||||
|
||||
@@ -836,7 +836,7 @@ static void rna_Scene_use_nodes_set(PointerRNA *ptr, int value)
|
||||
ED_node_composit_default(scene);
|
||||
}
|
||||
|
||||
static void rna_Physics_update(Main *bmain, Scene *UNUSED(scene_unused), PointerRNA *ptr)
|
||||
static void rna_Physics_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Scene *scene= (Scene*)ptr->id.data;
|
||||
Base *base;
|
||||
@@ -864,7 +864,7 @@ static void rna_Scene_editmesh_select_mode_set(PointerRNA *ptr, const int *value
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_Scene_editmesh_select_mode_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Scene_editmesh_select_mode_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
Mesh *me= NULL;
|
||||
|
||||
@@ -898,7 +898,7 @@ static void object_simplify_update(Object *ob)
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_Scene_use_simplify_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Scene_use_simplify_update(Main *bmain, Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
Scene *sce_iter;
|
||||
Base *base;
|
||||
@@ -960,7 +960,7 @@ static void rna_Scene_sync_mode_set(PointerRNA *ptr, int value)
|
||||
}
|
||||
}
|
||||
|
||||
static int rna_GameSettings_auto_start_get(PointerRNA *ptr)
|
||||
static int rna_GameSettings_auto_start_get(PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
if (G.fileflags & G_FILE_AUTOPLAY)
|
||||
return 1;
|
||||
@@ -968,7 +968,7 @@ static int rna_GameSettings_auto_start_get(PointerRNA *ptr)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void rna_GameSettings_auto_start_set(PointerRNA *ptr, int value)
|
||||
static void rna_GameSettings_auto_start_set(PointerRNA *UNUSED(ptr), int value)
|
||||
{
|
||||
if(value)
|
||||
G.fileflags |= G_FILE_AUTOPLAY;
|
||||
|
||||
@@ -95,7 +95,7 @@ static PointerRNA rna_ParticleBrush_curve_get(PointerRNA *ptr)
|
||||
return rna_pointer_inherit_refine(ptr, &RNA_CurveMapping, NULL);
|
||||
}
|
||||
|
||||
static void rna_ParticleEdit_redo(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_ParticleEdit_redo(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
Object *ob= (scene->basact)? scene->basact->object: NULL;
|
||||
PTCacheEdit *edit = PE_get_current(scene, ob);
|
||||
@@ -106,7 +106,7 @@ static void rna_ParticleEdit_redo(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
psys_free_path_cache(edit->psys, edit);
|
||||
}
|
||||
|
||||
static void rna_ParticleEdit_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_ParticleEdit_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
Object *ob= (scene->basact)? scene->basact->object: NULL;
|
||||
|
||||
@@ -127,7 +127,7 @@ static void rna_ParticleEdit_tool_set(PointerRNA *ptr, int value)
|
||||
|
||||
pset->brushtype = value;
|
||||
}
|
||||
static EnumPropertyItem *rna_ParticleEdit_tool_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_ParticleEdit_tool_itemf(bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
Scene *scene= CTX_data_scene(C);
|
||||
Object *ob= (scene->basact)? scene->basact->object: NULL;
|
||||
@@ -184,7 +184,7 @@ static int rna_Brush_mode_poll(PointerRNA *ptr, PointerRNA value)
|
||||
return brush->ob_mode & mode;
|
||||
}
|
||||
|
||||
static void rna_Sculpt_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Sculpt_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
Object *ob= (scene->basact)? scene->basact->object: NULL;
|
||||
|
||||
|
||||
@@ -551,7 +551,7 @@ static void rna_SequenceElement_filename_set(PointerRNA *ptr, const char *value)
|
||||
BLI_strncpy(elem->name, name, sizeof(elem->name));
|
||||
}*/
|
||||
|
||||
static void rna_Sequence_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Sequence_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
Editing *ed= seq_give_editing(scene, FALSE);
|
||||
|
||||
@@ -561,7 +561,7 @@ static void rna_Sequence_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
seq_update_sound(scene, ptr->data);
|
||||
}
|
||||
|
||||
static void rna_Sequence_update_reopen_files(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Sequence_update_reopen_files(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
Editing *ed= seq_give_editing(scene, FALSE);
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
#include "BKE_particle.h"
|
||||
|
||||
|
||||
static void rna_Smoke_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Smoke_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
DAG_id_tag_update(ptr->id.data, OB_RECALC_DATA);
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ static void rna_SpaceView3D_layer_set(PointerRNA *ptr, const int *values)
|
||||
v3d->lay= ED_view3d_scene_layer_set(v3d->lay, values, &v3d->layact);
|
||||
}
|
||||
|
||||
static void rna_SpaceView3D_layer_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceView3D_layer_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
DAG_on_visible_update(bmain, FALSE);
|
||||
}
|
||||
@@ -375,7 +375,7 @@ static PointerRNA rna_SpaceView3D_region_quadview_get(PointerRNA *ptr)
|
||||
return rna_pointer_inherit_refine(ptr, &RNA_RegionView3D, regiondata);
|
||||
}
|
||||
|
||||
static void rna_RegionView3D_quadview_update(Main *main, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_RegionView3D_quadview_update(Main *UNUSED(main), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
ScrArea *sa;
|
||||
ARegion *ar;
|
||||
@@ -386,7 +386,7 @@ static void rna_RegionView3D_quadview_update(Main *main, Scene *scene, PointerRN
|
||||
}
|
||||
|
||||
/* same as above but call clip==TRUE */
|
||||
static void rna_RegionView3D_quadview_clip_update(Main *main, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_RegionView3D_quadview_clip_update(Main *UNUSED(main), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
ScrArea *sa;
|
||||
ARegion *ar;
|
||||
@@ -434,7 +434,7 @@ static PointerRNA rna_SpaceImageEditor_uvedit_get(PointerRNA *ptr)
|
||||
return rna_pointer_inherit_refine(ptr, &RNA_SpaceUVEditor, ptr->data);
|
||||
}
|
||||
|
||||
static void rna_SpaceImageEditor_paint_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceImageEditor_paint_update(Main *bmain, Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
paint_init(&scene->toolsettings->imapaint.paint, PAINT_CURSOR_TEXTURE_PAINT);
|
||||
|
||||
@@ -468,7 +468,7 @@ static void rna_SpaceImageEditor_image_set(PointerRNA *ptr, PointerRNA value)
|
||||
ED_space_image_set(NULL, sima, sc->scene, sc->scene->obedit, (Image*)value.data);
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_SpaceImageEditor_draw_channels_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_SpaceImageEditor_draw_channels_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
SpaceImage *sima= (SpaceImage*)ptr->data;
|
||||
EnumPropertyItem *item= NULL;
|
||||
@@ -548,7 +548,7 @@ static void rna_SpaceImageEditor_cursor_location_set(PointerRNA *ptr, const floa
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_SpaceImageEditor_curves_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceImageEditor_curves_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
SpaceImage *sima= (SpaceImage*)ptr->data;
|
||||
ImBuf *ibuf;
|
||||
@@ -562,7 +562,7 @@ static void rna_SpaceImageEditor_curves_update(Main *bmain, Scene *scene, Pointe
|
||||
WM_main_add_notifier(NC_IMAGE, sima->image);
|
||||
}
|
||||
|
||||
static void rna_SpaceImageEditor_scopes_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceImageEditor_scopes_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
SpaceImage *sima= (SpaceImage*)ptr->data;
|
||||
ImBuf *ibuf;
|
||||
@@ -594,7 +594,7 @@ static void rna_SpaceTextEditor_text_set(PointerRNA *ptr, PointerRNA value)
|
||||
st->top= 0;
|
||||
}
|
||||
|
||||
static void rna_SpaceTextEditor_updateEdited(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceTextEditor_updateEdited(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
SpaceText *st= (SpaceText*)ptr->data;
|
||||
|
||||
@@ -622,7 +622,7 @@ static StructRNA *rna_SpaceProperties_pin_id_typef(PointerRNA *ptr)
|
||||
return &RNA_ID;
|
||||
}
|
||||
|
||||
static void rna_SpaceProperties_pin_id_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceProperties_pin_id_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
SpaceButs *sbuts= (SpaceButs*)(ptr->data);
|
||||
ID *id = sbuts->pinid;
|
||||
@@ -736,7 +736,7 @@ static void rna_SpaceDopeSheetEditor_action_set(PointerRNA *ptr, PointerRNA valu
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_SpaceDopeSheetEditor_action_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceDopeSheetEditor_action_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
SpaceAction *saction= (SpaceAction*)(ptr->data);
|
||||
Object *obact= (scene->basact)? scene->basact->object: NULL;
|
||||
@@ -770,7 +770,7 @@ static void rna_SpaceDopeSheetEditor_action_update(Main *bmain, Scene *scene, Po
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_SpaceDopeSheetEditor_mode_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceDopeSheetEditor_mode_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
{
|
||||
SpaceAction *saction= (SpaceAction*)(ptr->data);
|
||||
Object *obact= (scene->basact)? scene->basact->object: NULL;
|
||||
@@ -804,7 +804,7 @@ static void rna_SpaceDopeSheetEditor_mode_update(Main *bmain, Scene *scene, Poin
|
||||
|
||||
/* Space Graph Editor */
|
||||
|
||||
static void rna_SpaceGraphEditor_display_mode_update(bContext *C, PointerRNA *ptr)
|
||||
static void rna_SpaceGraphEditor_display_mode_update(bContext *C, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
//SpaceIpo *sipo= (SpaceIpo*)(ptr->data);
|
||||
ScrArea *sa= CTX_wm_area(C);
|
||||
@@ -840,7 +840,7 @@ static void rna_BackgroundImage_opacity_set(PointerRNA *ptr, float value)
|
||||
bgpic->blend = 1.0f - value;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_SpaceProperties_texture_context_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_SpaceProperties_texture_context_itemf(bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), int *free)
|
||||
{
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
|
||||
@@ -148,7 +148,7 @@ static void panel_draw_header(const bContext *C, Panel *pnl)
|
||||
RNA_parameter_list_free(&list);
|
||||
}
|
||||
|
||||
static void rna_Panel_unregister(Main *bmain, StructRNA *type)
|
||||
static void rna_Panel_unregister(Main *UNUSED(bmain), StructRNA *type)
|
||||
{
|
||||
ARegionType *art;
|
||||
PanelType *pt= RNA_struct_blender_type_get(type);
|
||||
@@ -261,7 +261,7 @@ static void header_draw(const bContext *C, Header *hdr)
|
||||
RNA_parameter_list_free(&list);
|
||||
}
|
||||
|
||||
static void rna_Header_unregister(Main *bmain, StructRNA *type)
|
||||
static void rna_Header_unregister(Main *UNUSED(bmain), StructRNA *type)
|
||||
{
|
||||
ARegionType *art;
|
||||
HeaderType *ht= RNA_struct_blender_type_get(type);
|
||||
@@ -380,7 +380,7 @@ static void menu_draw(const bContext *C, Menu *hdr)
|
||||
RNA_parameter_list_free(&list);
|
||||
}
|
||||
|
||||
static void rna_Menu_unregister(Main *bmain, StructRNA *type)
|
||||
static void rna_Menu_unregister(Main *UNUSED(bmain), StructRNA *type)
|
||||
{
|
||||
MenuType *mt= RNA_struct_blender_type_get(type);
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
#include "MEM_guardedalloc.h"
|
||||
#include "MEM_CacheLimiterC-Api.h"
|
||||
|
||||
static void rna_userdef_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_userdef_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
WM_main_add_notifier(NC_WINDOW, NULL);
|
||||
}
|
||||
@@ -97,7 +97,7 @@ static void rna_userdef_show_manipulator_update(Main *bmain, Scene *scene, Point
|
||||
}
|
||||
|
||||
|
||||
static void rna_userdef_script_autoexec_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_userdef_script_autoexec_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
UserDef *userdef = (UserDef*)ptr->data;
|
||||
if (userdef->flag & USER_SCRIPT_AUTOEXEC_DISABLE) G.f &= ~G_SCRIPT_AUTOEXEC;
|
||||
@@ -212,12 +212,12 @@ static PointerRNA rna_UserDef_system_get(PointerRNA *ptr)
|
||||
return rna_pointer_inherit_refine(ptr, &RNA_UserPreferencesSystem, ptr->data);
|
||||
}
|
||||
|
||||
static void rna_UserDef_audio_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_UserDef_audio_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
sound_init(bmain);
|
||||
}
|
||||
|
||||
static void rna_Userdef_memcache_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_Userdef_memcache_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
MEM_CacheLimiter_set_maximum(U.memcachelimit * 1024 * 1024);
|
||||
}
|
||||
@@ -263,13 +263,13 @@ static void rna_userdef_addon_remove(bAddon *bext)
|
||||
BLI_freelinkN(&U.addons, bext);
|
||||
}
|
||||
|
||||
static void rna_userdef_temp_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_userdef_temp_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
extern char btempdir[];
|
||||
BLI_where_is_temp(btempdir, FILE_MAX, 1);
|
||||
}
|
||||
|
||||
static void rna_userdef_text_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_userdef_text_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
BLF_cache_clear();
|
||||
WM_main_add_notifier(NC_WINDOW, NULL);
|
||||
|
||||
@@ -467,7 +467,7 @@ static void rna_wmKeyMapItem_map_type_set(PointerRNA *ptr, int value)
|
||||
}
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_KeyMapItem_type_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_KeyMapItem_type_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
int map_type= rna_wmKeyMapItem_map_type_get(ptr);
|
||||
|
||||
@@ -477,7 +477,7 @@ static EnumPropertyItem *rna_KeyMapItem_type_itemf(bContext *C, PointerRNA *ptr,
|
||||
else return event_type_items;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_KeyMapItem_value_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_KeyMapItem_value_itemf(bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
int map_type= rna_wmKeyMapItem_map_type_get(ptr);
|
||||
|
||||
@@ -486,7 +486,7 @@ static EnumPropertyItem *rna_KeyMapItem_value_itemf(bContext *C, PointerRNA *ptr
|
||||
else return event_value_items;
|
||||
}
|
||||
|
||||
static EnumPropertyItem *rna_KeyMapItem_propvalue_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *free)
|
||||
static EnumPropertyItem *rna_KeyMapItem_propvalue_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *UNUSED(prop), int *UNUSED(free))
|
||||
{
|
||||
wmWindowManager *wm = CTX_wm_manager(C);
|
||||
wmKeyConfig *kc;
|
||||
@@ -568,7 +568,7 @@ static PointerRNA rna_WindowManager_active_keyconfig_get(PointerRNA *ptr)
|
||||
return rna_pointer_inherit_refine(ptr, &RNA_KeyConfig, kc);
|
||||
}
|
||||
|
||||
static void rna_WindowManager_active_keyconfig_set(PointerRNA *ptr, PointerRNA value)
|
||||
static void rna_WindowManager_active_keyconfig_set(PointerRNA *UNUSED(ptr), PointerRNA value)
|
||||
{
|
||||
wmKeyConfig *kc= value.data;
|
||||
|
||||
@@ -631,7 +631,7 @@ static int rna_KeyMapItem_userdefined_get(PointerRNA *ptr)
|
||||
return kmi->id < 0;
|
||||
}
|
||||
|
||||
static void rna_wmClipboard_get(PointerRNA *ptr, char *value)
|
||||
static void rna_wmClipboard_get(PointerRNA *UNUSED(ptr), char *value)
|
||||
{
|
||||
char *pbuf;
|
||||
|
||||
@@ -645,7 +645,7 @@ static void rna_wmClipboard_get(PointerRNA *ptr, char *value)
|
||||
}
|
||||
}
|
||||
|
||||
static int rna_wmClipboard_length(PointerRNA *ptr)
|
||||
static int rna_wmClipboard_length(PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
char *pbuf;
|
||||
int length;
|
||||
@@ -663,7 +663,7 @@ static int rna_wmClipboard_length(PointerRNA *ptr)
|
||||
return length;
|
||||
}
|
||||
|
||||
static void rna_wmClipboard_set(PointerRNA *ptr, const char *value)
|
||||
static void rna_wmClipboard_set(PointerRNA *UNUSED(ptr), const char *value)
|
||||
{
|
||||
WM_clipboard_text_set((void *) value, FALSE);
|
||||
}
|
||||
@@ -1118,7 +1118,7 @@ static wmKeyMap *rna_keymap_find(wmKeyConfig *keyconf, const char *idname, int s
|
||||
return WM_keymap_list_find(&keyconf->keymaps, idname, spaceid, regionid);
|
||||
}
|
||||
|
||||
static wmKeyMap *rna_keymap_find_modal(wmKeyConfig *keyconf, const char *idname)
|
||||
static wmKeyMap *rna_keymap_find_modal(wmKeyConfig *UNUSED(keyconf), const char *idname)
|
||||
{
|
||||
wmOperatorType *ot = WM_operatortype_find(idname, 0);
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ static void rna_World_active_texture_set(PointerRNA *ptr, PointerRNA value)
|
||||
set_current_world_texture(wo, value.data);
|
||||
}
|
||||
|
||||
static void rna_World_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_World_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
World *wo= ptr->id.data;
|
||||
|
||||
@@ -95,7 +95,7 @@ static void rna_World_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
WM_main_add_notifier(NC_WORLD, wo);
|
||||
}
|
||||
|
||||
static void rna_World_draw_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_World_draw_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
World *wo= ptr->id.data;
|
||||
|
||||
@@ -104,7 +104,7 @@ static void rna_World_draw_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
}
|
||||
|
||||
/* so camera mist limits redraw */
|
||||
static void rna_World_draw_mist_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_World_draw_mist_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
World *wo= ptr->id.data;
|
||||
|
||||
@@ -113,7 +113,7 @@ static void rna_World_draw_mist_update(Main *bmain, Scene *scene, PointerRNA *pt
|
||||
WM_main_add_notifier(NC_OBJECT|ND_DRAW, NULL);
|
||||
}
|
||||
|
||||
static void rna_World_stars_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_World_stars_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
World *wo= ptr->id.data;
|
||||
|
||||
|
||||
@@ -99,12 +99,12 @@ static DerivedMesh *get_quick_derivedMesh(DerivedMesh *derivedData, DerivedMesh
|
||||
if(derivedData->getNumFaces(derivedData) == 0 || dm->getNumFaces(dm) == 0) {
|
||||
switch(operation) {
|
||||
case eBooleanModifierOp_Intersect:
|
||||
result = CDDM_new(0, 0, 0);
|
||||
result = CDDM_new(0, 0, 0, 0, 0);
|
||||
break;
|
||||
|
||||
case eBooleanModifierOp_Union:
|
||||
if(derivedData->getNumFaces(derivedData)) result = derivedData;
|
||||
else result = CDDM_copy(dm);
|
||||
else result = CDDM_copy(dm, FALSE);
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user