Code cleanup in rna files (huge, higly automated with py script).
Addresses: * C++ comments. * Spaces after if/for/while/switch statements. * Spaces around assignment operators.
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
static int file_older(const char *file1, const char *file2)
|
||||
{
|
||||
struct stat st1, st2;
|
||||
// printf("compare: %s %s\n", file1, file2);
|
||||
/* printf("compare: %s %s\n", file1, file2); */
|
||||
|
||||
if (stat(file1, &st1)) return 0;
|
||||
if (stat(file2, &st2)) return 0;
|
||||
@@ -73,7 +73,7 @@ static const char *makesrna_path= NULL;
|
||||
|
||||
static int replace_if_different(char *tmpfile, const char *dep_files[])
|
||||
{
|
||||
// return 0; // use for testing had edited rna
|
||||
/* return 0; *//* use for testing had edited rna */
|
||||
|
||||
#define REN_IF_DIFF \
|
||||
{ \
|
||||
@@ -1351,30 +1351,30 @@ static void rna_def_property_funcs_header(FILE *f, StructRNA *srna, PropertyDefR
|
||||
case PROP_INT: {
|
||||
if (!prop->arraydimension) {
|
||||
fprintf(f, "int %sget(PointerRNA *ptr);\n", func);
|
||||
//fprintf(f, "void %sset(PointerRNA *ptr, int value);\n", func);
|
||||
/*fprintf(f, "void %sset(PointerRNA *ptr, int value);\n", func); */
|
||||
}
|
||||
else if (prop->arraydimension && prop->totarraylength) {
|
||||
fprintf(f, "void %sget(PointerRNA *ptr, int values[%u]);\n", func, prop->totarraylength);
|
||||
//fprintf(f, "void %sset(PointerRNA *ptr, const int values[%d]);\n", func, prop->arraylength);
|
||||
/*fprintf(f, "void %sset(PointerRNA *ptr, const int values[%d]);\n", func, prop->arraylength); */
|
||||
}
|
||||
else {
|
||||
fprintf(f, "void %sget(PointerRNA *ptr, int values[]);\n", func);
|
||||
//fprintf(f, "void %sset(PointerRNA *ptr, const int values[]);\n", func);
|
||||
/*fprintf(f, "void %sset(PointerRNA *ptr, const int values[]);\n", func); */
|
||||
}
|
||||
break;
|
||||
}
|
||||
case PROP_FLOAT: {
|
||||
if (!prop->arraydimension) {
|
||||
fprintf(f, "float %sget(PointerRNA *ptr);\n", func);
|
||||
//fprintf(f, "void %sset(PointerRNA *ptr, float value);\n", func);
|
||||
/*fprintf(f, "void %sset(PointerRNA *ptr, float value);\n", func); */
|
||||
}
|
||||
else if (prop->arraydimension && prop->totarraylength) {
|
||||
fprintf(f, "void %sget(PointerRNA *ptr, float values[%u]);\n", func, prop->totarraylength);
|
||||
//fprintf(f, "void %sset(PointerRNA *ptr, const float values[%d]);\n", func, prop->arraylength);
|
||||
/*fprintf(f, "void %sset(PointerRNA *ptr, const float values[%d]);\n", func, prop->arraylength); */
|
||||
}
|
||||
else {
|
||||
fprintf(f, "void %sget(PointerRNA *ptr, float values[]);\n", func);
|
||||
//fprintf(f, "void %sset(PointerRNA *ptr, const float values[]);\n", func);
|
||||
/*fprintf(f, "void %sset(PointerRNA *ptr, const float values[]);\n", func); */
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1393,7 +1393,7 @@ static void rna_def_property_funcs_header(FILE *f, StructRNA *srna, PropertyDefR
|
||||
}
|
||||
|
||||
fprintf(f, "int %sget(PointerRNA *ptr);\n", func);
|
||||
//fprintf(f, "void %sset(PointerRNA *ptr, int value);\n", func);
|
||||
/*fprintf(f, "void %sset(PointerRNA *ptr, int value);\n", func); */
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -1406,22 +1406,22 @@ static void rna_def_property_funcs_header(FILE *f, StructRNA *srna, PropertyDefR
|
||||
|
||||
fprintf(f, "void %sget(PointerRNA *ptr, char *value);\n", func);
|
||||
fprintf(f, "int %slength(PointerRNA *ptr);\n", func);
|
||||
//fprintf(f, "void %sset(PointerRNA *ptr, const char *value);\n", func);
|
||||
/*fprintf(f, "void %sset(PointerRNA *ptr, const char *value);\n", func); */
|
||||
|
||||
break;
|
||||
}
|
||||
case PROP_POINTER: {
|
||||
fprintf(f, "PointerRNA %sget(PointerRNA *ptr);\n", func);
|
||||
//fprintf(f, "void %sset(PointerRNA *ptr, PointerRNA value);\n", func);
|
||||
/*fprintf(f, "void %sset(PointerRNA *ptr, PointerRNA value);\n", func); */
|
||||
break;
|
||||
}
|
||||
case PROP_COLLECTION: {
|
||||
fprintf(f, "void %sbegin(CollectionPropertyIterator *iter, PointerRNA *ptr);\n", func);
|
||||
fprintf(f, "void %snext(CollectionPropertyIterator *iter);\n", func);
|
||||
fprintf(f, "void %send(CollectionPropertyIterator *iter);\n", func);
|
||||
//fprintf(f, "int %slength(PointerRNA *ptr);\n", func);
|
||||
//fprintf(f, "void %slookup_int(PointerRNA *ptr, int key, StructRNA **type);\n", func);
|
||||
//fprintf(f, "void %slookup_string(PointerRNA *ptr, const char *key, StructRNA **type);\n", func);
|
||||
/*fprintf(f, "int %slength(PointerRNA *ptr);\n", func); */
|
||||
/*fprintf(f, "void %slookup_int(PointerRNA *ptr, int key, StructRNA **type);\n", func); */
|
||||
/*fprintf(f, "void %slookup_string(PointerRNA *ptr, const char *key, StructRNA **type);\n", func); */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@@ -239,7 +239,7 @@ StructRNA *rna_PropertyGroup_register(Main *UNUSED(bmain), ReportList *reports,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return RNA_def_struct(&BLENDER_RNA, identifier, "PropertyGroup"); // XXX
|
||||
return RNA_def_struct(&BLENDER_RNA, identifier, "PropertyGroup"); /* XXX */
|
||||
}
|
||||
|
||||
StructRNA* rna_PropertyGroup_refine(PointerRNA *ptr)
|
||||
@@ -390,7 +390,7 @@ static void rna_def_ID_properties(BlenderRNA *brna)
|
||||
RNA_def_property_collection_funcs(prop, "rna_IDPArray_begin", "rna_iterator_array_next", "rna_iterator_array_end", "rna_iterator_array_get", "rna_IDPArray_length", NULL, NULL, NULL);
|
||||
RNA_def_property_flag(prop, PROP_EXPORT|PROP_IDPROPERTY);
|
||||
|
||||
// never tested, maybe its useful to have this?
|
||||
/* never tested, maybe its useful to have this? */
|
||||
#if 0
|
||||
prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_flag(prop, PROP_EXPORT|PROP_IDPROPERTY);
|
||||
@@ -416,7 +416,7 @@ static void rna_def_ID_properties(BlenderRNA *brna)
|
||||
* when we only really want this so RNA_def_struct_name_property() is set to something useful */
|
||||
prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_flag(prop, PROP_EXPORT|PROP_IDPROPERTY);
|
||||
//RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/*RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_ui_text(prop, "Name", "Unique name used in the code and scripting");
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
}
|
||||
|
@@ -203,7 +203,7 @@ PointerRNA rna_pointer_inherit_refine(PointerRNA *ptr, StructRNA *type, void *da
|
||||
/**/
|
||||
void RNA_pointer_recast(PointerRNA *ptr, PointerRNA *r_ptr)
|
||||
{
|
||||
#if 0 // works but this case if covered by more general code below.
|
||||
#if 0 /* works but this case if covered by more general code below. */
|
||||
if (RNA_struct_is_ID(ptr->type)) {
|
||||
/* simple case */
|
||||
RNA_id_pointer_create(ptr->id.data, r_ptr);
|
||||
@@ -604,7 +604,7 @@ int RNA_struct_is_a(StructRNA *type, StructRNA *srna)
|
||||
|
||||
PropertyRNA *RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
|
||||
{
|
||||
if(identifier[0]=='[' && identifier[1]=='"') { // " (dummy comment to avoid confusing some function lists in text editors)
|
||||
if (identifier[0] =='[' && identifier[1] =='"') { /* " (dummy comment to avoid confusing some function lists in text editors) */
|
||||
/* id prop lookup, not so common */
|
||||
PropertyRNA *r_prop = NULL;
|
||||
PointerRNA r_ptr; /* only support single level props */
|
||||
@@ -1568,7 +1568,7 @@ void RNA_property_update_cache_flush(Main *bmain, Scene *scene)
|
||||
{
|
||||
tRnaUpdateCacheElem *uce;
|
||||
|
||||
// TODO: should we check that bmain and scene are valid? The above stuff doesn't!
|
||||
/* TODO: should we check that bmain and scene are valid? The above stuff doesn't! */
|
||||
|
||||
/* execute the cached updates */
|
||||
for (uce = rna_updates_cache.first; uce; uce = uce->next) {
|
||||
@@ -2554,11 +2554,11 @@ void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, PointerRNA ptr
|
||||
|
||||
PointerRNA RNA_property_pointer_get_default(PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop))
|
||||
{
|
||||
//PointerPropertyRNA *pprop= (PointerPropertyRNA*)prop;
|
||||
/*PointerPropertyRNA *pprop= (PointerPropertyRNA*)prop; */
|
||||
|
||||
// BLI_assert(RNA_property_type(prop) == PROP_POINTER);
|
||||
/* BLI_assert(RNA_property_type(prop) == PROP_POINTER); */
|
||||
|
||||
return PointerRNA_NULL; // FIXME: there has to be a way...
|
||||
return PointerRNA_NULL; /* FIXME: there has to be a way... */
|
||||
}
|
||||
|
||||
void RNA_property_pointer_add(PointerRNA *ptr, PropertyRNA *prop)
|
||||
@@ -2693,7 +2693,7 @@ int RNA_property_collection_length(PointerRNA *ptr, PropertyRNA *prop)
|
||||
void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *r_ptr)
|
||||
{
|
||||
IDProperty *idprop;
|
||||
// CollectionPropertyRNA *cprop= (CollectionPropertyRNA*)prop;
|
||||
/* CollectionPropertyRNA *cprop= (CollectionPropertyRNA*)prop; */
|
||||
|
||||
BLI_assert(RNA_property_type(prop) == PROP_COLLECTION);
|
||||
|
||||
@@ -2703,7 +2703,7 @@ void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA
|
||||
|
||||
item = IDP_New(IDP_GROUP, &val, "");
|
||||
IDP_AppendArray(idprop, item);
|
||||
// IDP_FreeProperty(item); // IDP_AppendArray does a shallow copy (memcpy), only free memory
|
||||
/* IDP_FreeProperty(item); *//* IDP_AppendArray does a shallow copy (memcpy), only free memory */
|
||||
MEM_freeN(item);
|
||||
}
|
||||
else if (prop->flag & PROP_IDPROPERTY) {
|
||||
@@ -2717,7 +2717,7 @@ void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA
|
||||
|
||||
item = IDP_New(IDP_GROUP, &val, "");
|
||||
IDP_AppendArray(idprop, item);
|
||||
// IDP_FreeProperty(item); // IDP_AppendArray does a shallow copy (memcpy), only free memory
|
||||
/* IDP_FreeProperty(item); *//* IDP_AppendArray does a shallow copy (memcpy), only free memory */
|
||||
MEM_freeN(item);
|
||||
}
|
||||
}
|
||||
@@ -2752,7 +2752,7 @@ void RNA_property_collection_add(PointerRNA *ptr, PropertyRNA *prop, PointerRNA
|
||||
int RNA_property_collection_remove(PointerRNA *ptr, PropertyRNA *prop, int key)
|
||||
{
|
||||
IDProperty *idprop;
|
||||
// CollectionPropertyRNA *cprop= (CollectionPropertyRNA*)prop;
|
||||
/* CollectionPropertyRNA *cprop= (CollectionPropertyRNA*)prop; */
|
||||
|
||||
BLI_assert(RNA_property_type(prop) == PROP_COLLECTION);
|
||||
|
||||
@@ -4037,7 +4037,7 @@ char *RNA_path_from_ID_to_struct(PointerRNA *ptr)
|
||||
if (userprop)
|
||||
ptrpath = BLI_strdup(RNA_property_identifier(userprop));
|
||||
else
|
||||
return NULL; // can't do anything about this case yet...
|
||||
return NULL; /* can't do anything about this case yet... */
|
||||
}
|
||||
else if (RNA_struct_is_a(ptr->type, &RNA_PropertyGroup)) {
|
||||
/* special case, easier to deal with here then in ptr->type->path() */
|
||||
@@ -5451,7 +5451,7 @@ int RNA_property_reset(PointerRNA *ptr, PropertyRNA *prop, int index)
|
||||
}
|
||||
|
||||
default:
|
||||
// FIXME: are there still any cases that haven't been handled? comment out "default" block to check :)
|
||||
/* FIXME: are there still any cases that haven't been handled? comment out "default" block to check :) */
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@@ -256,7 +256,7 @@ static void rna_def_dopesheet(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "DopeSheet", "Settings for filtering the channels shown in Animation Editors");
|
||||
|
||||
/* Source of DopeSheet data */
|
||||
// XXX: make this obsolete?
|
||||
/* XXX: make this obsolete? */
|
||||
prop = RNA_def_property(srna, "source", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_struct_type(prop, "ID");
|
||||
RNA_def_property_ui_text(prop, "Source", "ID-Block representing source data, currently ID_SCE (for Dopesheet), and ID_SC (for Grease Pencil)");
|
||||
@@ -330,7 +330,7 @@ static void rna_def_dopesheet(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "show_transforms", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "filterflag", ADS_FILTER_NOOBJ);
|
||||
RNA_def_property_ui_text(prop, "Display Transforms", "Include visualization of Object-level Animation data (mostly Transforms)");
|
||||
RNA_def_property_ui_icon(prop, ICON_MANIPUL, 0); // XXX?
|
||||
RNA_def_property_ui_icon(prop, ICON_MANIPUL, 0); /* XXX? */
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_ANIMCHAN|NA_EDITED, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "show_shapekeys", PROP_BOOLEAN, PROP_NONE);
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#include "DNA_constraint_types.h"
|
||||
#include "DNA_object_types.h"
|
||||
#include "DNA_actuator_types.h"
|
||||
#include "DNA_scene_types.h" // for MAXFRAME
|
||||
#include "DNA_scene_types.h" /* for MAXFRAME */
|
||||
|
||||
#include "WM_types.h"
|
||||
|
||||
@@ -1053,7 +1053,7 @@ static void rna_def_property_actuator(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Object", "Copy from this Object");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
//XXX add even magic'er property lookup (need to look for the property list of the target object)
|
||||
/*XXX add even magic'er property lookup (need to look for the property list of the target object) */
|
||||
prop = RNA_def_property(srna, "object_property", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "value");
|
||||
RNA_def_property_ui_text(prop, "Property Name", "Copy this property");
|
||||
@@ -1161,14 +1161,14 @@ static void rna_def_constraint_actuator(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Distance", "Keep this distance to target");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
//XXX to use a pointer or add a material lookup
|
||||
/*XXX to use a pointer or add a material lookup */
|
||||
prop = RNA_def_property(srna, "material", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "matprop");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Material", "Ray detects only Objects with this material");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
//XXX add magic property lookup
|
||||
/*XXX add magic property lookup */
|
||||
prop = RNA_def_property(srna, "property", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "matprop");
|
||||
RNA_def_property_ui_text(prop, "Property", "Ray detects only Objects with this property");
|
||||
@@ -1199,14 +1199,14 @@ static void rna_def_constraint_actuator(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Reference Direction", "Reference Direction");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
//XXX TODO - use radians internally then change to PROP_ANGLE
|
||||
/*XXX TODO - use radians internally then change to PROP_ANGLE */
|
||||
prop = RNA_def_property(srna, "angle_min", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "minloc[0]");
|
||||
RNA_def_property_range(prop, 0.0, 180.0);
|
||||
RNA_def_property_ui_text(prop, "Min Angle", "Minimum angle (in degree) to maintain with target direction (no correction is done if angle with target direction is between min and max)");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
//XXX TODO - use radians internally then change to PROP_ANGLE
|
||||
/*XXX TODO - use radians internally then change to PROP_ANGLE */
|
||||
prop = RNA_def_property(srna, "angle_max", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "maxloc[0]");
|
||||
RNA_def_property_range(prop, 0.0, 180.0);
|
||||
@@ -1253,7 +1253,7 @@ static void rna_def_constraint_actuator(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "PER", "Persistent actuator: stays active even if ray does not reach target");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
//XXX to use an enum instead of a flag if possible
|
||||
/*XXX to use an enum instead of a flag if possible */
|
||||
prop = RNA_def_property(srna, "use_material_detect", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", ACT_CONST_MATERIAL);
|
||||
RNA_def_property_ui_text(prop, "M/P", "Detect material instead of property");
|
||||
@@ -1409,7 +1409,7 @@ static void rna_def_scene_actuator(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Mode", "");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
//XXX filter only camera objects
|
||||
/*XXX filter only camera objects */
|
||||
prop = RNA_def_property(srna, "camera", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_struct_type(prop, "Object");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
@@ -1487,7 +1487,7 @@ static void rna_def_random_actuator(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
/* ACT_RANDOM_BOOL_UNIFORM */
|
||||
// label => "Choose between true and false, 50% chance each"
|
||||
/* label => "Choose between true and false, 50% chance each" */
|
||||
|
||||
/* ACT_RANDOM_BOOL_BERNOUILLI */
|
||||
prop = RNA_def_property(srna, "chance", PROP_FLOAT, PROP_PERCENTAGE);
|
||||
@@ -1611,10 +1611,10 @@ static void rna_def_game_actuator(BlenderRNA *brna)
|
||||
PropertyRNA *prop;
|
||||
|
||||
static EnumPropertyItem prop_type_items[] = {
|
||||
// {ACT_GAME_LOAD, "LOAD", 0, "Load Game", ""},
|
||||
// {ACT_GAME_START, "START", 0, "Start Loaded Game", ""},
|
||||
// keeping the load/start hacky for compatibility with 2.49
|
||||
// ideally we could use ACT_GAME_START again and do a do_version()
|
||||
/* {ACT_GAME_LOAD, "LOAD", 0, "Load Game", ""}, */
|
||||
/* {ACT_GAME_START, "START", 0, "Start Loaded Game", ""}, */
|
||||
/* keeping the load/start hacky for compatibility with 2.49 */
|
||||
/* ideally we could use ACT_GAME_START again and do a do_version() */
|
||||
|
||||
{ACT_GAME_LOAD, "START", 0, "Start Game From File", ""},
|
||||
{ACT_GAME_RESTART, "RESTART", 0, "Restart Game", ""},
|
||||
@@ -1637,7 +1637,7 @@ static void rna_def_game_actuator(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "filename", PROP_STRING, PROP_FILEPATH);
|
||||
RNA_def_property_ui_text(prop, "File", "Load this blend file, use the \"//\" prefix for a path relative to the current blend file");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
//XXX to do: an operator that calls file_browse with relative_path on and blender filtering active
|
||||
/*XXX to do: an operator that calls file_browse with relative_path on and blender filtering active */
|
||||
}
|
||||
|
||||
static void rna_def_visibility_actuator(BlenderRNA *brna)
|
||||
@@ -1686,7 +1686,7 @@ static void rna_def_twodfilter_actuator(BlenderRNA *brna)
|
||||
{ACT_2DFILTER_SEPIA, "SEPIA", 0, "Sepia", ""},
|
||||
{ACT_2DFILTER_INVERT, "INVERT", 0, "Invert", ""},
|
||||
{ACT_2DFILTER_CUSTOMFILTER, "CUSTOMFILTER", 0, "Custom Filter", ""},
|
||||
// {ACT_2DFILTER_NUMBER_OF_FILTERS, "", 0, "Do not use it. Sentinel", ""},
|
||||
/* {ACT_2DFILTER_NUMBER_OF_FILTERS, "", 0, "Do not use it. Sentinel", ""}, */
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
srna = RNA_def_struct(brna, "Filter2DActuator", "Actuator");
|
||||
@@ -1709,7 +1709,7 @@ static void rna_def_twodfilter_actuator(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "filter_pass", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "int_arg");
|
||||
RNA_def_property_ui_text(prop, "Pass Number", "Set filter order");
|
||||
RNA_def_property_range(prop, 0, 99); //MAX_RENDER_PASS-1
|
||||
RNA_def_property_range(prop, 0, 99); /*MAX_RENDER_PASS-1 */
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "motion_blur_factor", PROP_FLOAT, PROP_NONE);
|
||||
|
@@ -156,7 +156,7 @@ static void RKS_GEN_rna_internal(KeyingSetInfo *ksi, bContext *C, KeyingSet *ks,
|
||||
|
||||
/* ------ */
|
||||
|
||||
// XXX: the exact purpose of this is not too clear... maybe we want to revise this at some point?
|
||||
/* XXX: the exact purpose of this is not too clear... maybe we want to revise this at some point? */
|
||||
static StructRNA *rna_KeyingSetInfo_refine(PointerRNA *ptr)
|
||||
{
|
||||
KeyingSetInfo *ksi = (KeyingSetInfo *)ptr->data;
|
||||
@@ -186,7 +186,7 @@ static StructRNA *rna_KeyingSetInfo_register(Main *bmain, ReportList *reports, v
|
||||
int have_function[3];
|
||||
|
||||
/* setup dummy type info to store static properties in */
|
||||
// TODO: perhaps we want to get users to register as if they're using 'KeyingSet' directly instead?
|
||||
/* TODO: perhaps we want to get users to register as if they're using 'KeyingSet' directly instead? */
|
||||
RNA_pointer_create(NULL, &RNA_KeyingSetInfo, &dummyksi, &dummyptr);
|
||||
|
||||
/* validate the python class */
|
||||
@@ -215,7 +215,7 @@ static StructRNA *rna_KeyingSetInfo_register(Main *bmain, ReportList *reports, v
|
||||
RNA_struct_blender_type_set(ksi->ext.srna, ksi);
|
||||
|
||||
/* set callbacks */
|
||||
// NOTE: we really should have all of these...
|
||||
/* NOTE: we really should have all of these... */
|
||||
ksi->poll = (have_function[0])? RKS_POLL_rna_internal: NULL;
|
||||
ksi->iter = (have_function[1])? RKS_ITER_rna_internal: NULL;
|
||||
ksi->generate = (have_function[2])? RKS_GEN_rna_internal: NULL;
|
||||
@@ -374,7 +374,7 @@ static void rna_KeyingSet_paths_remove(KeyingSet *keyingset, ReportList *reports
|
||||
BKE_keyingset_free_path(keyingset, ksp);
|
||||
|
||||
/* the active path number will most likely have changed */
|
||||
// TODO: we should get more fancy and actually check if it was removed, but this will do for now
|
||||
/* TODO: we should get more fancy and actually check if it was removed, but this will do for now */
|
||||
keyingset->active_path = 0;
|
||||
}
|
||||
else {
|
||||
@@ -445,7 +445,7 @@ static FCurve *rna_Driver_from_existing(AnimData *adt, bContext *C, FCurve *src_
|
||||
/* just make a copy of the existing one and add to self */
|
||||
FCurve *new_fcu = copy_fcurve(src_driver);
|
||||
|
||||
// XXX: if we impose any ordering on these someday, this will be problematic
|
||||
/* XXX: if we impose any ordering on these someday, this will be problematic */
|
||||
BLI_addtail(&adt->drivers, new_fcu);
|
||||
return new_fcu;
|
||||
}
|
||||
@@ -488,7 +488,7 @@ static void rna_def_keyingset_info(BlenderRNA *brna)
|
||||
|
||||
/* Properties --------------------- */
|
||||
|
||||
RNA_define_verify_sdna(0); // not in sdna
|
||||
RNA_define_verify_sdna(0); /* not in sdna */
|
||||
|
||||
prop = RNA_def_property(srna, "bl_idname", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "idname");
|
||||
@@ -551,7 +551,7 @@ static void rna_def_keyingset_path(BlenderRNA *brna)
|
||||
RNA_def_property_editable_func(prop, "rna_ksPath_id_editable");
|
||||
RNA_def_property_pointer_funcs(prop, NULL, NULL, "rna_ksPath_id_typef", NULL);
|
||||
RNA_def_property_ui_text(prop, "ID-Block", "ID-Block that keyframes for Keying Set should be added to (for Absolute Keying Sets only)");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); // XXX: maybe a bit too noisy
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); /* XXX: maybe a bit too noisy */
|
||||
|
||||
prop = RNA_def_property(srna, "id_type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "idtype");
|
||||
@@ -559,37 +559,37 @@ static void rna_def_keyingset_path(BlenderRNA *brna)
|
||||
RNA_def_property_enum_default(prop, ID_OB);
|
||||
RNA_def_property_enum_funcs(prop, NULL, "rna_ksPath_id_type_set", NULL);
|
||||
RNA_def_property_ui_text(prop, "ID Type", "Type of ID-block that can be used");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); // XXX: maybe a bit too noisy
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); /* XXX: maybe a bit too noisy */
|
||||
|
||||
/* Group */
|
||||
prop = RNA_def_property(srna, "group", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_ui_text(prop, "Group Name", "Name of Action Group to assign setting(s) for this path to");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); // XXX: maybe a bit too noisy
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); /* XXX: maybe a bit too noisy */
|
||||
|
||||
/* Grouping */
|
||||
prop = RNA_def_property(srna, "group_method", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "groupmode");
|
||||
RNA_def_property_enum_items(prop, keyingset_path_grouping_items);
|
||||
RNA_def_property_ui_text(prop, "Grouping Method", "Method used to define which Group-name to use");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); // XXX: maybe a bit too noisy
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); /* XXX: maybe a bit too noisy */
|
||||
|
||||
/* Path + Array Index */
|
||||
prop = RNA_def_property(srna, "data_path", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_funcs(prop, "rna_ksPath_RnaPath_get", "rna_ksPath_RnaPath_length", "rna_ksPath_RnaPath_set");
|
||||
RNA_def_property_ui_text(prop, "Data Path", "Path to property setting");
|
||||
RNA_def_struct_name_property(srna, prop); // XXX this is the best indicator for now...
|
||||
RNA_def_struct_name_property(srna, prop); /* XXX this is the best indicator for now... */
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL);
|
||||
|
||||
/* called 'index' when given as function arg */
|
||||
prop = RNA_def_property(srna, "array_index", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_ui_text(prop, "RNA Array Index", "Index to the specific setting if applicable");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); // XXX: maybe a bit too noisy
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); /* XXX: maybe a bit too noisy */
|
||||
|
||||
/* Flags */
|
||||
prop = RNA_def_property(srna, "use_entire_array", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", KSP_FLAG_WHOLE_ARRAY);
|
||||
RNA_def_property_ui_text(prop, "Entire Array", "When an 'array/vector' type is chosen (Location, Rotation, Color, etc.), entire array is to be used");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); // XXX: maybe a bit too noisy
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_KEYINGSET|NA_EDITED, NULL); /* XXX: maybe a bit too noisy */
|
||||
|
||||
/* Keyframing Settings */
|
||||
rna_def_common_keying_flags(srna, 0);
|
||||
@@ -623,7 +623,7 @@ static void rna_def_keyingset_paths(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
parm = RNA_def_pointer(func, "target_id", "ID", "Target ID", "ID-Datablock for the destination");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
/* rna-path */
|
||||
parm= RNA_def_string(func, "data_path", "", 256, "Data-Path", "RNA-Path to destination property"); // xxx hopefully this is long enough
|
||||
parm = RNA_def_string(func, "data_path", "", 256, "Data-Path", "RNA-Path to destination property"); /* xxx hopefully this is long enough */
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
/* index (defaults to -1 for entire array) */
|
||||
RNA_def_int(func, "index", -1, -1, INT_MAX, "Index",
|
||||
@@ -749,7 +749,7 @@ static void rna_api_animdata_drivers(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
PropertyRNA *parm;
|
||||
FunctionRNA *func;
|
||||
|
||||
// PropertyRNA *prop;
|
||||
/* PropertyRNA *prop; */
|
||||
|
||||
RNA_def_property_srna(cprop, "AnimDataDrivers");
|
||||
srna = RNA_def_struct(brna, "AnimDataDrivers", NULL);
|
||||
|
@@ -49,7 +49,7 @@
|
||||
|
||||
static void rna_KeyingSet_context_refresh(KeyingSet *ks, bContext *C, ReportList *reports)
|
||||
{
|
||||
// TODO: enable access to providing a list of overrides (dsources)?
|
||||
/* TODO: enable access to providing a list of overrides (dsources)? */
|
||||
int success = ANIM_validate_keyingset(C, NULL, ks);
|
||||
|
||||
if (success != 0) {
|
||||
@@ -70,7 +70,7 @@ static void rna_KeyingSet_context_refresh(KeyingSet *ks, bContext *C, ReportList
|
||||
void RNA_api_keyingset(StructRNA *srna)
|
||||
{
|
||||
FunctionRNA *func;
|
||||
//PropertyRNA *parm;
|
||||
/*PropertyRNA *parm; */
|
||||
|
||||
/* validate relative Keying Set (used to ensure paths are ok for context) */
|
||||
func = RNA_def_function(srna, "refresh", "rna_KeyingSet_context_refresh");
|
||||
|
@@ -79,7 +79,7 @@ static void rna_AnimViz_path_end_frame_set(PointerRNA *ptr, int value)
|
||||
{
|
||||
bAnimVizSettings *data = (bAnimVizSettings*)ptr->data;
|
||||
|
||||
// XXX: watchit! Path Start > MAXFRAME/2 could be a problem...
|
||||
/* XXX: watchit! Path Start > MAXFRAME/2 could be a problem... */
|
||||
CLAMP(value, data->path_sf+1, (int)(MAXFRAMEF/2));
|
||||
data->path_ef = value;
|
||||
}
|
||||
@@ -146,7 +146,7 @@ static void rna_def_animviz_motion_path(BlenderRNA *brna)
|
||||
/* Settings */
|
||||
prop = RNA_def_property(srna, "use_bone_head", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", MOTIONPATH_FLAG_BHEAD);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); // xxx
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* xxx */
|
||||
RNA_def_property_ui_text(prop, "Use Bone Heads", "For PoseBone paths, use the bone head location when calculating this path");
|
||||
|
||||
prop = RNA_def_property(srna, "is_modified", PROP_BOOLEAN, PROP_NONE);
|
||||
|
@@ -56,7 +56,7 @@ static void rna_Armature_update_data(Main *UNUSED(bmain), Scene *UNUSED(scene),
|
||||
|
||||
DAG_id_tag_update(id, 0);
|
||||
WM_main_add_notifier(NC_GEOM|ND_DATA, id);
|
||||
//WM_main_add_notifier(NC_OBJECT|ND_POSE, NULL);
|
||||
/*WM_main_add_notifier(NC_OBJECT|ND_POSE, NULL); */
|
||||
}
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ static void rna_Armature_layer_set(PointerRNA *ptr, const int *values)
|
||||
}
|
||||
}
|
||||
|
||||
// XXX depreceated.... old armature only animviz
|
||||
/* XXX depreceated.... old armature only animviz */
|
||||
static void rna_Armature_ghost_start_frame_set(PointerRNA *ptr, int value)
|
||||
{
|
||||
bArmature *data = (bArmature*)ptr->data;
|
||||
@@ -244,7 +244,7 @@ static void rna_Armature_ghost_end_frame_set(PointerRNA *ptr, int value)
|
||||
CLAMP(value, data->ghostsf, (int)(MAXFRAMEF/2));
|
||||
data->ghostef = value;
|
||||
}
|
||||
// XXX depreceated... old armature only animviz
|
||||
/* XXX depreceated... old armature only animviz */
|
||||
|
||||
static void rna_EditBone_name_set(PointerRNA *ptr, const char *value)
|
||||
{
|
||||
@@ -512,7 +512,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
|
||||
if (editbone) RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update");
|
||||
else RNA_def_property_update(prop, 0, "rna_Armature_update_data");
|
||||
RNA_def_property_float_sdna(prop, NULL, "rad_head");
|
||||
//RNA_def_property_range(prop, 0, 1000); // XXX range is 0 to lim, where lim= 10000.0f*MAX2(1.0, view3d->grid);
|
||||
/*RNA_def_property_range(prop, 0, 1000); *//* XXX range is 0 to lim, where lim= 10000.0f*MAX2(1.0, view3d->grid); */
|
||||
RNA_def_property_ui_range(prop, 0.01, 100, 0.1, 3);
|
||||
RNA_def_property_ui_text(prop, "Envelope Head Radius", "Radius of head of bone (for Envelope deform only)");
|
||||
|
||||
@@ -520,7 +520,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
|
||||
if (editbone) RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update");
|
||||
else RNA_def_property_update(prop, 0, "rna_Armature_update_data");
|
||||
RNA_def_property_float_sdna(prop, NULL, "rad_tail");
|
||||
//RNA_def_property_range(prop, 0, 1000); // XXX range is 0 to lim, where lim= 10000.0f*MAX2(1.0, view3d->grid);
|
||||
/*RNA_def_property_range(prop, 0, 1000); *//* XXX range is 0 to lim, where lim= 10000.0f*MAX2(1.0, view3d->grid); */
|
||||
RNA_def_property_ui_range(prop, 0.01, 100, 0.1, 3);
|
||||
RNA_def_property_ui_text(prop, "Envelope Tail Radius", "Radius of tail of bone (for Envelope deform only)");
|
||||
|
||||
@@ -556,7 +556,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
|
||||
RNA_def_property_update(prop, 0, "rna_Armature_update_data");
|
||||
}
|
||||
|
||||
// err... bones should not be directly edited (only editbones should be...)
|
||||
/* err... bones should not be directly edited (only editbones should be...) */
|
||||
static void rna_def_bone(BlenderRNA *brna)
|
||||
{
|
||||
StructRNA *srna;
|
||||
@@ -584,7 +584,7 @@ static void rna_def_bone(BlenderRNA *brna)
|
||||
|
||||
rna_def_bone_common(srna, 0);
|
||||
|
||||
// XXX should we define this in PoseChannel wrapping code instead? but PoseChannels directly get some of their flags from here...
|
||||
/* XXX should we define this in PoseChannel wrapping code instead? but PoseChannels directly get some of their flags from here... */
|
||||
prop = RNA_def_property(srna, "hide", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", BONE_HIDDEN_P);
|
||||
RNA_def_property_ui_text(prop, "Hide", "Bone is not visible when it is not in Edit Mode (i.e. in Object or Pose Modes)");
|
||||
@@ -659,7 +659,7 @@ static void rna_def_edit_bone(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "Edit Bone", "Editmode bone in an Armature datablock");
|
||||
RNA_def_struct_ui_icon(srna, ICON_BONE_DATA);
|
||||
|
||||
RNA_define_verify_sdna(0); // not in sdna
|
||||
RNA_define_verify_sdna(0); /* not in sdna */
|
||||
|
||||
prop = RNA_def_property(srna, "parent", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_struct_type(prop, "EditBone");
|
||||
@@ -723,12 +723,12 @@ static void rna_def_edit_bone(BlenderRNA *brna)
|
||||
|
||||
/* calculated and read only, not actual data access */
|
||||
prop = RNA_def_property(srna, "matrix", PROP_FLOAT, PROP_MATRIX);
|
||||
//RNA_def_property_float_sdna(prop, NULL, ""); // doesnt access any real data
|
||||
/*RNA_def_property_float_sdna(prop, NULL, ""); *//* doesnt access any real data */
|
||||
RNA_def_property_multi_array(prop, 2, rna_matrix_dimsize_4x4);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_THICK_WRAP); /* no reference to original data */
|
||||
RNA_def_property_ui_text(prop, "Editbone Matrix", "Read-only matrix calculated from the roll (armature space)");
|
||||
RNA_def_property_float_funcs(prop, "rna_EditBone_matrix_get", NULL, NULL); // TODO - this could be made writable also
|
||||
RNA_def_property_float_funcs(prop, "rna_EditBone_matrix_get", NULL, NULL); /* TODO - this could be made writable also */
|
||||
|
||||
RNA_api_armature_edit_bone(srna);
|
||||
|
||||
@@ -742,8 +742,8 @@ static void rna_def_armature_bones(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
// FunctionRNA *func;
|
||||
// PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
|
||||
RNA_def_property_srna(cprop, "ArmatureBones");
|
||||
srna = RNA_def_struct(brna, "ArmatureBones", NULL);
|
||||
@@ -759,7 +759,7 @@ static void rna_def_armature_bones(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
RNA_def_property_pointer_funcs(prop, NULL, "rna_Armature_act_bone_set", NULL, NULL);
|
||||
|
||||
/* todo, redraw */
|
||||
// RNA_def_property_collection_active(prop, prop_act);
|
||||
/* RNA_def_property_collection_active(prop, prop_act); */
|
||||
}
|
||||
|
||||
/* armature.bones.* */
|
||||
@@ -781,11 +781,11 @@ static void rna_def_armature_edit_bones(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "act_edbone");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Active EditBone", "Armatures active edit bone");
|
||||
//RNA_def_property_update(prop, 0, "rna_Armature_act_editbone_update");
|
||||
/*RNA_def_property_update(prop, 0, "rna_Armature_act_editbone_update"); */
|
||||
RNA_def_property_pointer_funcs(prop, NULL, "rna_Armature_act_edit_bone_set", NULL, NULL);
|
||||
|
||||
/* todo, redraw */
|
||||
// RNA_def_property_collection_active(prop, prop_act);
|
||||
/* RNA_def_property_collection_active(prop, prop_act); */
|
||||
|
||||
/* add target */
|
||||
func = RNA_def_function(srna, "new", "rna_Armature_edit_bone_new");
|
||||
@@ -879,14 +879,14 @@ static void rna_def_armature(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_Armature_redraw_data");
|
||||
RNA_def_property_flag(prop, PROP_LIB_EXCEPTION);
|
||||
|
||||
// XXX depreceated ....... old animviz for armatures only
|
||||
/* XXX depreceated ....... old animviz for armatures only */
|
||||
prop = RNA_def_property(srna, "ghost_type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "ghosttype");
|
||||
RNA_def_property_enum_items(prop, prop_ghost_type_items);
|
||||
RNA_def_property_ui_text(prop, "Ghost Type", "Method of Onion-skinning for active Action");
|
||||
RNA_def_property_update(prop, 0, "rna_Armature_redraw_data");
|
||||
RNA_def_property_flag(prop, PROP_LIB_EXCEPTION);
|
||||
// XXX depreceated ....... old animviz for armatures only
|
||||
/* XXX depreceated ....... old animviz for armatures only */
|
||||
|
||||
/* Boolean values */
|
||||
/* layer */
|
||||
@@ -946,13 +946,13 @@ static void rna_def_armature(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Draw Bone Group Colors", "Draw bone group colors");
|
||||
RNA_def_property_update(prop, 0, "rna_Armature_redraw_data");
|
||||
|
||||
// XXX depreceated ....... old animviz for armatures only
|
||||
/* XXX depreceated ....... old animviz for armatures only */
|
||||
prop = RNA_def_property(srna, "show_only_ghost_selected", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", ARM_GHOST_ONLYSEL);
|
||||
RNA_def_property_ui_text(prop, "Draw Ghosts on Selected Bones Only", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Armature_redraw_data");
|
||||
RNA_def_property_flag(prop, PROP_LIB_EXCEPTION);
|
||||
// XXX depreceated ....... old animviz for armatures only
|
||||
/* XXX depreceated ....... old animviz for armatures only */
|
||||
|
||||
/* deformflag */
|
||||
prop = RNA_def_property(srna, "use_deform_vertex_groups", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -970,13 +970,13 @@ static void rna_def_armature(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Use Dual Quaternion Deformation", "Enable deform rotation with Quaternions");
|
||||
RNA_def_property_update(prop, 0, "rna_Armature_update_data");
|
||||
|
||||
//prop= RNA_def_property(srna, "deform_invert_vertexgroups", PROP_BOOLEAN, PROP_NONE);
|
||||
//RNA_def_property_boolean_negative_sdna(prop, NULL, "deformflag", ARM_DEF_INVERT_VGROUP);
|
||||
//RNA_def_property_ui_text(prop, "Invert Vertex Group Influence", "Invert Vertex Group influence (only for Modifiers)");
|
||||
//RNA_def_property_update(prop, 0, "rna_Armature_update_data");
|
||||
/*prop= RNA_def_property(srna, "deform_invert_vertexgroups", PROP_BOOLEAN, PROP_NONE); */
|
||||
/*RNA_def_property_boolean_negative_sdna(prop, NULL, "deformflag", ARM_DEF_INVERT_VGROUP); */
|
||||
/*RNA_def_property_ui_text(prop, "Invert Vertex Group Influence", "Invert Vertex Group influence (only for Modifiers)"); */
|
||||
/*RNA_def_property_update(prop, 0, "rna_Armature_update_data"); */
|
||||
|
||||
/* Number fields */
|
||||
// XXX depreceated ....... old animviz for armatures only
|
||||
/* XXX depreceated ....... old animviz for armatures only */
|
||||
/* ghost/onionskining settings */
|
||||
prop = RNA_def_property(srna, "ghost_step", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "ghostep");
|
||||
@@ -1011,7 +1011,7 @@ static void rna_def_armature(BlenderRNA *brna)
|
||||
"End frame of range of Ghosts to display (not for 'Around Current Frame' Onion-skinning method)");
|
||||
RNA_def_property_update(prop, 0, "rna_Armature_redraw_data");
|
||||
RNA_def_property_flag(prop, PROP_LIB_EXCEPTION);
|
||||
// XXX depreceated ....... old animviz for armatures only
|
||||
/* XXX depreceated ....... old animviz for armatures only */
|
||||
}
|
||||
|
||||
void RNA_def_armature(BlenderRNA *brna)
|
||||
|
@@ -55,10 +55,10 @@ EnumPropertyItem boidrule_type_items[] ={
|
||||
{eBoidRuleType_FollowLeader, "FOLLOW_LEADER", 0, "Follow Leader", "Follow a boid or assigned object"},
|
||||
{eBoidRuleType_AverageSpeed, "AVERAGE_SPEED", 0, "Average Speed", "Maintain speed, flight level or wander"},
|
||||
{eBoidRuleType_Fight, "FIGHT", 0, "Fight", "Go to closest enemy and attack when in range"},
|
||||
//{eBoidRuleType_Protect, "PROTECT", 0, "Protect", "Go to enemy closest to target and attack when in range"},
|
||||
//{eBoidRuleType_Hide, "HIDE", 0, "Hide", "Find a deflector move to it's other side from closest enemy"},
|
||||
//{eBoidRuleType_FollowPath, "FOLLOW_PATH", 0, "Follow Path", "Move along a assigned curve or closest curve in a group"},
|
||||
//{eBoidRuleType_FollowWall, "FOLLOW_WALL", 0, "Follow Wall", "Move next to a deflector object's in direction of it's tangent"},
|
||||
/*{eBoidRuleType_Protect, "PROTECT", 0, "Protect", "Go to enemy closest to target and attack when in range"}, */
|
||||
/*{eBoidRuleType_Hide, "HIDE", 0, "Hide", "Find a deflector move to it's other side from closest enemy"}, */
|
||||
/*{eBoidRuleType_FollowPath, "FOLLOW_PATH", 0, "Follow Path", "Move along a assigned curve or closest curve in a group"}, */
|
||||
/*{eBoidRuleType_FollowWall, "FOLLOW_WALL", 0, "Follow Wall", "Move next to a deflector object's in direction of it's tangent"}, */
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
EnumPropertyItem boidruleset_type_items[] = {
|
||||
@@ -129,7 +129,7 @@ static StructRNA* rna_BoidRule_refine(struct PointerRNA *ptr)
|
||||
|
||||
static char *rna_BoidRule_path(PointerRNA *ptr)
|
||||
{
|
||||
return BLI_sprintfN("rules[\"%s\"]", ((BoidRule*)ptr->data)->name); // XXX not unique
|
||||
return BLI_sprintfN("rules[\"%s\"]", ((BoidRule*)ptr->data)->name); /* XXX not unique */
|
||||
}
|
||||
|
||||
static PointerRNA rna_BoidState_active_boid_rule_get(PointerRNA *ptr)
|
||||
@@ -425,9 +425,9 @@ static void rna_def_boidrule(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "On Land", "Use rule when boid is on land");
|
||||
RNA_def_property_update(prop, 0, "rna_Boids_reset");
|
||||
|
||||
//prop= RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE);
|
||||
//RNA_def_property_boolean_sdna(prop, NULL, "mode", eModifierMode_Expanded);
|
||||
//RNA_def_property_ui_text(prop, "Expanded", "Set modifier expanded in the user interface");
|
||||
/*prop= RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE); */
|
||||
/*RNA_def_property_boolean_sdna(prop, NULL, "mode", eModifierMode_Expanded); */
|
||||
/*RNA_def_property_ui_text(prop, "Expanded", "Set modifier expanded in the user interface"); */
|
||||
|
||||
/* types */
|
||||
rna_def_boidrule_goal(brna);
|
||||
|
@@ -119,7 +119,7 @@ static void rna_Brush_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerR
|
||||
{
|
||||
Brush *br = (Brush*)ptr->data;
|
||||
WM_main_add_notifier(NC_BRUSH|NA_EDITED, br);
|
||||
//WM_main_add_notifier(NC_SPACE|ND_SPACE_VIEW3D, NULL);
|
||||
/*WM_main_add_notifier(NC_SPACE|ND_SPACE_VIEW3D, NULL); */
|
||||
}
|
||||
|
||||
static void rna_Brush_sculpt_tool_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
@@ -741,7 +741,7 @@ static void rna_def_operator_stroke_element(BlenderRNA *brna)
|
||||
RNA_def_property_flag(prop, PROP_IDPROPERTY);
|
||||
RNA_def_property_ui_text(prop, "Flip", "");
|
||||
|
||||
// used in uv painting
|
||||
/* used in uv painting */
|
||||
prop = RNA_def_property(srna, "time", PROP_FLOAT, PROP_UNSIGNED);
|
||||
RNA_def_property_flag(prop, PROP_IDPROPERTY);
|
||||
RNA_def_property_ui_text(prop, "Time", "");
|
||||
@@ -754,7 +754,7 @@ static void rna_def_operator_stroke_element(BlenderRNA *brna)
|
||||
/* XXX: Tool (this will be for pressing a modifier key for a different brush,
|
||||
e.g. switching to a Smooth brush in the middle of the stroke */
|
||||
|
||||
// XXX: i don't think blender currently supports the ability to properly do a remappable modifier in the middle of a stroke
|
||||
/* XXX: i don't think blender currently supports the ability to properly do a remappable modifier in the middle of a stroke */
|
||||
}
|
||||
|
||||
void RNA_def_brush(BlenderRNA *brna)
|
||||
|
@@ -58,7 +58,7 @@ static void rna_cloth_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerR
|
||||
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;
|
||||
/* ClothSimSettings *settings = (ClothSimSettings*)ptr->data; */
|
||||
ClothModifierData *clmd = (ClothModifierData*)modifiers_findByType(ob, eModifierType_Cloth);
|
||||
|
||||
cloth_free_modifier(clmd);
|
||||
|
@@ -182,7 +182,7 @@ static char *rna_ColorRampElement_path(PointerRNA *ptr)
|
||||
}
|
||||
|
||||
/* determine the path from the ID-block to the ramp */
|
||||
// FIXME: this is a very slow way to do it, but it will have to suffice...
|
||||
/* FIXME: this is a very slow way to do it, but it will have to suffice... */
|
||||
if (ptr->id.data) {
|
||||
ID *id = ptr->id.data;
|
||||
|
||||
@@ -204,7 +204,7 @@ static char *rna_ColorRampElement_path(PointerRNA *ptr)
|
||||
}
|
||||
break;
|
||||
|
||||
// TODO: node trees need special attention
|
||||
/* TODO: node trees need special attention */
|
||||
case ID_NT:
|
||||
{
|
||||
bNodeTree *ntree = (bNodeTree *)id;
|
||||
@@ -505,7 +505,7 @@ static void rna_def_color_ramp(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Interpolation", "");
|
||||
RNA_def_property_update(prop, 0, "rna_ColorRamp_update");
|
||||
|
||||
#if 0 // use len(elements)
|
||||
#if 0 /* use len(elements) */
|
||||
prop = RNA_def_property(srna, "total", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "tot");
|
||||
/* needs a function to do the right thing when adding elements like colorband_add_cb() */
|
||||
|
@@ -239,8 +239,8 @@ static void rna_Constraint_ik_type_set(struct PointerRNA *ptr, int value)
|
||||
bKinematicConstraint *ikdata = con->data;
|
||||
|
||||
if (ikdata->type != value) {
|
||||
// the type of IK constraint has changed, set suitable default values
|
||||
// in case constraints reuse same fields incompatible
|
||||
/* the type of IK constraint has changed, set suitable default values */
|
||||
/* in case constraints reuse same fields incompatible */
|
||||
switch (value) {
|
||||
case CONSTRAINT_IK_COPYPOSE:
|
||||
break;
|
||||
@@ -431,7 +431,7 @@ static void rna_def_constrainttarget(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Sub-Target", "");
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, "rna_Constraint_dependency_update");
|
||||
|
||||
// space, flag and type still to do
|
||||
/* space, flag and type still to do */
|
||||
}
|
||||
|
||||
static void rna_def_constraint_childof(BlenderRNA *brna)
|
||||
@@ -2009,14 +2009,14 @@ static void rna_def_constraint_spline_ik(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "chain_count", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "chainlen");
|
||||
RNA_def_property_range(prop, 1, 255); // TODO: this should really check the max length of the chain the constraint is attached to
|
||||
RNA_def_property_range(prop, 1, 255); /* TODO: this should really check the max length of the chain the constraint is attached to */
|
||||
RNA_def_property_ui_text(prop, "Chain Length", "How many bones are included in the chain");
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, "rna_Constraint_dependency_update"); // XXX: this update goes wrong... needs extra flush?
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_CONSTRAINT, "rna_Constraint_dependency_update"); /* XXX: this update goes wrong... needs extra flush? */
|
||||
|
||||
/* direct access to bindings */
|
||||
// NOTE: only to be used by experienced users
|
||||
/* NOTE: only to be used by experienced users */
|
||||
prop = RNA_def_property(srna, "joint_bindings", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_array(prop, 32); // XXX this is the maximum value allowed - why?
|
||||
RNA_def_property_array(prop, 32); /* XXX this is the maximum value allowed - why? */
|
||||
RNA_def_property_flag(prop, PROP_DYNAMIC);
|
||||
RNA_def_property_dynamic_array_funcs(prop, "rna_SplineIKConstraint_joint_bindings_get_length");
|
||||
RNA_def_property_float_funcs(prop, "rna_SplineIKConstraint_joint_bindings_get", "rna_SplineIKConstraint_joint_bindings_set", NULL);
|
||||
@@ -2273,13 +2273,13 @@ void RNA_def_constraint(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Expanded", "Constraint's panel is expanded in UI");
|
||||
RNA_def_property_ui_icon(prop, ICON_TRIA_RIGHT, 1);
|
||||
|
||||
// XXX this is really an internal flag, but it may be useful for some tools to be able to access this...
|
||||
/* XXX this is really an internal flag, but it may be useful for some tools to be able to access this... */
|
||||
prop = RNA_def_property(srna, "is_valid", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", CONSTRAINT_DISABLE);
|
||||
RNA_def_property_ui_text(prop, "Valid", "Constraint has valid settings and can be evaluated");
|
||||
|
||||
// TODO: setting this to true must ensure that all others in stack are turned off too...
|
||||
/* TODO: setting this to true must ensure that all others in stack are turned off too... */
|
||||
prop = RNA_def_property(srna, "active", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", CONSTRAINT_ACTIVE);
|
||||
RNA_def_property_ui_text(prop, "Active", "Constraint is the one being edited ");
|
||||
|
@@ -139,7 +139,7 @@ void RNA_def_context(BlenderRNA *brna)
|
||||
{CTX_MODE_EDIT_CURVE, "EDIT_CURVE", 0, "Curve Edit", ""},
|
||||
{CTX_MODE_EDIT_SURFACE, "EDIT_SURFACE", 0, "Surface Edit", ""},
|
||||
{CTX_MODE_EDIT_TEXT, "EDIT_TEXT", 0, "Edit Edit", ""},
|
||||
{CTX_MODE_EDIT_ARMATURE, "EDIT_ARMATURE", 0, "Armature Edit", ""}, // PARSKEL reuse will give issues
|
||||
{CTX_MODE_EDIT_ARMATURE, "EDIT_ARMATURE", 0, "Armature Edit", ""}, /* PARSKEL reuse will give issues */
|
||||
{CTX_MODE_EDIT_METABALL, "EDIT_METABALL", 0, "Metaball Edit", ""},
|
||||
{CTX_MODE_EDIT_LATTICE, "EDIT_LATTICE", 0, "Lattice Edit", ""},
|
||||
{CTX_MODE_POSE, "POSE", 0, "Pose ", ""},
|
||||
|
@@ -103,10 +103,10 @@ static void rna_Controller_mode_set(struct PointerRNA *ptr, int value)
|
||||
bController *cont = (bController *)ptr->data;
|
||||
bPythonCont *pycon = (bPythonCont *)cont->data;
|
||||
|
||||
// if mode changed and previous mode were Script
|
||||
/* if mode changed and previous mode were Script */
|
||||
if (value != pycon->mode && pycon->mode == CONT_PY_SCRIPT)
|
||||
{
|
||||
// clear script to avoid it to get linked with the controller
|
||||
/* clear script to avoid it to get linked with the controller */
|
||||
pycon->text = NULL;
|
||||
}
|
||||
pycon->mode = value;
|
||||
@@ -233,15 +233,15 @@ void RNA_def_controller(BlenderRNA *brna)
|
||||
|
||||
/* State */
|
||||
|
||||
// array of OB_MAX_STATES
|
||||
//prop= RNA_def_property(srna, "states", PROP_BOOLEAN, PROP_LAYER_MEMBER);
|
||||
//RNA_def_property_array(prop, OB_MAX_STATES);
|
||||
//RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
//RNA_def_property_ui_text(prop, "", "Set Controller state index (1 to 30)");
|
||||
//RNA_def_property_boolean_funcs(prop, "rna_Controller_state_get", "rna_Controller_state_set");
|
||||
//RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
/* array of OB_MAX_STATES */
|
||||
/*prop= RNA_def_property(srna, "states", PROP_BOOLEAN, PROP_LAYER_MEMBER); */
|
||||
/*RNA_def_property_array(prop, OB_MAX_STATES); */
|
||||
/*RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
/*RNA_def_property_ui_text(prop, "", "Set Controller state index (1 to 30)"); */
|
||||
/*RNA_def_property_boolean_funcs(prop, "rna_Controller_state_get", "rna_Controller_state_set"); */
|
||||
/*RNA_def_property_update(prop, NC_LOGIC, NULL); */
|
||||
|
||||
// number of the state
|
||||
/* number of the state */
|
||||
prop = RNA_def_property(srna, "states", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "state_mask");
|
||||
RNA_def_property_range(prop, 1, OB_MAX_STATES);
|
||||
|
@@ -465,7 +465,7 @@ void rna_Curve_body_set(PointerRNA *ptr, const char *value)
|
||||
cu->str = MEM_callocN(len + sizeof(wchar_t), "str");
|
||||
cu->strinfo = MEM_callocN( (len+4) *sizeof(CharInfo), "strinfo"); /* don't know why this is +4, just duplicating load_editText() */
|
||||
|
||||
//BLI_strncpy_wchar_as_utf8(cu->str, value, len+1); // value is not wchar_t
|
||||
/*BLI_strncpy_wchar_as_utf8(cu->str, value, len+1); *//* value is not wchar_t */
|
||||
BLI_strncpy(cu->str, value, len+1);
|
||||
}
|
||||
|
||||
@@ -517,7 +517,7 @@ static void rna_Curve_spline_points_add(ID *id, Nurb *nu, ReportList *reports, i
|
||||
BKE_report(reports, RPT_ERROR, "Bezier spline can't have points added");
|
||||
}
|
||||
else if (number == 0) {
|
||||
// do nothing
|
||||
/* do nothing */
|
||||
} else {
|
||||
|
||||
addNurbPoints(nu, number);
|
||||
@@ -535,7 +535,7 @@ static void rna_Curve_spline_bezpoints_add(ID *id, Nurb *nu, ReportList *reports
|
||||
BKE_report(reports, RPT_ERROR, "Only Bezier splines can be added");
|
||||
}
|
||||
else if (number == 0) {
|
||||
// do nothing
|
||||
/* do nothing */
|
||||
} else {
|
||||
addNurbPointsBezier(nu, number);
|
||||
|
||||
@@ -609,7 +609,7 @@ static PointerRNA rna_Curve_active_spline_get(PointerRNA *ptr)
|
||||
Nurb *nu;
|
||||
ListBase *nurbs = BKE_curve_nurbs(cu);
|
||||
|
||||
// for curve outside editmode will set to -1, should be changed to be allowed outside of editmode.
|
||||
/* for curve outside editmode will set to -1, should be changed to be allowed outside of editmode. */
|
||||
nu = BLI_findlink(nurbs, cu->actnu);
|
||||
|
||||
if (nu)
|
||||
@@ -1138,10 +1138,10 @@ static void rna_def_text(BlenderRNA *brna)
|
||||
static void rna_def_curve_spline_points(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
{
|
||||
StructRNA *srna;
|
||||
//PropertyRNA *prop;
|
||||
/*PropertyRNA *prop; */
|
||||
|
||||
FunctionRNA *func;
|
||||
//PropertyRNA *parm;
|
||||
/*PropertyRNA *parm; */
|
||||
|
||||
RNA_def_property_srna(cprop, "SplinePoints");
|
||||
srna = RNA_def_struct(brna, "SplinePoints", NULL);
|
||||
@@ -1165,10 +1165,10 @@ static void rna_def_curve_spline_points(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
static void rna_def_curve_spline_bezpoints(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
{
|
||||
StructRNA *srna;
|
||||
//PropertyRNA *prop;
|
||||
/*PropertyRNA *prop; */
|
||||
|
||||
FunctionRNA *func;
|
||||
//PropertyRNA *parm;
|
||||
/*PropertyRNA *parm; */
|
||||
|
||||
RNA_def_property_srna(cprop, "SplineBezierPoints");
|
||||
srna = RNA_def_struct(brna, "SplineBezierPoints", NULL);
|
||||
@@ -1380,7 +1380,7 @@ static void rna_def_curve(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Twist Method", "The type of tilt calculation for 3D Curves");
|
||||
RNA_def_property_update(prop, 0, "rna_Curve_update_data");
|
||||
|
||||
// XXX - would be nice to have a better way to do this, only add for testing.
|
||||
/* XXX - would be nice to have a better way to do this, only add for testing. */
|
||||
prop = RNA_def_property(srna, "twist_smooth", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "twist_smooth");
|
||||
RNA_def_property_ui_range(prop, 0, 100.0, 1, 2);
|
||||
|
@@ -2159,7 +2159,7 @@ PropertyRNA *RNA_def_boolean_vector(StructOrFunctionRNA *cont_, const char *iden
|
||||
ContainerRNA *cont = cont_;
|
||||
PropertyRNA *prop;
|
||||
|
||||
prop= RNA_def_property(cont, identifier, PROP_BOOLEAN, PROP_XYZ); // XXX
|
||||
prop = RNA_def_property(cont, identifier, PROP_BOOLEAN, PROP_XYZ); /* XXX */
|
||||
if (len != 0) RNA_def_property_array(prop, len);
|
||||
if (default_value) RNA_def_property_boolean_array_default(prop, default_value);
|
||||
RNA_def_property_ui_text(prop, ui_name, ui_description);
|
||||
@@ -2188,7 +2188,7 @@ PropertyRNA *RNA_def_int_vector(StructOrFunctionRNA *cont_, const char *identifi
|
||||
ContainerRNA *cont = cont_;
|
||||
PropertyRNA *prop;
|
||||
|
||||
prop= RNA_def_property(cont, identifier, PROP_INT, PROP_XYZ); // XXX
|
||||
prop = RNA_def_property(cont, identifier, PROP_INT, PROP_XYZ); /* XXX */
|
||||
if (len != 0) RNA_def_property_array(prop, len);
|
||||
if (default_value) RNA_def_property_int_array_default(prop, default_value);
|
||||
if (hardmin != hardmax) RNA_def_property_range(prop, hardmin, hardmax);
|
||||
@@ -2744,7 +2744,7 @@ void RNA_enum_items_add_value(EnumPropertyItem **items, int *totitem, EnumProper
|
||||
for (; item->identifier; item++) {
|
||||
if (item->value == value) {
|
||||
RNA_enum_item_add(items, totitem, item);
|
||||
break; // break on first match - does this break anything? (is quick hack to get object->parent_type working ok for armature/lattice)
|
||||
break; /* break on first match - does this break anything? (is quick hack to get object->parent_type working ok for armature/lattice) */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -155,7 +155,7 @@ static PointerRNA rna_PaintSurface_active_get(PointerRNA *ptr)
|
||||
static void rna_DynamicPaint_surfaces_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
|
||||
{
|
||||
DynamicPaintCanvasSettings *canvas = (DynamicPaintCanvasSettings*)ptr->data;
|
||||
//rna_iterator_array_begin(iter, (void*)canvas->surfaces, sizeof(PaintSurface), canvas->totsur, 0, 0);
|
||||
/*rna_iterator_array_begin(iter, (void*)canvas->surfaces, sizeof(PaintSurface), canvas->totsur, 0, 0); */
|
||||
rna_iterator_listbase_begin(iter, &canvas->surfaces, NULL);
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ static void rna_def_canvas_surface(BlenderRNA *brna)
|
||||
|
||||
/* Surface format */
|
||||
static EnumPropertyItem prop_dynamicpaint_surface_format[] = {
|
||||
//{MOD_DPAINT_SURFACE_F_PTEX, "PTEX", ICON_TEXTURE_SHADED, "Ptex", ""},
|
||||
/*{MOD_DPAINT_SURFACE_F_PTEX, "PTEX", ICON_TEXTURE_SHADED, "Ptex", ""}, */
|
||||
{MOD_DPAINT_SURFACE_F_VERTEX, "VERTEX", ICON_OUTLINER_DATA_MESH, "Vertex", ""},
|
||||
{MOD_DPAINT_SURFACE_F_IMAGESEQ, "IMAGE", ICON_FILE_IMAGE, "Image Sequence", ""},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
@@ -56,7 +56,7 @@ EnumPropertyItem fmodifier_type_items[] = {
|
||||
{FMODIFIER_TYPE_CYCLES, "CYCLES", 0, "Cycles", ""},
|
||||
{FMODIFIER_TYPE_NOISE, "NOISE", 0, "Noise", ""},
|
||||
{FMODIFIER_TYPE_FILTER, "FILTER", 0, "Filter", ""},
|
||||
//{FMODIFIER_TYPE_PYTHON, "PYTHON", 0, "Python", ""}, // FIXME: not implemented yet!
|
||||
/*{FMODIFIER_TYPE_PYTHON, "PYTHON", 0, "Python", ""}, *//* FIXME: not implemented yet! */
|
||||
{FMODIFIER_TYPE_LIMITS, "LIMITS", 0, "Limits", ""},
|
||||
{FMODIFIER_TYPE_STEPPED, "STEPPED", 0, "Stepped Interpolation", ""},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
@@ -87,8 +87,8 @@ static StructRNA *rna_FModifierType_refine(struct PointerRNA *ptr)
|
||||
return &RNA_FModifierCycles;
|
||||
case FMODIFIER_TYPE_NOISE:
|
||||
return &RNA_FModifierNoise;
|
||||
//case FMODIFIER_TYPE_FILTER:
|
||||
// return &RNA_FModifierFilter;
|
||||
/*case FMODIFIER_TYPE_FILTER: */
|
||||
/* return &RNA_FModifierFilter; */
|
||||
case FMODIFIER_TYPE_PYTHON:
|
||||
return &RNA_FModifierPython;
|
||||
case FMODIFIER_TYPE_LIMITS:
|
||||
@@ -113,7 +113,7 @@ static void rna_ChannelDriver_update_data(Main *bmain, Scene *scene, PointerRNA
|
||||
|
||||
driver->flag &= ~DRIVER_FLAG_INVALID;
|
||||
|
||||
// TODO: this really needs an update guard...
|
||||
/* TODO: this really needs an update guard... */
|
||||
DAG_scene_sort(bmain, scene);
|
||||
DAG_id_tag_update(id, OB_RECALC_OB|OB_RECALC_DATA);
|
||||
|
||||
@@ -140,8 +140,8 @@ static void rna_DriverTarget_update_data(Main *bmain, Scene *scene, PointerRNA *
|
||||
fcu->flag &= ~FCURVE_DISABLED;
|
||||
|
||||
if (driver) {
|
||||
// FIXME: need to be able to search targets for required one...
|
||||
//BLI_findindex(&driver->targets, ptr->data) != -1)
|
||||
/* FIXME: need to be able to search targets for required one... */
|
||||
/*BLI_findindex(&driver->targets, ptr->data) != -1) */
|
||||
RNA_pointer_create(ptr->id.data, &RNA_Driver, driver, &driverptr);
|
||||
rna_ChannelDriver_update_data(bmain, scene, &driverptr);
|
||||
return;
|
||||
@@ -232,7 +232,7 @@ static void rna_DriverTarget_RnaPath_set(PointerRNA *ptr, const char *value)
|
||||
{
|
||||
DriverTarget *dtar = (DriverTarget *)ptr->data;
|
||||
|
||||
// XXX in this case we need to be very careful, as this will require some new dependencies to be added!
|
||||
/* XXX in this case we need to be very careful, as this will require some new dependencies to be added! */
|
||||
if (dtar->rna_path)
|
||||
MEM_freeN(dtar->rna_path);
|
||||
|
||||
@@ -390,7 +390,7 @@ static void rna_FCurve_group_set(PointerRNA *ptr, PointerRNA value)
|
||||
action_groups_remove_channel(act, fcu);
|
||||
|
||||
/* add the F-Curve back to the action now in the right place */
|
||||
// TODO: make the api function handle the case where there isn't any group to assign to
|
||||
/* TODO: make the api function handle the case where there isn't any group to assign to */
|
||||
if (value.data) {
|
||||
/* add to its group using API function, which makes sure everything goes ok */
|
||||
action_groups_add_channel(act, value.data, fcu);
|
||||
@@ -648,7 +648,7 @@ static void rna_def_fmodifier_generator(BlenderRNA *brna)
|
||||
"the existing values instead of overwriting them");
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_KEYFRAME|NA_EDITED, NULL);
|
||||
|
||||
// XXX this has a special validation func
|
||||
/* XXX this has a special validation func */
|
||||
prop = RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, generator_mode_items);
|
||||
RNA_def_property_ui_text(prop, "Mode", "Type of generator to use");
|
||||
@@ -656,7 +656,7 @@ static void rna_def_fmodifier_generator(BlenderRNA *brna)
|
||||
|
||||
|
||||
/* order of the polynomial */
|
||||
// XXX this has a special validation func
|
||||
/* XXX this has a special validation func */
|
||||
prop = RNA_def_property(srna, "poly_order", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_ui_text(prop, "Polynomial Order",
|
||||
"The highest power of 'x' for this polynomial (number of coefficients - 1)");
|
||||
@@ -755,8 +755,8 @@ static void rna_def_fmodifier_envelope_ctrl(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Frame", "Frame this control-point occurs on");
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_KEYFRAME|NA_EDITED, NULL);
|
||||
|
||||
// TODO:
|
||||
// - selection flags (not implemented in UI yet though)
|
||||
/* TODO: */
|
||||
/* - selection flags (not implemented in UI yet though) */
|
||||
}
|
||||
|
||||
static void rna_def_fmodifier_envelope(BlenderRNA *brna)
|
||||
@@ -841,7 +841,7 @@ static void rna_def_fmodifier_cycles(BlenderRNA *brna)
|
||||
static void rna_def_fmodifier_python(BlenderRNA *brna)
|
||||
{
|
||||
StructRNA *srna;
|
||||
//PropertyRNA *prop;
|
||||
/*PropertyRNA *prop; */
|
||||
|
||||
srna = RNA_def_struct(brna, "FModifierPython", "FModifier");
|
||||
RNA_def_struct_ui_text(srna, "Python F-Modifier", "Perform user-defined operation on the modified F-Curve");
|
||||
@@ -1011,12 +1011,12 @@ static void rna_def_fmodifier(BlenderRNA *brna)
|
||||
RNA_def_struct_refine_func(srna, "rna_FModifierType_refine");
|
||||
RNA_def_struct_ui_text(srna, "F-Modifier", "Modifier for values of F-Curve");
|
||||
|
||||
#if 0 // XXX not used yet
|
||||
#if 0 /* XXX not used yet */
|
||||
/* name */
|
||||
prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
RNA_def_property_ui_text(prop, "Name", "Short description of F-Curve Modifier");
|
||||
#endif // XXX not used yet
|
||||
#endif /* XXX not used yet */
|
||||
|
||||
/* type */
|
||||
prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
|
||||
@@ -1042,7 +1042,7 @@ static void rna_def_fmodifier(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Disabled", "F-Curve Modifier has invalid settings and will not be evaluated");
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_KEYFRAME_PROP, NULL);
|
||||
|
||||
// TODO: setting this to true must ensure that all others in stack are turned off too...
|
||||
/* TODO: setting this to true must ensure that all others in stack are turned off too... */
|
||||
prop = RNA_def_property(srna, "active", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", FMODIFIER_FLAG_ACTIVE);
|
||||
RNA_def_property_ui_text(prop, "Active", "F-Curve Modifier is the one being edited ");
|
||||
@@ -1057,7 +1057,7 @@ static void rna_def_fmodifier(BlenderRNA *brna)
|
||||
"F-Curve Modifier is only applied for the specified frame range to help "
|
||||
"mask off effects in order to chain them");
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_KEYFRAME_PROP, NULL);
|
||||
RNA_def_property_ui_icon(prop, ICON_TRIA_RIGHT, 1); // XXX: depends on UI implementation
|
||||
RNA_def_property_ui_icon(prop, ICON_TRIA_RIGHT, 1); /* XXX: depends on UI implementation */
|
||||
|
||||
prop = RNA_def_property(srna, "frame_start", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "sfra");
|
||||
@@ -1088,7 +1088,7 @@ static void rna_def_fmodifier(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", FMODIFIER_FLAG_USEINFLUENCE);
|
||||
RNA_def_property_ui_text(prop, "Use Influence", "F-Curve Modifier's effects will be tempered by a default factor");
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_KEYFRAME_PROP, NULL);
|
||||
RNA_def_property_ui_icon(prop, ICON_TRIA_RIGHT, 1); // XXX: depends on UI implementation
|
||||
RNA_def_property_ui_icon(prop, ICON_TRIA_RIGHT, 1); /* XXX: depends on UI implementation */
|
||||
|
||||
prop = RNA_def_property(srna, "influence", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_float_sdna(prop, NULL, "influence");
|
||||
@@ -1196,17 +1196,17 @@ static void rna_def_drivervar(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Name",
|
||||
"Name to use in scripted expressions/functions (no spaces or dots are allowed, "
|
||||
"and must start with a letter)");
|
||||
RNA_def_property_update(prop, 0, "rna_DriverTarget_update_name"); // XXX
|
||||
RNA_def_property_update(prop, 0, "rna_DriverTarget_update_name"); /* XXX */
|
||||
|
||||
/* Enums */
|
||||
prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, prop_type_items);
|
||||
RNA_def_property_enum_funcs(prop, NULL, "rna_DriverVariable_type_set", NULL);
|
||||
RNA_def_property_ui_text(prop, "Type", "Driver variable type");
|
||||
RNA_def_property_update(prop, 0, "rna_ChannelDriver_update_data"); // XXX
|
||||
RNA_def_property_update(prop, 0, "rna_ChannelDriver_update_data"); /* XXX */
|
||||
|
||||
/* Targets */
|
||||
// TODO: for nicer api, only expose the relevant props via subclassing, instead of exposing the collection of targets
|
||||
/* TODO: for nicer api, only expose the relevant props via subclassing, instead of exposing the collection of targets */
|
||||
prop = RNA_def_property(srna, "targets", PROP_COLLECTION, PROP_NONE);
|
||||
RNA_def_property_collection_sdna(prop, NULL, "targets", "num_targets");
|
||||
RNA_def_property_struct_type(prop, "DriverTarget");
|
||||
@@ -1218,7 +1218,7 @@ static void rna_def_drivervar(BlenderRNA *brna)
|
||||
static void rna_def_channeldriver_variables(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
{
|
||||
StructRNA *srna;
|
||||
// PropertyRNA *prop;
|
||||
/* PropertyRNA *prop; */
|
||||
|
||||
FunctionRNA *func;
|
||||
PropertyRNA *parm;
|
||||
@@ -1508,7 +1508,7 @@ static void rna_def_fcurve(BlenderRNA *brna)
|
||||
RNA_def_property_enum_sdna(prop, NULL, "extend");
|
||||
RNA_def_property_enum_items(prop, prop_mode_extend_items);
|
||||
RNA_def_property_ui_text(prop, "Extrapolation", "");
|
||||
RNA_def_property_update(prop, NC_ANIMATION, NULL); // XXX need an update callback for this so that animation gets evaluated
|
||||
RNA_def_property_update(prop, NC_ANIMATION, NULL); /* XXX need an update callback for this so that animation gets evaluated */
|
||||
|
||||
/* Pointers */
|
||||
prop = RNA_def_property(srna, "driver", PROP_POINTER, PROP_NONE);
|
||||
@@ -1526,12 +1526,12 @@ static void rna_def_fcurve(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "data_path", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_funcs(prop, "rna_FCurve_RnaPath_get", "rna_FCurve_RnaPath_length", "rna_FCurve_RnaPath_set");
|
||||
RNA_def_property_ui_text(prop, "Data Path", "RNA Path to property affected by F-Curve");
|
||||
RNA_def_property_update(prop, NC_ANIMATION, NULL); // XXX need an update callback for this to that animation gets evaluated
|
||||
RNA_def_property_update(prop, NC_ANIMATION, NULL); /* XXX need an update callback for this to that animation gets evaluated */
|
||||
|
||||
/* called 'index' when given as function arg */
|
||||
prop = RNA_def_property(srna, "array_index", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_ui_text(prop, "RNA Array Index", "Index to the specific property affected by F-Curve if applicable");
|
||||
RNA_def_property_update(prop, NC_ANIMATION, NULL); // XXX need an update callback for this so that animation gets evaluated
|
||||
RNA_def_property_update(prop, NC_ANIMATION, NULL); /* XXX need an update callback for this so that animation gets evaluated */
|
||||
|
||||
/* Color */
|
||||
prop = RNA_def_property(srna, "color_mode", PROP_ENUM, PROP_NONE);
|
||||
|
@@ -49,8 +49,8 @@
|
||||
|
||||
void RNA_api_drivers(StructRNA *srna)
|
||||
{
|
||||
// FunctionRNA *func;
|
||||
// PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -123,7 +123,7 @@ static void rna_FluidSettings_update_type(Main *bmain, Scene *scene, PointerRNA
|
||||
ParticleSettings *part;
|
||||
|
||||
fluidmd = (FluidsimModifierData*)modifiers_findByType(ob, eModifierType_Fluidsim);
|
||||
fluidmd->fss->flag &= ~OB_FLUIDSIM_REVERSE; // clear flag
|
||||
fluidmd->fss->flag &= ~OB_FLUIDSIM_REVERSE; /* clear flag */
|
||||
|
||||
/* remove fluidsim particle system */
|
||||
if (fluidmd->fss->type & OB_FLUIDSIM_PARTICLE) {
|
||||
@@ -654,8 +654,8 @@ void RNA_def_fluidsim(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Type", "Type of participation in the fluid simulation");
|
||||
RNA_def_property_update(prop, 0, "rna_FluidSettings_update_type");
|
||||
|
||||
//prop= RNA_def_property(srna, "ipo", PROP_POINTER, PROP_NONE);
|
||||
//RNA_def_property_ui_text(prop, "IPO Curves", "IPO curves used by fluid simulation settings");
|
||||
/*prop= RNA_def_property(srna, "ipo", PROP_POINTER, PROP_NONE); */
|
||||
/*RNA_def_property_ui_text(prop, "IPO Curves", "IPO curves used by fluid simulation settings"); */
|
||||
|
||||
/* types */
|
||||
|
||||
|
@@ -141,7 +141,7 @@ static void rna_def_gpencil_stroke(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Stroke Points", "Stroke data points");
|
||||
|
||||
/* Flags - Readonly type-info really... */
|
||||
// TODO...
|
||||
/* TODO... */
|
||||
}
|
||||
|
||||
static void rna_def_gpencil_frame(BlenderRNA *brna)
|
||||
@@ -162,12 +162,12 @@ static void rna_def_gpencil_frame(BlenderRNA *brna)
|
||||
/* Frame Number */
|
||||
prop = RNA_def_property(srna, "frame_number", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "framenum");
|
||||
RNA_def_property_range(prop, MINFRAME, MAXFRAME); // XXX note: this cannot occur on the same frame as another sketch
|
||||
RNA_def_property_range(prop, MINFRAME, MAXFRAME); /* XXX note: this cannot occur on the same frame as another sketch */
|
||||
RNA_def_property_ui_text(prop, "Frame Number", "The frame on which this sketch appears");
|
||||
|
||||
/* Flags */
|
||||
prop = RNA_def_property(srna, "is_edited", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_FRAME_PAINT); // XXX should it be editable?
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_FRAME_PAINT); /* XXX should it be editable? */
|
||||
RNA_def_property_ui_text(prop, "Paint Lock", "Frame is being edited (painted on)");
|
||||
|
||||
prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -266,7 +266,7 @@ static void rna_def_gpencil_layer(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Select", "Layer is selected for editing in the DopeSheet");
|
||||
RNA_def_property_update(prop, NC_SCREEN|ND_GPENCIL, NULL);
|
||||
|
||||
// XXX keep this option?
|
||||
/* XXX keep this option? */
|
||||
prop = RNA_def_property(srna, "show_points", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_LAYER_DRAWDEBUG);
|
||||
RNA_def_property_ui_text(prop, "Show Points", "Draw the points which make up the strokes (for debugging purposes)");
|
||||
@@ -284,8 +284,8 @@ static void rna_def_gpencil_layers(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
// FunctionRNA *func;
|
||||
// PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
|
||||
RNA_def_property_srna(cprop, "GreasePencilLayers");
|
||||
srna = RNA_def_struct(brna, "GreasePencilLayers", NULL);
|
||||
|
@@ -77,7 +77,7 @@ static void rna_Group_objects_unlink(Group *group, bContext *C, ReportList *repo
|
||||
static void rna_def_group_objects(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
{
|
||||
StructRNA *srna;
|
||||
// PropertyRNA *prop;
|
||||
/* PropertyRNA *prop; */
|
||||
|
||||
FunctionRNA *func;
|
||||
PropertyRNA *parm;
|
||||
|
@@ -141,7 +141,7 @@ static void rna_ImageUser_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *
|
||||
char *rna_ImageUser_path(PointerRNA *ptr)
|
||||
{
|
||||
if (ptr->id.data) {
|
||||
// ImageUser *iuser= ptr->data;
|
||||
/* ImageUser *iuser= ptr->data; */
|
||||
|
||||
switch (GS(((ID *)ptr->id.data)->name)) {
|
||||
case ID_TE:
|
||||
|
@@ -377,7 +377,7 @@ PointerRNA rna_pointer_inherit_refine(struct PointerRNA *ptr, struct StructRNA *
|
||||
int rna_parameter_size(struct PropertyRNA *parm);
|
||||
int rna_parameter_size_alloc(struct PropertyRNA *parm);
|
||||
|
||||
// XXX, these should not need to be defined here~!
|
||||
/* XXX, these should not need to be defined here~! */
|
||||
struct MTex *rna_mtex_texture_slots_add(struct ID *self, struct bContext *C, struct ReportList *reports);
|
||||
struct MTex *rna_mtex_texture_slots_create(struct ID *self, struct bContext *C, struct ReportList *reports, int index);
|
||||
void rna_mtex_texture_slots_clear(struct ID *self, struct bContext *C, struct ReportList *reports, int index);
|
||||
|
@@ -437,7 +437,7 @@ static char *rna_ShapeKeyPoint_path(PointerRNA *ptr)
|
||||
return BLI_sprintfN("shape_keys.key_blocks[\"%s\"].data[%d]", kb->name, index);
|
||||
}
|
||||
else
|
||||
return NULL; // XXX: there's really no way to resolve this...
|
||||
return NULL; /* XXX: there's really no way to resolve this... */
|
||||
}
|
||||
|
||||
#else
|
||||
|
@@ -667,7 +667,7 @@ static void rna_def_spot_lamp(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_Lamp_draw_update");
|
||||
|
||||
prop = RNA_def_property(srna, "spot_size", PROP_FLOAT, PROP_ANGLE);
|
||||
// RNA_def_property_float_sdna(prop, NULL, "spotsize");
|
||||
/* RNA_def_property_float_sdna(prop, NULL, "spotsize"); */
|
||||
RNA_def_property_range(prop, M_PI/180.0, M_PI);
|
||||
RNA_def_property_ui_text(prop, "Spot Size", "Angle of the spotlight beam");
|
||||
RNA_def_property_float_funcs(prop, "rna_Lamp_spot_size_get", "rna_Lamp_spot_size_set", NULL); /* only for deg/rad conversion */
|
||||
|
@@ -1146,7 +1146,7 @@ static void rna_def_material_volume(BlenderRNA *brna)
|
||||
static EnumPropertyItem prop_stepsize_items[] = {
|
||||
{MA_VOL_STEP_RANDOMIZED, "RANDOMIZED", 0, "Randomized", ""},
|
||||
{MA_VOL_STEP_CONSTANT, "CONSTANT", 0, "Constant", ""},
|
||||
//{MA_VOL_STEP_ADAPTIVE, "ADAPTIVE", 0, "Adaptive", ""},
|
||||
/*{MA_VOL_STEP_ADAPTIVE, "ADAPTIVE", 0, "Adaptive", ""}, */
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
srna = RNA_def_struct(brna, "MaterialVolume", NULL);
|
||||
|
@@ -44,8 +44,8 @@
|
||||
|
||||
void RNA_api_material(StructRNA *srna)
|
||||
{
|
||||
// FunctionRNA *func;
|
||||
// PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -254,12 +254,12 @@ static void rna_Smoke_set_type(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
ParticleSystem *psys = NULL;
|
||||
ParticleSettings *part = NULL;
|
||||
|
||||
// nothing changed
|
||||
/* nothing changed */
|
||||
if ((smd->type & MOD_SMOKE_TYPE_DOMAIN) && smd->domain)
|
||||
return;
|
||||
|
||||
smokeModifier_free(smd); // XXX TODO: completely free all 3 pointers
|
||||
smokeModifier_createType(smd); // create regarding of selected type
|
||||
smokeModifier_free(smd); /* XXX TODO: completely free all 3 pointers */
|
||||
smokeModifier_createType(smd); /* create regarding of selected type */
|
||||
|
||||
switch (smd->type) {
|
||||
case MOD_SMOKE_TYPE_DOMAIN:
|
||||
@@ -295,7 +295,7 @@ static void rna_Smoke_set_type(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
break;
|
||||
}
|
||||
|
||||
// update dependency since a domain - other type switch could have happened
|
||||
/* update dependency since a domain - other type switch could have happened */
|
||||
rna_Modifier_dependency_update(bmain, scene, ptr);
|
||||
}
|
||||
|
||||
@@ -654,9 +654,9 @@ static int rna_OceanModifier_is_build_enabled_get(PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
#ifdef WITH_OCEANSIM
|
||||
return 1;
|
||||
#else // WITH_OCEANSIM
|
||||
#else /* WITH_OCEANSIM */
|
||||
return 0;
|
||||
#endif // WITH_OCEANSIM
|
||||
#endif /* WITH_OCEANSIM */
|
||||
}
|
||||
|
||||
static void rna_OceanModifier_init_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
@@ -2909,7 +2909,7 @@ static void rna_def_modifier_ocean(BlenderRNA *brna)
|
||||
static EnumPropertyItem geometry_items[] = {
|
||||
{MOD_OCEAN_GEOM_GENERATE, "GENERATE", 0, "Generate", "Generate ocean surface geometry at the specified resolution"},
|
||||
{MOD_OCEAN_GEOM_DISPLACE, "DISPLACE", 0, "Displace", "Displace existing geometry according to simulation"},
|
||||
//{MOD_OCEAN_GEOM_SIM_ONLY, "SIM_ONLY", 0, "Sim Only", "Leaves geometry unchanged, but still runs simulation (to be used from texture)"},
|
||||
/*{MOD_OCEAN_GEOM_SIM_ONLY, "SIM_ONLY", 0, "Sim Only", "Leaves geometry unchanged, but still runs simulation (to be used from texture)"}, */
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
srna = RNA_def_struct(brna, "OceanModifier", "Modifier");
|
||||
@@ -3075,8 +3075,8 @@ static void rna_def_modifier_ocean(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "filepath", PROP_STRING, PROP_DIRPATH);
|
||||
RNA_def_property_string_sdna(prop, NULL, "cachepath");
|
||||
RNA_def_property_ui_text(prop, "Cache Path", "Path to a folder to store external baked images");
|
||||
//RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
// XXX how to update?
|
||||
/*RNA_def_property_update(prop, 0, "rna_Modifier_update"); */
|
||||
/* XXX how to update? */
|
||||
}
|
||||
|
||||
void RNA_def_modifier(BlenderRNA *brna)
|
||||
|
@@ -81,7 +81,7 @@ static char *rna_NlaStrip_path(PointerRNA *ptr)
|
||||
for (nlt = adt->nla_tracks.first; nlt; nlt = nlt->next) {
|
||||
for (nls = nlt->strips.first; nls; nls = nls->next) {
|
||||
if (nls == strip) {
|
||||
// XXX but if we animate like this, the control will never work...
|
||||
/* XXX but if we animate like this, the control will never work... */
|
||||
return BLI_sprintfN("animation_data.nla_tracks[\"%s\"].strips[\"%s\"]", nlt->name, strip->name);
|
||||
}
|
||||
}
|
||||
@@ -252,7 +252,7 @@ static void rna_NlaStrip_action_start_frame_set(PointerRNA *ptr, float value)
|
||||
data->actstart = value;
|
||||
|
||||
/* adjust the strip extents in response to this */
|
||||
// TODO: should the strip be moved backwards instead as a special case?
|
||||
/* TODO: should the strip be moved backwards instead as a special case? */
|
||||
BKE_nlastrip_recalculate_bounds(data);
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@ static void rna_def_nlastrip(BlenderRNA *brna)
|
||||
srna = RNA_def_struct(brna, "NlaStrip", NULL);
|
||||
RNA_def_struct_ui_text(srna, "NLA Strip", "A container referencing an existing Action");
|
||||
RNA_def_struct_path_func(srna, "rna_NlaStrip_path");
|
||||
RNA_def_struct_ui_icon(srna, ICON_NLA); // XXX
|
||||
RNA_def_struct_ui_icon(srna, ICON_NLA); /* XXX */
|
||||
|
||||
/* name property */
|
||||
prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
|
||||
@@ -397,7 +397,7 @@ static void rna_def_nlastrip(BlenderRNA *brna)
|
||||
/* Enums */
|
||||
prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "type");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); // XXX for now, not editable, since this is dangerous
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* XXX for now, not editable, since this is dangerous */
|
||||
RNA_def_property_enum_items(prop, prop_type_items);
|
||||
RNA_def_property_ui_text(prop, "Type", "Type of NLA Strip");
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_NLA, NULL); /* this will do? */
|
||||
@@ -507,7 +507,7 @@ static void rna_def_nlastrip(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Strip Time", "Frame of referenced Action to evaluate");
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_NLA, NULL); /* this will do? */
|
||||
|
||||
// TODO: should the animated_influence/time settings be animatable themselves?
|
||||
/* TODO: should the animated_influence/time settings be animatable themselves? */
|
||||
prop = RNA_def_property(srna, "use_animated_influence", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", NLASTRIP_FLAG_USR_INFLUENCE);
|
||||
RNA_def_property_boolean_funcs(prop, NULL, "rna_NlaStrip_animated_influence_set");
|
||||
@@ -523,7 +523,7 @@ static void rna_def_nlastrip(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "use_animated_time_cyclic", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", NLASTRIP_FLAG_USR_TIME_CYCLIC);
|
||||
RNA_def_property_ui_text(prop, "Cyclic Strip Time", "Cycle the animated time within the action start & end");
|
||||
RNA_def_property_update(prop, 0, "rna_NlaStrip_transform_update"); // is there a better update flag?
|
||||
RNA_def_property_update(prop, 0, "rna_NlaStrip_transform_update"); /* is there a better update flag? */
|
||||
|
||||
/* settings */
|
||||
prop = RNA_def_property(srna, "active", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -547,8 +547,8 @@ static void rna_def_nlastrip(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Reversed", "NLA Strip is played back in reverse order (only when timing is automatically determined)");
|
||||
RNA_def_property_update(prop, NC_ANIMATION|ND_NLA, NULL); /* this will do? */
|
||||
|
||||
// TODO:
|
||||
// - sync length
|
||||
/* TODO: */
|
||||
/* - sync length */
|
||||
}
|
||||
|
||||
static void rna_api_nlatrack_strips(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
|
@@ -1016,7 +1016,7 @@ static void def_whileloop(StructRNA *srna)
|
||||
|
||||
static void def_frame(StructRNA *srna)
|
||||
{
|
||||
// PropertyRNA *prop;
|
||||
/* PropertyRNA *prop; */
|
||||
|
||||
}
|
||||
|
||||
@@ -1437,7 +1437,7 @@ static void def_cmp_alpha_over(StructRNA *srna)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
// XXX: Tooltip
|
||||
/* XXX: Tooltip */
|
||||
prop = RNA_def_property(srna, "use_premultiply", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "custom1", 1);
|
||||
RNA_def_property_ui_text(prop, "Convert Premul", "");
|
||||
@@ -3056,7 +3056,7 @@ static void rna_def_node_socket(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
|
||||
/* XXX must be editable for group sockets. if necessary use a special rna definition for these */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_ui_text(prop, "Name", "Socket name");
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_NodeGroupSocket_update");
|
||||
|
@@ -71,7 +71,7 @@ static EnumPropertyItem parent_type_items[] = {
|
||||
{PARCURVE, "CURVE", 0, "Curve", "The object is parented to a curve"},
|
||||
{PARKEY, "KEY", 0, "Key", ""},
|
||||
{PARSKEL, "ARMATURE", 0, "Armature", ""},
|
||||
{PARSKEL, "LATTICE", 0, "Lattice", "The object is parented to a lattice"}, // PARSKEL reuse will give issues
|
||||
{PARSKEL, "LATTICE", 0, "Lattice", "The object is parented to a lattice"}, /* PARSKEL reuse will give issues */
|
||||
{PARVERT1, "VERTEX", 0, "Vertex", "The object is parented to a vertex"},
|
||||
{PARVERT3, "VERTEX_3", 0, "3 Vertices", ""},
|
||||
{PARBONE, "BONE", 0, "Bone", "The object is parented to a bone"},
|
||||
@@ -85,14 +85,14 @@ static EnumPropertyItem collision_bounds_items[] = {
|
||||
{OB_BOUND_CONVEX_HULL, "CONVEX_HULL", 0, "Convex Hull", ""},
|
||||
{OB_BOUND_TRIANGLE_MESH, "TRIANGLE_MESH", 0, "Triangle Mesh", ""},
|
||||
{OB_BOUND_CAPSULE, "CAPSULE", 0, "Capsule", ""},
|
||||
//{OB_DYN_MESH, "DYNAMIC_MESH", 0, "Dynamic Mesh", ""},
|
||||
/*{OB_DYN_MESH, "DYNAMIC_MESH", 0, "Dynamic Mesh", ""}, */
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
EnumPropertyItem metaelem_type_items[] = {
|
||||
{MB_BALL, "BALL", ICON_META_BALL, "Ball", ""},
|
||||
{MB_TUBE, "CAPSULE", ICON_META_CAPSULE, "Capsule", ""},
|
||||
{MB_PLANE, "PLANE", ICON_META_PLANE, "Plane", ""},
|
||||
{MB_ELIPSOID, "ELLIPSOID", ICON_META_ELLIPSOID, "Ellipsoid", ""}, // NOTE: typo at original definition!
|
||||
{MB_ELIPSOID, "ELLIPSOID", ICON_META_ELLIPSOID, "Ellipsoid", ""}, /* NOTE: typo at original definition! */
|
||||
{MB_CUBE, "CUBE", ICON_META_CUBE, "Cube", ""},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
@@ -406,9 +406,9 @@ static EnumPropertyItem *rna_Object_parent_type_itemf(bContext *UNUSED(C), Point
|
||||
if (par->type == OB_CURVE)
|
||||
RNA_enum_items_add_value(&item, &totitem, parent_type_items, PARCURVE);
|
||||
else if (par->type == OB_LATTICE)
|
||||
RNA_enum_items_add_value(&item, &totitem, &parent_type_items[4], PARSKEL); // special hack: prevents this overriding others
|
||||
RNA_enum_items_add_value(&item, &totitem, &parent_type_items[4], PARSKEL); /* special hack: prevents this overriding others */
|
||||
else if (par->type == OB_ARMATURE) {
|
||||
RNA_enum_items_add_value(&item, &totitem, &parent_type_items[3], PARSKEL); // special hack: prevents this being overrided
|
||||
RNA_enum_items_add_value(&item, &totitem, &parent_type_items[3], PARSKEL); /* special hack: prevents this being overrided */
|
||||
RNA_enum_items_add_value(&item, &totitem, parent_type_items, PARBONE);
|
||||
}
|
||||
else if (par->type == OB_MESH) {
|
||||
@@ -684,7 +684,7 @@ static void rna_Object_rotation_axis_angle_set(PointerRNA *ptr, const float *val
|
||||
ob->rotAngle = value[0];
|
||||
copy_v3_v3(ob->rotAxis, (float *)&value[1]);
|
||||
|
||||
// TODO: validate axis?
|
||||
/* TODO: validate axis? */
|
||||
}
|
||||
|
||||
static void rna_Object_rotation_mode_set(PointerRNA *ptr, int value)
|
||||
@@ -1686,11 +1686,11 @@ static void rna_def_object_modifiers(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "act_edbone");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Active EditBone", "Armatures active edit bone");
|
||||
//RNA_def_property_update(prop, 0, "rna_Armature_act_editbone_update");
|
||||
/*RNA_def_property_update(prop, 0, "rna_Armature_act_editbone_update"); */
|
||||
RNA_def_property_pointer_funcs(prop, NULL, "rna_Armature_act_edit_bone_set", NULL, NULL);
|
||||
|
||||
/* todo, redraw */
|
||||
// RNA_def_property_collection_active(prop, prop_act);
|
||||
/* RNA_def_property_collection_active(prop, prop_act); */
|
||||
#endif
|
||||
|
||||
/* add target */
|
||||
@@ -1727,8 +1727,8 @@ static void rna_def_object_particle_systems(BlenderRNA *brna, PropertyRNA *cprop
|
||||
|
||||
PropertyRNA *prop;
|
||||
|
||||
// FunctionRNA *func;
|
||||
// PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
|
||||
RNA_def_property_srna(cprop, "ParticleSystems");
|
||||
srna = RNA_def_struct(brna, "ParticleSystems", NULL);
|
||||
@@ -1781,7 +1781,7 @@ static void rna_def_object_vertex_groups(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
RNA_def_property_ui_text(prop, "Active Vertex Group Index", "Active index in vertex group array");
|
||||
RNA_def_property_update(prop, NC_GEOM|ND_DATA, "rna_Object_internal_update_data");
|
||||
|
||||
/* vertex groups */ // add_vertex_group
|
||||
/* vertex groups */ /* add_vertex_group */
|
||||
func = RNA_def_function(srna, "new", "rna_Object_vgroup_new");
|
||||
RNA_def_function_ui_description(func, "Add vertex group to object");
|
||||
RNA_def_string(func, "name", "Group", 0, "", "Vertex group name"); /* optional */
|
||||
@@ -1851,7 +1851,7 @@ static void rna_def_object(BlenderRNA *brna)
|
||||
{OB_DUPLIGROUP, "GROUP", 0, "Group", "Enable group instancing"},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
// XXX: this RNA enum define is currently duplicated for objects, since there is some text here which is not applicable
|
||||
/* XXX: this RNA enum define is currently duplicated for objects, since there is some text here which is not applicable */
|
||||
static EnumPropertyItem prop_rotmode_items[] = {
|
||||
{ROT_MODE_QUAT, "QUATERNION", 0, "Quaternion (WXYZ)", "No Gimbal Lock"},
|
||||
{ROT_MODE_XYZ, "XYZ", 0, "XYZ Euler", "XYZ Rotation Order - prone to Gimbal Lock (default)"},
|
||||
@@ -1941,7 +1941,7 @@ static void rna_def_object(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_DRAW, "rna_Object_dependency_update");
|
||||
|
||||
/* Track and Up flags */
|
||||
// XXX: these have been saved here for a bit longer (after old track was removed), since some other tools still refer to this
|
||||
/* XXX: these have been saved here for a bit longer (after old track was removed), since some other tools still refer to this */
|
||||
prop = RNA_def_property(srna, "track_axis", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "trackflag");
|
||||
RNA_def_property_enum_items(prop, track_items);
|
||||
@@ -2021,7 +2021,7 @@ static void rna_def_object(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "rotation_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "rotmode");
|
||||
RNA_def_property_enum_items(prop, prop_rotmode_items); // XXX move to using a single define of this someday
|
||||
RNA_def_property_enum_items(prop, prop_rotmode_items); /* XXX move to using a single define of this someday */
|
||||
RNA_def_property_enum_funcs(prop, NULL, "rna_Object_rotation_mode_set", NULL);
|
||||
RNA_def_property_ui_text(prop, "Rotation Mode", "");
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_TRANSFORM, "rna_Object_internal_update");
|
||||
@@ -2061,9 +2061,9 @@ static void rna_def_object(BlenderRNA *brna)
|
||||
"Extra rotation added to the rotation of the object (when using Quaternion rotations)");
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_TRANSFORM, "rna_Object_internal_update");
|
||||
|
||||
#if 0 // XXX not supported well yet...
|
||||
#if 0 /* XXX not supported well yet... */
|
||||
prop = RNA_def_property(srna, "delta_rotation_axis_angle", PROP_FLOAT, PROP_AXISANGLE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "dquat"); // FIXME: this is not a single field any more! (drotAxis and drotAngle)
|
||||
RNA_def_property_float_sdna(prop, NULL, "dquat"); /* FIXME: this is not a single field any more! (drotAxis and drotAngle) */
|
||||
RNA_def_property_float_array_default(prop, default_axisAngle);
|
||||
RNA_def_property_ui_text(prop, "Delta Rotation (Axis Angle)",
|
||||
"Extra rotation added to the rotation of the object (when using Axis-Angle rotations)");
|
||||
@@ -2092,13 +2092,13 @@ static void rna_def_object(BlenderRNA *brna)
|
||||
RNA_def_property_ui_icon(prop, ICON_UNLOCKED, 1);
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_TRANSFORM, "rna_Object_internal_update");
|
||||
|
||||
// XXX this is sub-optimal - it really should be included above, but due to technical reasons we can't do this!
|
||||
/* XXX this is sub-optimal - it really should be included above, but due to technical reasons we can't do this! */
|
||||
prop = RNA_def_property(srna, "lock_rotation_w", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "protectflag", OB_LOCK_ROTW);
|
||||
RNA_def_property_ui_icon(prop, ICON_UNLOCKED, 1);
|
||||
RNA_def_property_ui_text(prop, "Lock Rotation (4D Angle)",
|
||||
"Lock editing of 'angle' component of four-component rotations in the interface");
|
||||
// XXX this needs a better name
|
||||
/* XXX this needs a better name */
|
||||
prop = RNA_def_property(srna, "lock_rotations_4d", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "protectflag", OB_LOCK_ROT4D);
|
||||
RNA_def_property_ui_text(prop, "Lock Rotations (4D)",
|
||||
@@ -2152,7 +2152,7 @@ static void rna_def_object(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "constraints", PROP_COLLECTION, PROP_NONE);
|
||||
RNA_def_property_struct_type(prop, "Constraint");
|
||||
RNA_def_property_ui_text(prop, "Constraints", "Constraints affecting the transformation of the object");
|
||||
// RNA_def_property_collection_funcs(prop, 0, 0, 0, 0, 0, 0, 0, "constraints__add", "constraints__remove");
|
||||
/* RNA_def_property_collection_funcs(prop, 0, 0, 0, 0, 0, 0, 0, "constraints__add", "constraints__remove"); */
|
||||
rna_def_object_constraints(brna, prop);
|
||||
|
||||
/* game engine */
|
||||
@@ -2250,7 +2250,7 @@ static void rna_def_object(BlenderRNA *brna)
|
||||
rna_def_motionpath_common(srna);
|
||||
|
||||
/* slow parenting */
|
||||
// XXX: evil old crap
|
||||
/* XXX: evil old crap */
|
||||
prop = RNA_def_property(srna, "use_slow_parent", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "partype", PARSLOW);
|
||||
RNA_def_property_ui_text(prop, "Slow Parent", "Create a delay in the parent relationship (beware: this isn't renderfarm safe and may be invalid after jumping around the timeline)");
|
||||
@@ -2421,7 +2421,7 @@ static void rna_def_object(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "active_shape_key_index", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "shapenr");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); // XXX this is really unpredictable...
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); /* XXX this is really unpredictable... */
|
||||
RNA_def_property_int_funcs(prop, "rna_Object_active_shape_key_index_get", "rna_Object_active_shape_key_index_set", "rna_Object_active_shape_key_index_range");
|
||||
RNA_def_property_ui_text(prop, "Active Shape Key Index", "Current shape key index");
|
||||
RNA_def_property_update(prop, 0, "rna_Object_active_shape_update");
|
||||
|
@@ -39,9 +39,9 @@
|
||||
#include "DNA_object_types.h"
|
||||
#include "DNA_modifier_types.h"
|
||||
|
||||
// #include "BLO_sys_types.h" /* needed for intptr_t used in ED_mesh.h */
|
||||
/* #include "BLO_sys_types.h" *//* needed for intptr_t used in ED_mesh.h */
|
||||
|
||||
// #include "ED_mesh.h"
|
||||
/* #include "ED_mesh.h" */
|
||||
|
||||
|
||||
#ifdef RNA_RUNTIME
|
||||
@@ -350,7 +350,7 @@ int rna_Object_is_visible(Object *ob, Scene *sce)
|
||||
return !(ob->restrictflag & OB_RESTRICT_VIEW) && (ob->lay & sce->lay);
|
||||
}
|
||||
|
||||
/*
|
||||
#if 0
|
||||
static void rna_Mesh_assign_verts_to_group(Object *ob, bDeformGroup *group, int *indices, int totindex, float weight, int assignmode)
|
||||
{
|
||||
if (ob->type != OB_MESH) {
|
||||
@@ -370,11 +370,11 @@ static void rna_Mesh_assign_verts_to_group(Object *ob, bDeformGroup *group, int
|
||||
return;
|
||||
}
|
||||
|
||||
// makes a set of dVerts corresponding to the mVerts
|
||||
/* makes a set of dVerts corresponding to the mVerts */
|
||||
if (!me->dvert)
|
||||
create_dverts(&me->id);
|
||||
|
||||
// loop list adding verts to group
|
||||
/* loop list adding verts to group */
|
||||
for (i = 0; i < totindex; i++) {
|
||||
if (i < 0 || i >= me->totvert) {
|
||||
BKE_report(reports, RPT_ERROR, "Bad vertex index in list");
|
||||
@@ -384,7 +384,7 @@ static void rna_Mesh_assign_verts_to_group(Object *ob, bDeformGroup *group, int
|
||||
add_vert_defnr(ob, group_index, i, weight, assignmode);
|
||||
}
|
||||
}
|
||||
*/
|
||||
#endif
|
||||
|
||||
void rna_Object_ray_cast(Object *ob, ReportList *reports, float ray_start[3], float ray_end[3], float r_location[3], float r_normal[3], int *index)
|
||||
{
|
||||
|
@@ -535,11 +535,13 @@ static void rna_FieldSettings_dependency_update(Main *bmain, Scene *scene, Point
|
||||
Object *ob = (Object*)ptr->id.data;
|
||||
|
||||
/* do this before scene sort, that one checks for CU_PATH */
|
||||
/* XXX if(ob->type==OB_CURVE && ob->pd->forcefield==PFIELD_GUIDE) {
|
||||
#if 0 /* XXX */
|
||||
if (ob->type == OB_CURVE && ob->pd->forcefield == PFIELD_GUIDE) {
|
||||
Curve *cu = ob->data;
|
||||
cu->flag |= (CU_PATH|CU_3D);
|
||||
do_curvebuts(B_CU3D); // all curves too
|
||||
}*/
|
||||
do_curvebuts(B_CU3D); /* all curves too */
|
||||
}
|
||||
#endif
|
||||
|
||||
rna_FieldSettings_shape_update(bmain, scene, ptr);
|
||||
|
||||
@@ -723,8 +725,8 @@ static void rna_def_ptcache_point_caches(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
// FunctionRNA *func;
|
||||
// PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
|
||||
RNA_def_property_srna(cprop, "PointCaches");
|
||||
srna = RNA_def_struct(brna, "PointCaches", NULL);
|
||||
@@ -1270,13 +1272,13 @@ static void rna_def_field(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "use_radial_min", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", PFIELD_USEMINR);
|
||||
RNA_def_property_ui_text(prop, "Use Min", "Use a minimum radial distance for the field's fall-off");
|
||||
// "Use a minimum angle for the field's fall-off"
|
||||
/* "Use a minimum angle for the field's fall-off" */
|
||||
RNA_def_property_update(prop, 0, "rna_FieldSettings_update");
|
||||
|
||||
prop = RNA_def_property(srna, "use_radial_max", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", PFIELD_USEMAXR);
|
||||
RNA_def_property_ui_text(prop, "Use Max", "Use a maximum radial distance for the field to work");
|
||||
// "Use a maximum angle for the field to work"
|
||||
/* "Use a maximum angle for the field to work" */
|
||||
RNA_def_property_update(prop, 0, "rna_FieldSettings_update");
|
||||
|
||||
prop = RNA_def_property(srna, "use_object_coords", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -1398,7 +1400,7 @@ static void rna_def_field(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_FieldSettings_update");
|
||||
|
||||
/* Variables used for Curve Guide, already wrapped, used for other fields too */
|
||||
// falloff_power, use_max_distance, maximum_distance
|
||||
/* falloff_power, use_max_distance, maximum_distance */
|
||||
}
|
||||
|
||||
static void rna_def_game_softbody(BlenderRNA *brna)
|
||||
|
@@ -412,9 +412,9 @@ static void rna_PartSettings_start_set(struct PointerRNA *ptr, float value)
|
||||
if (value > settings->end)
|
||||
value = settings->end;
|
||||
|
||||
//if(settings->type==PART_REACTOR && value < 1.0)
|
||||
// value = 1.0;
|
||||
//else
|
||||
/*if(settings->type==PART_REACTOR && value < 1.0) */
|
||||
/* value = 1.0; */
|
||||
/*else */
|
||||
if (value < MINAFRAMEF)
|
||||
value = MINAFRAMEF;
|
||||
|
||||
@@ -720,9 +720,9 @@ static void rna_ParticleDupliWeight_name_get(PointerRNA *ptr, char *str)
|
||||
|
||||
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;
|
||||
//else
|
||||
/*if(part->type==PART_REACTOR) */
|
||||
/* return part_reactor_from_items; */
|
||||
/*else */
|
||||
return part_from_items;
|
||||
}
|
||||
|
||||
@@ -954,17 +954,17 @@ static void rna_def_particle_key(BlenderRNA *brna)
|
||||
static void rna_def_child_particle(BlenderRNA *brna)
|
||||
{
|
||||
StructRNA *srna;
|
||||
//PropertyRNA *prop;
|
||||
/*PropertyRNA *prop; */
|
||||
|
||||
srna = RNA_def_struct(brna, "ChildParticle", NULL);
|
||||
RNA_def_struct_ui_text(srna, "Child Particle", "Child particle interpolated from simulated or edited particles");
|
||||
|
||||
// int num, parent; /* num is face index on the final derived mesh */
|
||||
/* int num, parent; *//* num is face index on the final derived mesh */
|
||||
|
||||
// int pa[4]; /* nearest particles to the child, used for the interpolation */
|
||||
// float w[4]; /* interpolation weights for the above particles */
|
||||
// float fuv[4], foffset; /* face vertex weights and offset */
|
||||
// float rand[3];
|
||||
/* int pa[4]; *//* nearest particles to the child, used for the interpolation */
|
||||
/* float w[4]; *//* interpolation weights for the above particles */
|
||||
/* float fuv[4], foffset; *//* face vertex weights and offset */
|
||||
/* float rand[3]; */
|
||||
}
|
||||
|
||||
static void rna_def_particle(BlenderRNA *brna)
|
||||
@@ -973,7 +973,7 @@ static void rna_def_particle(BlenderRNA *brna)
|
||||
PropertyRNA *prop;
|
||||
|
||||
static EnumPropertyItem alive_items[] = {
|
||||
//{PARS_KILLED, "KILLED", 0, "Killed", ""},
|
||||
/*{PARS_KILLED, "KILLED", 0, "Killed", ""}, */
|
||||
{PARS_DEAD, "DEAD", 0, "Dead", ""},
|
||||
{PARS_UNBORN, "UNBORN", 0, "Unborn", ""},
|
||||
{PARS_ALIVE, "ALIVE", 0, "Alive", ""},
|
||||
@@ -1029,34 +1029,34 @@ static void rna_def_particle(BlenderRNA *brna)
|
||||
RNA_def_property_collection_sdna(prop, NULL, "keys", "totkey");
|
||||
RNA_def_property_struct_type(prop, "ParticleKey");
|
||||
RNA_def_property_ui_text(prop, "Keyed States", "");
|
||||
//
|
||||
// float fuv[4], foffset; /* coordinates on face/edge number "num" and depth along*/
|
||||
// /* face normal for volume emission */
|
||||
/* */
|
||||
/* float fuv[4], foffset; *//* coordinates on face/edge number "num" and depth along*/
|
||||
/* *//* face normal for volume emission */
|
||||
|
||||
prop = RNA_def_property(srna, "birth_time", PROP_FLOAT, PROP_TIME);
|
||||
RNA_def_property_float_sdna(prop, NULL, "time");
|
||||
// RNA_def_property_range(prop, lowerLimitf, upperLimitf);
|
||||
/* RNA_def_property_range(prop, lowerLimitf, upperLimitf); */
|
||||
RNA_def_property_ui_text(prop, "Birth Time", "");
|
||||
|
||||
prop = RNA_def_property(srna, "lifetime", PROP_FLOAT, PROP_TIME);
|
||||
// RNA_def_property_range(prop, lowerLimitf, upperLimitf);
|
||||
/* RNA_def_property_range(prop, lowerLimitf, upperLimitf); */
|
||||
RNA_def_property_ui_text(prop, "Lifetime", "");
|
||||
|
||||
prop = RNA_def_property(srna, "die_time", PROP_FLOAT, PROP_TIME);
|
||||
RNA_def_property_float_sdna(prop, NULL, "dietime");
|
||||
// RNA_def_property_range(prop, lowerLimitf, upperLimitf);
|
||||
/* RNA_def_property_range(prop, lowerLimitf, upperLimitf); */
|
||||
RNA_def_property_ui_text(prop, "Die Time", "");
|
||||
|
||||
prop = RNA_def_property(srna, "size", PROP_FLOAT, PROP_NONE);
|
||||
// RNA_def_property_range(prop, lowerLimitf, upperLimitf);
|
||||
/* RNA_def_property_range(prop, lowerLimitf, upperLimitf); */
|
||||
RNA_def_property_ui_text(prop, "Size", "");
|
||||
|
||||
//
|
||||
// int num; /* index to vert/edge/face */
|
||||
// int num_dmcache; /* index to derived mesh data (face) to avoid slow lookups */
|
||||
// int pad;
|
||||
//
|
||||
// int totkey;
|
||||
/* */
|
||||
/* int num; *//* index to vert/edge/face */
|
||||
/* int num_dmcache; *//* index to derived mesh data (face) to avoid slow lookups */
|
||||
/* int pad; */
|
||||
/* */
|
||||
/* int totkey; */
|
||||
|
||||
/* flag */
|
||||
prop = RNA_def_property(srna, "is_exist", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -1074,7 +1074,7 @@ static void rna_def_particle(BlenderRNA *brna)
|
||||
RNA_def_property_enum_items(prop, alive_items);
|
||||
RNA_def_property_ui_text(prop, "Alive State", "");
|
||||
|
||||
// short rt2;
|
||||
/* short rt2; */
|
||||
}
|
||||
|
||||
static void rna_def_particle_dupliweight(BlenderRNA *brna)
|
||||
@@ -1458,7 +1458,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
|
||||
static EnumPropertyItem type_items[] = {
|
||||
{PART_EMITTER, "EMITTER", 0, "Emitter", ""},
|
||||
//{PART_REACTOR, "REACTOR", 0, "Reactor", ""},
|
||||
/*{PART_REACTOR, "REACTOR", 0, "Reactor", ""}, */
|
||||
{PART_HAIR, "HAIR", 0, "Hair", ""},
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
};
|
||||
@@ -1506,7 +1506,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
};
|
||||
|
||||
//TODO: names, tooltips
|
||||
/*TODO: names, tooltips */
|
||||
#if 0
|
||||
static EnumPropertyItem rot_from_items[] = {
|
||||
{PART_ROT_KEYS, "KEYS", 0, "keys", ""},
|
||||
@@ -1873,9 +1873,9 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_Particle_redo");
|
||||
|
||||
|
||||
//TODO: not found in UI, readonly?
|
||||
/*TODO: not found in UI, readonly? */
|
||||
prop = RNA_def_property(srna, "keys_step", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 0, SHRT_MAX);//TODO:min,max
|
||||
RNA_def_property_range(prop, 0, SHRT_MAX);/*TODO:min,max */
|
||||
RNA_def_property_ui_text(prop, "Keys Step", "");
|
||||
|
||||
/* adaptive path rendering */
|
||||
@@ -1902,7 +1902,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_Particle_redo");
|
||||
|
||||
|
||||
// not used anywhere, why is this in DNA???
|
||||
/* not used anywhere, why is this in DNA??? */
|
||||
#if 0
|
||||
prop = RNA_def_property(srna, "rotate_from", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "rotfrom");
|
||||
@@ -2028,7 +2028,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
|
||||
/* general values */
|
||||
prop = RNA_def_property(srna, "frame_start", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "sta");//optional if prop names are the same
|
||||
RNA_def_property_float_sdna(prop, NULL, "sta");/*optional if prop names are the same */
|
||||
RNA_def_property_range(prop, MINAFRAMEF, MAXFRAMEF);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_PartSettings_start_set", NULL);
|
||||
@@ -2109,7 +2109,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Number", "Total number of particles");
|
||||
RNA_def_property_update(prop, 0, "rna_Particle_reset");
|
||||
|
||||
prop= RNA_def_property(srna, "userjit", PROP_INT, PROP_UNSIGNED);//TODO: can we get a better name for userjit?
|
||||
prop = RNA_def_property(srna, "userjit", PROP_INT, PROP_UNSIGNED);/*TODO: can we get a better name for userjit? */
|
||||
RNA_def_property_int_sdna(prop, NULL, "userjit");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0, 1000);
|
||||
@@ -2139,7 +2139,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
|
||||
/* initial velocity factors */
|
||||
prop = RNA_def_property(srna, "normal_factor", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "normfac");//optional if prop names are the same
|
||||
RNA_def_property_float_sdna(prop, NULL, "normfac");/*optional if prop names are the same */
|
||||
RNA_def_property_range(prop, -1000.0f, 1000.0f);
|
||||
RNA_def_property_ui_range(prop, 0, 100, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Normal", "Let the surface normal give the particle a starting speed");
|
||||
@@ -2153,7 +2153,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_Particle_reset");
|
||||
|
||||
prop = RNA_def_property(srna, "factor_random", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "randfac");//optional if prop names are the same
|
||||
RNA_def_property_float_sdna(prop, NULL, "randfac");/*optional if prop names are the same */
|
||||
RNA_def_property_range(prop, 0.0f, 200.0f);
|
||||
RNA_def_property_ui_range(prop, 0, 100, 1, 3);
|
||||
RNA_def_property_ui_text(prop, "Random", "Give the starting speed a random variation");
|
||||
@@ -2275,7 +2275,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
|
||||
|
||||
/* children */
|
||||
prop = RNA_def_property(srna, "child_nbr", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "child_nbr");//optional if prop names are the same
|
||||
RNA_def_property_int_sdna(prop, NULL, "child_nbr");/*optional if prop names are the same */
|
||||
RNA_def_property_range(prop, 0, 100000);
|
||||
RNA_def_property_ui_range(prop, 0, 1000, 1, 0);
|
||||
RNA_def_property_ui_text(prop, "Children Per Parent", "Number of children/parent");
|
||||
@@ -2597,13 +2597,13 @@ static void rna_def_particle_target(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "time", PROP_FLOAT, PROP_TIME);
|
||||
RNA_def_property_float_sdna(prop, NULL, "time");
|
||||
RNA_def_property_range(prop, 0.0, 30000.0f); //TODO: replace 30000 with MAXFRAMEF when available in 2.5
|
||||
RNA_def_property_range(prop, 0.0, 30000.0f); /*TODO: replace 30000 with MAXFRAMEF when available in 2.5 */
|
||||
RNA_def_property_ui_text(prop, "Time", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Particle_target_redo");
|
||||
|
||||
prop = RNA_def_property(srna, "duration", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "duration");
|
||||
RNA_def_property_range(prop, 0.0, 30000.0f); //TODO: replace 30000 with MAXFRAMEF when available in 2.5
|
||||
RNA_def_property_range(prop, 0.0, 30000.0f); /*TODO: replace 30000 with MAXFRAMEF when available in 2.5 */
|
||||
RNA_def_property_ui_text(prop, "Duration", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Particle_target_redo");
|
||||
|
||||
@@ -2638,7 +2638,7 @@ static void rna_def_particle_system(BlenderRNA *brna)
|
||||
/* access to particle settings is redirected through functions */
|
||||
/* to allow proper id-buttons functionality */
|
||||
prop = RNA_def_property(srna, "settings", PROP_POINTER, PROP_NONE);
|
||||
//RNA_def_property_pointer_sdna(prop, NULL, "part");
|
||||
/*RNA_def_property_pointer_sdna(prop, NULL, "part"); */
|
||||
RNA_def_property_struct_type(prop, "ParticleSettings");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE|PROP_NEVER_NULL);
|
||||
RNA_def_property_pointer_funcs(prop, "rna_particle_settings_get", "rna_particle_settings_set", NULL, NULL);
|
||||
@@ -2734,7 +2734,7 @@ static void rna_def_particle_system(BlenderRNA *brna)
|
||||
/* vertex groups */
|
||||
|
||||
/* note, internally store as ints, access as strings */
|
||||
#if 0 // int access. works ok but isnt useful for the UI
|
||||
#if 0 /* int access. works ok but isnt useful for the UI */
|
||||
prop = RNA_def_property(srna, "vertex_group_density", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "vgroup[0]");
|
||||
RNA_def_property_ui_text(prop, "Vertex Group Density", "Vertex group to control density");
|
||||
|
@@ -45,7 +45,7 @@
|
||||
|
||||
|
||||
|
||||
// XXX: this RNA enum define is currently duplicated for objects, since there is some text here which is not applicable
|
||||
/* XXX: this RNA enum define is currently duplicated for objects, since there is some text here which is not applicable */
|
||||
EnumPropertyItem posebone_rotmode_items[] = {
|
||||
{ROT_MODE_QUAT, "QUATERNION", 0, "Quaternion (WXYZ)", "No Gimbal Lock (default)"},
|
||||
{ROT_MODE_XYZ, "XYZ", 0, "XYZ Euler", "XYZ Rotation Order (prone to Gimbal Lock)"},
|
||||
@@ -86,14 +86,14 @@ EnumPropertyItem posebone_rotmode_items[] = {
|
||||
|
||||
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);
|
||||
/* 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 *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
// XXX when to use this? ob->pose->flag |= (POSE_LOCKED|POSE_DO_UNLOCK);
|
||||
/* XXX when to use this? ob->pose->flag |= (POSE_LOCKED|POSE_DO_UNLOCK); */
|
||||
Object *ob = ptr->id.data;
|
||||
|
||||
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
||||
@@ -168,7 +168,7 @@ static void rna_Pose_ik_solver_set(struct PointerRNA *ptr, int value)
|
||||
bPose *pose = (bPose*)ptr->data;
|
||||
|
||||
if (pose->iksolver != value) {
|
||||
// the solver has changed, must clean any temporary structures
|
||||
/* the solver has changed, must clean any temporary structures */
|
||||
BIK_clear_data(pose);
|
||||
if (pose->ikparam) {
|
||||
MEM_freeN(pose->ikparam);
|
||||
@@ -184,7 +184,7 @@ static void rna_Pose_ik_solver_update(Main *bmain, Scene *scene, PointerRNA *ptr
|
||||
Object *ob = ptr->id.data;
|
||||
bPose *pose = ptr->data;
|
||||
|
||||
pose->flag |= POSE_RECALC; // checks & sorts pose channels
|
||||
pose->flag |= POSE_RECALC; /* checks & sorts pose channels */
|
||||
DAG_scene_sort(bmain, scene);
|
||||
|
||||
update_pose_constraint_flags(pose);
|
||||
@@ -213,7 +213,7 @@ static void rna_PoseChannel_rotation_axis_angle_set(PointerRNA *ptr, const float
|
||||
pchan->rotAngle = value[0];
|
||||
copy_v3_v3(pchan->rotAxis, (float *)&value[1]);
|
||||
|
||||
// TODO: validate axis?
|
||||
/* TODO: validate axis? */
|
||||
}
|
||||
|
||||
static void rna_PoseChannel_rotation_mode_set(PointerRNA *ptr, int value)
|
||||
@@ -308,7 +308,7 @@ static void rna_Itasc_update_rebuild(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
Object *ob = ptr->id.data;
|
||||
bPose *pose = ob->pose;
|
||||
|
||||
pose->flag |= POSE_RECALC; // checks & sorts pose channels
|
||||
pose->flag |= POSE_RECALC; /* checks & sorts pose channels */
|
||||
rna_Itasc_update(bmain, scene, ptr);
|
||||
}
|
||||
|
||||
@@ -482,9 +482,9 @@ static void rna_PoseChannel_active_constraint_set(PointerRNA *ptr, PointerRNA va
|
||||
|
||||
static bConstraint *rna_PoseChannel_constraints_new(bPoseChannel *pchan, int type)
|
||||
{
|
||||
//WM_main_add_notifier(NC_OBJECT|ND_CONSTRAINT|NA_ADDED, object);
|
||||
// TODO, pass object also
|
||||
// TODO, new pose bones don't have updated draw flags
|
||||
/*WM_main_add_notifier(NC_OBJECT|ND_CONSTRAINT|NA_ADDED, object); */
|
||||
/* TODO, pass object also */
|
||||
/* TODO, new pose bones don't have updated draw flags */
|
||||
return add_pose_constraint(NULL, pchan, NULL, type);
|
||||
}
|
||||
|
||||
@@ -664,7 +664,7 @@ static void rna_def_bone_group(BlenderRNA *brna)
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_BoneGroup_name_set");
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
|
||||
// TODO: add some runtime-collections stuff to access grouped bones
|
||||
/* TODO: add some runtime-collections stuff to access grouped bones */
|
||||
|
||||
/* color set + colors */
|
||||
prop = RNA_def_property(srna, "color_set", PROP_ENUM, PROP_NONE);
|
||||
@@ -674,7 +674,7 @@ static void rna_def_bone_group(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Color Set", "Custom color set to use");
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update");
|
||||
|
||||
// TODO: editing the colors for this should result in changes to the color type...
|
||||
/* TODO: editing the colors for this should result in changes to the color type... */
|
||||
prop = RNA_def_property(srna, "colors", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_flag(prop, PROP_NEVER_NULL);
|
||||
RNA_def_property_struct_type(prop, "ThemeBoneColorSet");
|
||||
@@ -790,7 +790,7 @@ static void rna_def_pose_channel(BlenderRNA *brna)
|
||||
RNA_def_property_float_sdna(prop, NULL, "loc");
|
||||
RNA_def_property_editable_array_func(prop, "rna_PoseChannel_location_editable");
|
||||
RNA_def_property_ui_text(prop, "Location", "");
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); // XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); /* XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too */
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update");
|
||||
|
||||
prop = RNA_def_property(srna, "scale", PROP_FLOAT, PROP_XYZ);
|
||||
@@ -798,7 +798,7 @@ static void rna_def_pose_channel(BlenderRNA *brna)
|
||||
RNA_def_property_editable_array_func(prop, "rna_PoseChannel_scale_editable");
|
||||
RNA_def_property_float_array_default(prop, default_scale);
|
||||
RNA_def_property_ui_text(prop, "Scale", "");
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); // XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); /* XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too */
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update");
|
||||
|
||||
prop = RNA_def_property(srna, "rotation_quaternion", PROP_FLOAT, PROP_QUATERNION);
|
||||
@@ -806,7 +806,7 @@ static void rna_def_pose_channel(BlenderRNA *brna)
|
||||
RNA_def_property_editable_array_func(prop, "rna_PoseChannel_rotation_4d_editable");
|
||||
RNA_def_property_float_array_default(prop, default_quat);
|
||||
RNA_def_property_ui_text(prop, "Quaternion Rotation", "Rotation in Quaternions");
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); // XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); /* XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too */
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update");
|
||||
|
||||
/* XXX: for axis-angle, it would have been nice to have 2 separate fields for UI purposes, but
|
||||
@@ -819,21 +819,21 @@ static void rna_def_pose_channel(BlenderRNA *brna)
|
||||
RNA_def_property_editable_array_func(prop, "rna_PoseChannel_rotation_4d_editable");
|
||||
RNA_def_property_float_array_default(prop, default_axisAngle);
|
||||
RNA_def_property_ui_text(prop, "Axis-Angle Rotation", "Angle of Rotation for Axis-Angle rotation representation");
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); // XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); /* XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too */
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update");
|
||||
|
||||
prop = RNA_def_property(srna, "rotation_euler", PROP_FLOAT, PROP_EULER);
|
||||
RNA_def_property_float_sdna(prop, NULL, "eul");
|
||||
RNA_def_property_editable_array_func(prop, "rna_PoseChannel_rotation_euler_editable");
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); // XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); /* XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too */
|
||||
RNA_def_property_ui_text(prop, "Euler Rotation", "Rotation in Eulers");
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update");
|
||||
|
||||
prop = RNA_def_property(srna, "rotation_mode", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "rotmode");
|
||||
RNA_def_property_enum_items(prop, posebone_rotmode_items); // XXX move to using a single define of this someday
|
||||
RNA_def_property_enum_items(prop, posebone_rotmode_items); /* XXX move to using a single define of this someday */
|
||||
RNA_def_property_enum_funcs(prop, NULL, "rna_PoseChannel_rotation_mode_set", NULL);
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); // XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable"); /* XXX... disabled, since proxy-locked layers are currently used for ensuring proxy-syncing too */
|
||||
RNA_def_property_ui_text(prop, "Rotation Mode", "");
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update");
|
||||
|
||||
@@ -1065,7 +1065,7 @@ static void rna_def_pose_channel(BlenderRNA *brna)
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable");
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update");
|
||||
|
||||
// XXX this is sub-optimal - it really should be included above, but due to technical reasons we can't do this!
|
||||
/* XXX this is sub-optimal - it really should be included above, but due to technical reasons we can't do this! */
|
||||
prop = RNA_def_property(srna, "lock_rotation_w", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "protectflag", OB_LOCK_ROTW);
|
||||
RNA_def_property_ui_text(prop, "Lock Rotation (4D Angle)",
|
||||
@@ -1074,7 +1074,7 @@ static void rna_def_pose_channel(BlenderRNA *brna)
|
||||
RNA_def_property_editable_func(prop, "rna_PoseChannel_proxy_editable");
|
||||
RNA_def_property_update(prop, NC_OBJECT|ND_POSE, "rna_Pose_update");
|
||||
|
||||
// XXX this needs a better name
|
||||
/* XXX this needs a better name */
|
||||
prop = RNA_def_property(srna, "lock_rotations_4d", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "protectflag", OB_LOCK_ROT4D);
|
||||
RNA_def_property_ui_text(prop, "Lock Rotations (4D)",
|
||||
@@ -1225,8 +1225,8 @@ static void rna_def_bone_groups(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
// FunctionRNA *func;
|
||||
// PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
|
||||
RNA_def_property_srna(cprop, "BoneGroups");
|
||||
srna = RNA_def_struct(brna, "BoneGroups", NULL);
|
||||
|
@@ -158,7 +158,7 @@ void RNA_def_gameproperty(BlenderRNA *brna)
|
||||
RNA_def_struct_sdna(srna, "bProperty");
|
||||
|
||||
prop = RNA_def_property(srna, "value", PROP_FLOAT, PROP_NONE);
|
||||
// RNA_def_property_float_sdna(prop, NULL, "data");
|
||||
/* RNA_def_property_float_sdna(prop, NULL, "data"); */
|
||||
RNA_def_property_ui_text(prop, "Value", "Property value");
|
||||
RNA_def_property_range(prop, -10000, 10000);
|
||||
RNA_def_property_float_funcs(prop, "rna_GameFloatProperty_value_get", "rna_GameFloatProperty_value_set", NULL);
|
||||
@@ -170,7 +170,7 @@ void RNA_def_gameproperty(BlenderRNA *brna)
|
||||
RNA_def_struct_sdna(srna, "bProperty");
|
||||
|
||||
prop = RNA_def_property(srna, "value", PROP_FLOAT, PROP_NONE);
|
||||
// RNA_def_property_float_sdna(prop, NULL, "data");
|
||||
/* RNA_def_property_float_sdna(prop, NULL, "data"); */
|
||||
RNA_def_property_ui_text(prop, "Value", "Property value");
|
||||
RNA_def_property_range(prop, -10000, 10000);
|
||||
RNA_def_property_float_funcs(prop, "rna_GameFloatProperty_value_get", "rna_GameFloatProperty_value_set", NULL);
|
||||
|
@@ -261,7 +261,7 @@ void rna_RenderPass_rect_set(PointerRNA *ptr, const float *values)
|
||||
memcpy(rpass->rect, values, sizeof(float)*rpass->rectx*rpass->recty*rpass->channels);
|
||||
}
|
||||
|
||||
#else // RNA_RUNTIME
|
||||
#else /* RNA_RUNTIME */
|
||||
|
||||
static void rna_def_render_engine(BlenderRNA *brna)
|
||||
{
|
||||
@@ -523,5 +523,5 @@ void RNA_def_render(BlenderRNA *brna)
|
||||
rna_def_render_pass(brna);
|
||||
}
|
||||
|
||||
#endif // RNA_RUNTIME
|
||||
#endif /* RNA_RUNTIME */
|
||||
|
||||
|
@@ -514,7 +514,7 @@ static int rna_Property_readonly_get(PointerRNA *ptr)
|
||||
/* dont use this becaure it will call functions that check the internal
|
||||
* data for introspection we only need to know if it can be edited so the
|
||||
* flag is better for this */
|
||||
// return RNA_property_editable(ptr, prop);
|
||||
/* return RNA_property_editable(ptr, prop); */
|
||||
return prop->flag & PROP_EDITABLE ? 0:1;
|
||||
}
|
||||
|
||||
@@ -802,12 +802,12 @@ static int rna_enum_check_separator(CollectionPropertyIterator *UNUSED(iter), vo
|
||||
static void rna_EnumProperty_items_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
|
||||
{
|
||||
PropertyRNA *prop = (PropertyRNA*)ptr->data;
|
||||
// EnumPropertyRNA *eprop; // UNUSED
|
||||
/* EnumPropertyRNA *eprop; *//* UNUSED */
|
||||
EnumPropertyItem *item = NULL;
|
||||
int totitem, free = 0;
|
||||
|
||||
rna_idproperty_check(&prop, ptr);
|
||||
// eprop= (EnumPropertyRNA*)prop;
|
||||
/* eprop= (EnumPropertyRNA*)prop; */
|
||||
|
||||
RNA_property_enum_items(NULL, ptr, prop, &item, &totitem, &free);
|
||||
rna_iterator_array_begin(iter, (void*)item, sizeof(EnumPropertyItem), totitem, free, rna_enum_check_separator);
|
||||
|
@@ -201,7 +201,7 @@ EnumPropertyItem image_type_items[] = {
|
||||
|
||||
{0, "", 0, "Movie", NULL},
|
||||
#ifdef _WIN32
|
||||
{R_IMF_IMTYPE_AVICODEC, "AVICODEC", ICON_FILE_MOVIE, "AVI Codec", "Output video in AVI format"}, // XXX Missing codec menu
|
||||
{R_IMF_IMTYPE_AVICODEC, "AVICODEC", ICON_FILE_MOVIE, "AVI Codec", "Output video in AVI format"}, /* XXX Missing codec menu */
|
||||
#endif
|
||||
{R_IMF_IMTYPE_AVIJPEG, "AVI_JPEG", ICON_FILE_MOVIE, "AVI JPEG", "Output video in AVI JPEG format"},
|
||||
{R_IMF_IMTYPE_AVIRAW, "AVI_RAW", ICON_FILE_MOVIE, "AVI Raw", "Output video in AVI Raw format"},
|
||||
@@ -502,7 +502,7 @@ static void rna_Scene_preview_range_start_frame_set(PointerRNA *ptr, int value)
|
||||
/* check if enabled already */
|
||||
if ((data->r.flag & SCER_PRV_RANGE) == 0) {
|
||||
/* set end of preview range to end frame, then clamp as per normal */
|
||||
// TODO: or just refuse to set instead?
|
||||
/* TODO: or just refuse to set instead? */
|
||||
data->r.pefra = data->r.efra;
|
||||
}
|
||||
|
||||
@@ -518,7 +518,7 @@ static void rna_Scene_preview_range_end_frame_set(PointerRNA *ptr, int value)
|
||||
/* check if enabled already */
|
||||
if ((data->r.flag & SCER_PRV_RANGE) == 0) {
|
||||
/* set start of preview range to start frame, then clamp as per normal */
|
||||
// TODO: or just refuse to set instead?
|
||||
/* TODO: or just refuse to set instead? */
|
||||
data->r.psfra = data->r.sfra;
|
||||
}
|
||||
|
||||
@@ -566,8 +566,8 @@ static void rna_Scene_active_keying_set_index_set(PointerRNA *ptr, int value)
|
||||
scene->active_keyingset = value+1;
|
||||
}
|
||||
|
||||
// XXX: evil... builtin_keyingsets is defined in keyingsets.c!
|
||||
// TODO: make API function to retrieve this...
|
||||
/* XXX: evil... builtin_keyingsets is defined in keyingsets.c! */
|
||||
/* TODO: make API function to retrieve this... */
|
||||
extern ListBase builtin_keyingsets;
|
||||
|
||||
static void rna_Scene_all_keyingsets_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
|
||||
@@ -1586,7 +1586,7 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "use_grease_pencil_sessions", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "gpencil_flags", GP_TOOL_FLAG_PAINTSESSIONS_ON);
|
||||
RNA_def_property_ui_text(prop, "Use Sketching Sessions", "Allow drawing multiple strokes at a time with Grease Pencil");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); // xxx: need toolbar to be redrawn...
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_TOOLSETTINGS, NULL); /* xxx: need toolbar to be redrawn... */
|
||||
|
||||
/* Auto Keying */
|
||||
prop = RNA_def_property(srna, "use_keyframe_insert_auto", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -1655,7 +1655,7 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "use_bone_sketching", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "bone_sketching", BONE_SKETCHING);
|
||||
RNA_def_property_ui_text(prop, "Use Bone Sketching", "DOC BROKEN");
|
||||
// RNA_def_property_ui_icon(prop, ICON_EDIT, 0);
|
||||
/* RNA_def_property_ui_icon(prop, ICON_EDIT, 0); */
|
||||
|
||||
prop = RNA_def_property(srna, "use_etch_quick", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "bone_sketching", BONE_SKETCHING_QUICK);
|
||||
@@ -2281,10 +2281,10 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
|
||||
static EnumPropertyItem physics_engine_items[] = {
|
||||
{WOPHY_NONE, "NONE", 0, "None", "Don't use a physics engine"},
|
||||
//{WOPHY_ENJI, "ENJI", 0, "Enji", ""},
|
||||
//{WOPHY_SUMO, "SUMO", 0, "Sumo (Deprecated)", ""},
|
||||
//{WOPHY_DYNAMO, "DYNAMO", 0, "Dynamo", ""},
|
||||
//{WOPHY_ODE, "ODE", 0, "ODE", ""},
|
||||
/*{WOPHY_ENJI, "ENJI", 0, "Enji", ""}, */
|
||||
/*{WOPHY_SUMO, "SUMO", 0, "Sumo (Deprecated)", ""}, */
|
||||
/*{WOPHY_DYNAMO, "DYNAMO", 0, "Dynamo", ""}, */
|
||||
/*{WOPHY_ODE, "ODE", 0, "ODE", ""}, */
|
||||
{WOPHY_BULLET, "BULLET", 0, "Bullet", "Use the Bullet physics engine"},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
@@ -2335,7 +2335,7 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Exit Key", "The key that exits the Game Engine");
|
||||
RNA_def_property_update(prop, NC_SCENE, NULL);
|
||||
|
||||
// Do we need it here ? (since we already have it in World
|
||||
/* Do we need it here ? (since we already have it in World */
|
||||
prop = RNA_def_property(srna, "frequency", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "freqplay");
|
||||
RNA_def_property_range(prop, 4, 2000);
|
||||
@@ -2483,15 +2483,15 @@ static void rna_def_scene_game_data(BlenderRNA *brna)
|
||||
|
||||
/* mode */
|
||||
prop = RNA_def_property(srna, "use_occlusion_culling", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", (1 << 5)); //XXX mode hardcoded // WO_DBVT_CULLING
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", (1 << 5)); /*XXX mode hardcoded *//* WO_DBVT_CULLING */
|
||||
RNA_def_property_ui_text(prop, "DBVT culling", "Use optimized Bullet DBVT tree for view frustum and occlusion culling");
|
||||
|
||||
// not used // deprecated !!!!!!!!!!!!!
|
||||
/* not used *//* deprecated !!!!!!!!!!!!! */
|
||||
prop = RNA_def_property(srna, "use_activity_culling", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", (1 << 3)); //XXX mode hardcoded
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", (1 << 3)); /*XXX mode hardcoded */
|
||||
RNA_def_property_ui_text(prop, "Activity Culling", "Activity culling is enabled");
|
||||
|
||||
// not used // deprecated !!!!!!!!!!!!!
|
||||
/* not used *//* deprecated !!!!!!!!!!!!! */
|
||||
prop = RNA_def_property(srna, "activity_culling_box_radius", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "activityBoxRadius");
|
||||
RNA_def_property_range(prop, 0.0, 1000.0);
|
||||
@@ -2691,7 +2691,7 @@ static void rna_def_scene_image_format_data(BlenderRNA *brna)
|
||||
srna = RNA_def_struct(brna, "ImageFormatSettings", NULL);
|
||||
RNA_def_struct_sdna(srna, "ImageFormatData");
|
||||
RNA_def_struct_nested(brna, srna, "Scene");
|
||||
// RNA_def_struct_path_func(srna, "rna_RenderSettings_path"); // no need for the path, its not animated!
|
||||
/* RNA_def_struct_path_func(srna, "rna_RenderSettings_path"); *//* no need for the path, its not animated! */
|
||||
RNA_def_struct_ui_text(srna, "Image Format", "Settings for image formats");
|
||||
|
||||
prop = RNA_def_property(srna, "file_format", PROP_ENUM, PROP_NONE);
|
||||
@@ -2961,7 +2961,7 @@ static void rna_def_scene_ffmpeg_settings(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
#endif
|
||||
|
||||
// the following two "ffmpeg" settings are general audio settings
|
||||
/* the following two "ffmpeg" settings are general audio settings */
|
||||
prop = RNA_def_property(srna, "audio_mixrate", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "audio_mixrate");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
@@ -3874,8 +3874,8 @@ static void rna_def_scene_bases(BlenderRNA *brna, PropertyRNA *cprop)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
// FunctionRNA *func;
|
||||
// PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
|
||||
RNA_def_property_srna(cprop, "SceneBases");
|
||||
srna = RNA_def_struct(brna, "SceneBases", NULL);
|
||||
@@ -4083,7 +4083,7 @@ void RNA_def_scene(BlenderRNA *brna)
|
||||
|
||||
/* Layers */
|
||||
prop = RNA_def_property(srna, "layers", PROP_BOOLEAN, PROP_LAYER_MEMBER);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); // this seems to be too much trouble with depsgraph updates/etc. currently (20110420)
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); /* this seems to be too much trouble with depsgraph updates/etc. currently (20110420) */
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "lay", 1);
|
||||
RNA_def_property_array(prop, 20);
|
||||
RNA_def_property_boolean_funcs(prop, NULL, "rna_Scene_layer_set");
|
||||
|
@@ -567,7 +567,7 @@ static void rna_def_actuator_sensor(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "Actuator Sensor", "Sensor to detect state modifications of actuators");
|
||||
RNA_def_struct_sdna_from(srna, "bActuatorSensor", "data");
|
||||
|
||||
// XXX if eventually have Logics using RNA 100%, we could use the actuator datablock isntead of its name
|
||||
/* XXX if eventually have Logics using RNA 100%, we could use the actuator datablock isntead of its name */
|
||||
prop = RNA_def_property(srna, "actuator", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "name");
|
||||
RNA_def_property_ui_text(prop, "Actuator", "Actuator name, actuator active state modifications will be detected");
|
||||
@@ -623,20 +623,21 @@ static void rna_def_collision_sensor(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Property", "Only look for objects with this property (blank = all objects)");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
//XXX to make a setFunction to create a lookup with all materials in Blend File (not only this object mat.)
|
||||
/*XXX to make a setFunction to create a lookup with all materials in Blend File (not only this object mat.) */
|
||||
prop = RNA_def_property(srna, "material", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "materialName");
|
||||
RNA_def_property_ui_text(prop, "Material", "Only look for objects with this material (blank = all objects)");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
/*//XXX either use a datablock look up to store the string name (material)
|
||||
// or to do a doversion and use a material pointer.
|
||||
#if 0
|
||||
/* XXX either use a datablock look up to store the string name (material)
|
||||
* or to do a doversion and use a material pointer. */
|
||||
prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_struct_type(prop, "Material");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "ma");
|
||||
RNA_def_property_ui_text(prop, "Material", "Only look for objects with this material (blank = all objects)");
|
||||
*/
|
||||
#endif
|
||||
}
|
||||
|
||||
static void rna_def_radar_sensor(BlenderRNA *brna)
|
||||
@@ -666,7 +667,7 @@ static void rna_def_radar_sensor(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Axis", "Along which axis the radar cone is cast");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
//XXX TODO - use radians internally then change to PROP_ANGLE
|
||||
/*XXX TODO - use radians internally then change to PROP_ANGLE */
|
||||
prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 0.0, 179.9);
|
||||
RNA_def_property_ui_text(prop, "Angle", "Opening angle of the radar cone (in degrees)");
|
||||
@@ -732,14 +733,15 @@ static void rna_def_ray_sensor(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Material", "Only look for objects with this material (blank = all objects)");
|
||||
RNA_def_property_update(prop, NC_LOGIC, NULL);
|
||||
|
||||
/* //XXX either use a datablock look up to store the string name (material)
|
||||
// or to do a doversion and use a material pointer.
|
||||
#if 0
|
||||
/* XXX either use a datablock look up to store the string name (material)
|
||||
* or to do a doversion and use a material pointer. */
|
||||
prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_struct_type(prop, "Material");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "ma");
|
||||
RNA_def_property_ui_text(prop, "Material", "Only look for objects with this material (blank = all objects)");
|
||||
*/
|
||||
#endif
|
||||
|
||||
prop = RNA_def_property(srna, "use_x_ray", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", SENS_RAY_XRAY);
|
||||
|
@@ -84,7 +84,7 @@ static void rna_SequenceEditor_sequences_all_next(CollectionPropertyIterator *it
|
||||
internal->link = NULL;
|
||||
|
||||
do {
|
||||
seq= seq->tmp; // XXX - seq's dont reference their parents!
|
||||
seq = seq->tmp; /* XXX - seq's dont reference their parents! */
|
||||
if (seq && seq->next) {
|
||||
internal->link = (Link*)seq->next;
|
||||
break;
|
||||
@@ -120,7 +120,7 @@ static void rna_Sequence_frame_change_update(Scene *scene, Sequence *seq)
|
||||
calc_sequence_disp(scene, seq);
|
||||
|
||||
if (seq_test_overlap(seqbase, seq)) {
|
||||
shuffle_seq(seqbase, seq, scene); // XXX - BROKEN!, uses context seqbasep
|
||||
shuffle_seq(seqbase, seq, scene); /* XXX - BROKEN!, uses context seqbasep */
|
||||
}
|
||||
sort_seq(scene);
|
||||
}
|
||||
@@ -208,7 +208,7 @@ static void rna_Sequence_channel_set(PointerRNA *ptr, int value)
|
||||
seq->machine = value;
|
||||
|
||||
if ( seq_test_overlap(seqbase, seq) ) {
|
||||
shuffle_seq(seqbase, seq, scene); // XXX - BROKEN!, uses context seqbasep
|
||||
shuffle_seq(seqbase, seq, scene); /* XXX - BROKEN!, uses context seqbasep */
|
||||
}
|
||||
sort_seq(scene);
|
||||
}
|
||||
@@ -995,8 +995,8 @@ static void rna_def_sequence(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Type", "");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
//prop= RNA_def_property(srna, "ipo", PROP_POINTER, PROP_NONE);
|
||||
//RNA_def_property_ui_text(prop, "IPO Curves", "IPO curves used by this sequence");
|
||||
/*prop= RNA_def_property(srna, "ipo", PROP_POINTER, PROP_NONE); */
|
||||
/*RNA_def_property_ui_text(prop, "IPO Curves", "IPO curves used by this sequence"); */
|
||||
|
||||
/* flags */
|
||||
|
||||
@@ -1050,7 +1050,7 @@ static void rna_def_sequence(BlenderRNA *brna)
|
||||
RNA_def_property_int_sdna(prop, NULL, "start");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Start Frame", "");
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_start_frame_set",NULL); // overlap tests and calc_seq_disp
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_start_frame_set",NULL); /* overlap tests and calc_seq_disp */
|
||||
RNA_def_property_editable_func(prop, "rna_Sequence_frame_editable");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
@@ -1058,7 +1058,7 @@ static void rna_def_sequence(BlenderRNA *brna)
|
||||
RNA_def_property_int_sdna(prop, NULL, "startdisp");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Start Frame", "Start frame displayed in the sequence editor after offsets are applied, setting this is equivalent to moving the handle, not the actual start frame");
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_start_frame_final_set", NULL); // overlap tests and calc_seq_disp
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_start_frame_final_set", NULL); /* overlap tests and calc_seq_disp */
|
||||
RNA_def_property_editable_func(prop, "rna_Sequence_frame_editable");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
@@ -1066,32 +1066,32 @@ static void rna_def_sequence(BlenderRNA *brna)
|
||||
RNA_def_property_int_sdna(prop, NULL, "enddisp");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "End Frame", "End frame displayed in the sequence editor after offsets are applied");
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_end_frame_final_set", NULL); // overlap tests and calc_seq_disp
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_end_frame_final_set", NULL); /* overlap tests and calc_seq_disp */
|
||||
RNA_def_property_editable_func(prop, "rna_Sequence_frame_editable");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
prop = RNA_def_property(srna, "frame_offset_start", PROP_INT, PROP_TIME);
|
||||
RNA_def_property_int_sdna(prop, NULL, "startofs");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); // overlap tests
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* overlap tests */
|
||||
RNA_def_property_ui_text(prop, "Start Offset", "");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
prop = RNA_def_property(srna, "frame_offset_end", PROP_INT, PROP_TIME);
|
||||
RNA_def_property_int_sdna(prop, NULL, "endofs");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); // overlap tests
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* overlap tests */
|
||||
RNA_def_property_ui_text(prop, "End Offset", "");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
prop = RNA_def_property(srna, "frame_still_start", PROP_INT, PROP_TIME);
|
||||
RNA_def_property_int_sdna(prop, NULL, "startstill");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); // overlap tests
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* overlap tests */
|
||||
RNA_def_property_range(prop, 0, MAXFRAME);
|
||||
RNA_def_property_ui_text(prop, "Start Still", "");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
prop = RNA_def_property(srna, "frame_still_end", PROP_INT, PROP_TIME);
|
||||
RNA_def_property_int_sdna(prop, NULL, "endstill");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); // overlap tests
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* overlap tests */
|
||||
RNA_def_property_range(prop, 0, MAXFRAME);
|
||||
RNA_def_property_ui_text(prop, "End Still", "");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
@@ -1100,7 +1100,7 @@ static void rna_def_sequence(BlenderRNA *brna)
|
||||
RNA_def_property_int_sdna(prop, NULL, "machine");
|
||||
RNA_def_property_range(prop, 0, MAXSEQ-1);
|
||||
RNA_def_property_ui_text(prop, "Channel", "Y position of the sequence strip");
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_channel_set",NULL); // overlap test
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_channel_set",NULL); /* overlap test */
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
/* blending */
|
||||
@@ -1114,7 +1114,7 @@ static void rna_def_sequence(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "blend_alpha", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Blend Opacity", "");
|
||||
RNA_def_property_float_funcs(prop, "rna_Sequence_opacity_get", "rna_Sequence_opacity_set", NULL); // stupid 0-100 -> 0-1
|
||||
RNA_def_property_float_funcs(prop, "rna_Sequence_opacity_get", "rna_Sequence_opacity_set", NULL); /* stupid 0-100 -> 0-1 */
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
|
||||
prop = RNA_def_property(srna, "effect_fader", PROP_FLOAT, PROP_NONE);
|
||||
@@ -1319,7 +1319,7 @@ static void rna_def_input(StructRNA *srna)
|
||||
prop = RNA_def_property(srna, "animation_offset_start", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "anim_startofs");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_anim_startofs_final_set", NULL); // overlap tests
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_anim_startofs_final_set", NULL); /* overlap tests */
|
||||
|
||||
RNA_def_property_ui_text(prop, "Animation Start Offset", "Animation start offset (trim start)");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
@@ -1327,7 +1327,7 @@ static void rna_def_input(StructRNA *srna)
|
||||
prop = RNA_def_property(srna, "animation_offset_end", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "anim_endofs");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_anim_endofs_final_set", NULL); // overlap tests
|
||||
RNA_def_property_int_funcs(prop, NULL, "rna_Sequence_anim_endofs_final_set", NULL); /* overlap tests */
|
||||
RNA_def_property_ui_text(prop, "Animation End Offset", "Animation end offset (trim end)");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_SEQUENCER, "rna_Sequence_update");
|
||||
}
|
||||
@@ -1518,7 +1518,7 @@ static void rna_def_multicam(BlenderRNA *brna)
|
||||
static void rna_def_adjustment(BlenderRNA *brna)
|
||||
{
|
||||
StructRNA *srna;
|
||||
// PropertyRNA *prop;
|
||||
/* PropertyRNA *prop; */
|
||||
|
||||
srna = RNA_def_struct(brna, "AdjustmentSequence", "Sequence");
|
||||
RNA_def_struct_ui_text(srna, "Adjustment Layer Sequence", "Sequence strip to perform filter adjustments to layers below");
|
||||
|
@@ -76,7 +76,7 @@ static void rna_def_sound(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "Sound", "Sound datablock referencing an external or packed sound file");
|
||||
RNA_def_struct_ui_icon(srna, ICON_SOUND);
|
||||
|
||||
//rna_def_ipo_common(srna);
|
||||
/*rna_def_ipo_common(srna); */
|
||||
|
||||
prop = RNA_def_property(srna, "filepath", PROP_STRING, PROP_FILEPATH);
|
||||
RNA_def_property_string_sdna(prop, NULL, "name");
|
||||
|
@@ -825,7 +825,7 @@ static void rna_SpaceDopeSheetEditor_action_update(Main *UNUSED(bmain), Scene *s
|
||||
AnimData *adt = NULL;
|
||||
|
||||
if (saction->mode == SACTCONT_ACTION) {
|
||||
// TODO: context selector could help decide this with more control?
|
||||
/* TODO: context selector could help decide this with more control? */
|
||||
adt = BKE_id_add_animdata(&obact->id); /* this only adds if non-existant */
|
||||
}
|
||||
else if (saction->mode == SACTCONT_SHAPEKEY) {
|
||||
@@ -873,7 +873,7 @@ static void rna_SpaceDopeSheetEditor_mode_update(Main *UNUSED(bmain), Scene *sce
|
||||
/* make sure action stored is valid */
|
||||
else if (saction->mode == SACTCONT_ACTION) {
|
||||
/* 1) update the action stored for the editor */
|
||||
// TODO: context selector could help decide this with more control?
|
||||
/* TODO: context selector could help decide this with more control? */
|
||||
if (obact)
|
||||
saction->action = (obact->adt)? obact->adt->action : NULL;
|
||||
else
|
||||
@@ -1680,7 +1680,7 @@ static void rna_def_space_view3d(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "perspective_matrix", PROP_FLOAT, PROP_MATRIX);
|
||||
RNA_def_property_float_sdna(prop, NULL, "persmat");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); // XXX: for now, it's too risky for users to do this
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE); /* XXX: for now, it's too risky for users to do this */
|
||||
RNA_def_property_multi_array(prop, 2, matrix_dimsize);
|
||||
RNA_def_property_ui_text(prop, "Perspective Matrix", "Current perspective matrix of the 3D region");
|
||||
|
||||
@@ -1704,7 +1704,7 @@ static void rna_def_space_view3d(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "view_location", PROP_FLOAT, PROP_TRANSLATION);
|
||||
#if 0
|
||||
RNA_def_property_float_sdna(prop, NULL, "ofs"); // cant use because its negated
|
||||
RNA_def_property_float_sdna(prop, NULL, "ofs"); /* cant use because its negated */
|
||||
#else
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_float_funcs(prop, "rna_RegionView3D_view_location_get", "rna_RegionView3D_view_location_set", NULL);
|
||||
@@ -1713,7 +1713,7 @@ static void rna_def_space_view3d(BlenderRNA *brna)
|
||||
RNA_def_property_ui_range(prop, -10000.0, 10000.0, 10, 4);
|
||||
RNA_def_property_update(prop, NC_WINDOW, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "view_rotation", PROP_FLOAT, PROP_QUATERNION); // cant use because its inverted
|
||||
prop = RNA_def_property(srna, "view_rotation", PROP_FLOAT, PROP_QUATERNION); /* cant use because its inverted */
|
||||
#if 0
|
||||
RNA_def_property_float_sdna(prop, NULL, "viewquat");
|
||||
#else
|
||||
@@ -1778,7 +1778,7 @@ static void rna_def_space_buttons(BlenderRNA *brna)
|
||||
|
||||
static EnumPropertyItem buttons_texture_context_items[] = {
|
||||
{SB_TEXC_MAT_OR_LAMP, "MATERIAL", ICON_MATERIAL, "Material", "Material"},
|
||||
{0, NULL, 0, NULL, NULL}}; //actually populated dynamically trough a function
|
||||
{0, NULL, 0, NULL, NULL}}; /*actually populated dynamically trough a function */
|
||||
|
||||
srna = RNA_def_struct(brna, "SpaceProperties", "Space");
|
||||
RNA_def_struct_sdna(srna, "SpaceButs");
|
||||
@@ -1832,7 +1832,7 @@ static void rna_def_space_image(BlenderRNA *brna)
|
||||
RNA_def_property_pointer_funcs(prop, NULL, "rna_SpaceImageEditor_image_set", NULL, NULL);
|
||||
RNA_def_property_ui_text(prop, "Image", "Image displayed and edited in this space");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_update(prop, NC_GEOM|ND_DATA, NULL); // is handled in image editor too
|
||||
RNA_def_property_update(prop, NC_GEOM|ND_DATA, NULL); /* is handled in image editor too */
|
||||
|
||||
prop = RNA_def_property(srna, "image_user", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_flag(prop, PROP_NEVER_NULL);
|
||||
@@ -2149,7 +2149,7 @@ static void rna_def_space_dopesheet(BlenderRNA *brna)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
// XXX: action-editor is currently for object-level only actions, so show that using object-icon hint
|
||||
/* XXX: action-editor is currently for object-level only actions, so show that using object-icon hint */
|
||||
static EnumPropertyItem mode_items[] = {
|
||||
{SACTCONT_DOPESHEET, "DOPESHEET", ICON_OOPS, "DopeSheet", "DopeSheet Editor"},
|
||||
{SACTCONT_ACTION, "ACTION", ICON_OBJECT_DATA, "Action Editor", "Action Editor"},
|
||||
@@ -2244,8 +2244,8 @@ static void rna_def_space_graph(BlenderRNA *brna)
|
||||
{V3D_CENTER, "BOUNDING_BOX_CENTER", ICON_ROTATE, "Bounding Box Center", ""},
|
||||
{V3D_CURSOR, "CURSOR", ICON_CURSOR, "2D Cursor", ""},
|
||||
{V3D_LOCAL, "INDIVIDUAL_ORIGINS", ICON_ROTATECOLLECTION, "Individual Centers", ""},
|
||||
//{V3D_CENTROID, "MEDIAN_POINT", 0, "Median Point", ""},
|
||||
//{V3D_ACTIVE, "ACTIVE_ELEMENT", 0, "Active Element", ""},
|
||||
/*{V3D_CENTROID, "MEDIAN_POINT", 0, "Median Point", ""}, */
|
||||
/*{V3D_ACTIVE, "ACTIVE_ELEMENT", 0, "Active Element", ""}, */
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
|
||||
@@ -2458,7 +2458,7 @@ static void rna_def_console_line(BlenderRNA *brna)
|
||||
|
||||
srna = RNA_def_struct(brna, "ConsoleLine", NULL);
|
||||
RNA_def_struct_ui_text(srna, "Console Input", "Input line for the interactive console");
|
||||
// XXX using non-inited "prop", uh? RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CONSOLE, NULL);
|
||||
/* XXX using non-inited "prop", uh? RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CONSOLE, NULL); */
|
||||
|
||||
prop = RNA_def_property(srna, "body", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_string_funcs(prop, "rna_ConsoleLine_body_get", "rna_ConsoleLine_body_length", "rna_ConsoleLine_body_set");
|
||||
|
@@ -61,13 +61,14 @@ static void rna_def_speaker(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", SPK_MUTED);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Mute", "Mute the speaker");
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
/* This shouldn't be changed actually, hiding it!
|
||||
#if 0 /* This shouldn't be changed actually, hiding it! */
|
||||
prop = RNA_def_property(srna, "relative", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", SPK_RELATIVE);
|
||||
RNA_def_property_ui_text(prop, "Relative", "Whether the source is relative to the camera or not");
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");*/
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
#endif
|
||||
|
||||
prop = RNA_def_property(srna, "sound", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "sound");
|
||||
@@ -75,24 +76,24 @@ static void rna_def_speaker(BlenderRNA *brna)
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Sound", "Sound datablock used by this speaker");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_sound_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_sound_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "volume_max", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "volume_max");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Maximum Volume", "Maximum volume, no matter how near the object is");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_max_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_max_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "volume_min", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "volume_min");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Minimum Volume", "Minimum volume, no matter how far away the object is");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_min_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_min_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "distance_max", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "distance_max");
|
||||
@@ -100,24 +101,24 @@ static void rna_def_speaker(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
||||
RNA_def_property_ui_text(prop, "Maximum Distance",
|
||||
"Maximum distance for volume calculation, no matter how far away the object is");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_distance_max_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_distance_max_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "distance_reference", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "distance_reference");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
||||
RNA_def_property_ui_text(prop, "Reference Distance", "Reference distance at which volume is 100 %");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_distance_reference_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_distance_reference_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "attenuation", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "attenuation");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
||||
RNA_def_property_ui_text(prop, "Attenuation", "How strong the distance affects volume, depending on distance model");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_attenuation_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_attenuation_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "cone_angle_outer", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "cone_angle_outer");
|
||||
@@ -126,8 +127,8 @@ static void rna_def_speaker(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Outer Cone Angle",
|
||||
"Angle of the outer cone, in degrees, outside this cone the volume is "
|
||||
"the outer cone volume, between inner and outer cone the volume is interpolated");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_angle_outer_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_angle_outer_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "cone_angle_inner", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "cone_angle_inner");
|
||||
@@ -135,30 +136,30 @@ static void rna_def_speaker(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, 360.0f);
|
||||
RNA_def_property_ui_text(prop, "Inner Cone Angle",
|
||||
"Angle of the inner cone, in degrees, inside the cone the volume is 100 %");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_angle_inner_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_angle_inner_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "cone_volume_outer", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "cone_volume_outer");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Outer Cone Volume", "Volume outside the outer cone");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_volume_outer_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_volume_outer_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "volume", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "volume");
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Volume", "How loud the sound is");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
prop = RNA_def_property(srna, "pitch", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "pitch");
|
||||
RNA_def_property_range(prop, 0.1f, 10.0f);
|
||||
RNA_def_property_ui_text(prop, "Pitch", "Playback pitch of the sound");
|
||||
// RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_pitch_set", NULL);
|
||||
// RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_pitch_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
|
||||
/* common */
|
||||
rna_def_animdata_common(srna);
|
||||
|
@@ -67,7 +67,7 @@ EnumPropertyItem texture_type_items[] = {
|
||||
{TEX_MUSGRAVE, "MUSGRAVE", ICON_TEXTURE, "Musgrave", "Procedural - highly flexible fractal noise texture"},
|
||||
{TEX_NOISE, "NOISE", ICON_TEXTURE, "Noise",
|
||||
"Procedural - random noise, gives a different result every time, for every frame, for every pixel"},
|
||||
//{TEX_PLUGIN, "PLUGIN", ICON_PLUGIN, "Plugin", ""}, /* Nothing yet */
|
||||
/*{TEX_PLUGIN, "PLUGIN", ICON_PLUGIN, "Plugin", ""}, *//* Nothing yet */
|
||||
{TEX_POINTDENSITY, "POINT_DENSITY", ICON_TEXTURE, "Point Density", ""},
|
||||
{TEX_STUCCI, "STUCCI", ICON_TEXTURE, "Stucci", "Procedural - create a fractal noise texture"},
|
||||
{TEX_VORONOI, "VORONOI", ICON_TEXTURE, "Voronoi", "Procedural - create cell-like patterns based on Worley noise"},
|
||||
@@ -1559,7 +1559,7 @@ static void rna_def_texture_pointdensity(BlenderRNA *brna)
|
||||
static EnumPropertyItem point_source_items[] = {
|
||||
{TEX_PD_PSYS, "PARTICLE_SYSTEM", 0, "Particle System", "Generate point density from a particle system"},
|
||||
{TEX_PD_OBJECT, "OBJECT", 0, "Object Vertices", "Generate point density from an object's vertices"},
|
||||
//{TEX_PD_FILE, "FILE", 0 , "File", ""},
|
||||
/*{TEX_PD_FILE, "FILE", 0 , "File", ""}, */
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
static EnumPropertyItem particle_cache_items[] = {
|
||||
@@ -1753,7 +1753,7 @@ static void rna_def_texture_voxeldata(BlenderRNA *brna)
|
||||
static EnumPropertyItem file_format_items[] = {
|
||||
{TEX_VD_BLENDERVOXEL, "BLENDER_VOXEL", 0, "Blender Voxel", "Default binary voxel file format"},
|
||||
{TEX_VD_RAW_8BIT, "RAW_8BIT", 0, "8 bit RAW", "8 bit greyscale binary data"},
|
||||
//{TEX_VD_RAW_16BIT, "RAW_16BIT", 0, "16 bit RAW", ""},
|
||||
/*{TEX_VD_RAW_16BIT, "RAW_16BIT", 0, "16 bit RAW", ""}, */
|
||||
{TEX_VD_IMAGE_SEQUENCE, "IMAGE_SEQUENCE", 0, "Image Sequence", "Generate voxels from a sequence of image slices"},
|
||||
{TEX_VD_SMOKE, "SMOKE", 0, "Smoke", "Render voxels from a Blender smoke simulation"},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
@@ -1864,7 +1864,7 @@ static void rna_def_texture_ocean(BlenderRNA *brna)
|
||||
|
||||
static EnumPropertyItem ocean_output_items[] = {
|
||||
{TEX_OCN_DISPLACEMENT, "DISPLACEMENT", 0, "Displacement", "Output XYZ displacement in RGB channels"},
|
||||
//{TEX_OCN_NORMALS, "NORMALS", 0, "Normals", "Outputs wave normals"}, // these are in nor channel now
|
||||
/*{TEX_OCN_NORMALS, "NORMALS", 0, "Normals", "Outputs wave normals"}, *//* these are in nor channel now */
|
||||
{TEX_OCN_FOAM, "FOAM", 0, "Foam", "Output Foam (wave overlap) amount in single channel"},
|
||||
{TEX_OCN_JPLUS, "JPLUS", 0, "Eigenvalues", "Positive Eigenvalues"},
|
||||
{TEX_OCN_EMINUS, "EMINUS", 0, "Eigenvectors (-)", "Negative Eigenvectors"},
|
||||
@@ -1912,7 +1912,7 @@ static void rna_def_texture(BlenderRNA *brna)
|
||||
RNA_def_struct_refine_func(srna, "rna_Texture_refine");
|
||||
|
||||
prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
|
||||
//RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/*RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_enum_sdna(prop, NULL, "type");
|
||||
RNA_def_property_enum_items(prop, texture_type_items);
|
||||
RNA_def_property_enum_funcs(prop, NULL, "rna_Texture_type_set", NULL);
|
||||
|
@@ -586,7 +586,7 @@ static void rna_UILayout_scale_y_set(PointerRNA *ptr, float value)
|
||||
uiLayoutSetScaleY(ptr->data, value);
|
||||
}
|
||||
|
||||
#else // RNA_RUNTIME
|
||||
#else /* RNA_RUNTIME */
|
||||
|
||||
static void rna_def_ui_layout(BlenderRNA *brna)
|
||||
{
|
||||
@@ -755,7 +755,7 @@ static void rna_def_header(BlenderRNA *brna)
|
||||
parm = RNA_def_pointer(func, "context", "Context", "", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
|
||||
RNA_define_verify_sdna(0); // not in sdna
|
||||
RNA_define_verify_sdna(0); /* not in sdna */
|
||||
|
||||
prop = RNA_def_property(srna, "layout", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "layout");
|
||||
@@ -809,7 +809,7 @@ static void rna_def_menu(BlenderRNA *brna)
|
||||
parm = RNA_def_pointer(func, "context", "Context", "", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
|
||||
RNA_define_verify_sdna(0); // not in sdna
|
||||
RNA_define_verify_sdna(0); /* not in sdna */
|
||||
|
||||
prop = RNA_def_property(srna, "layout", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_pointer_sdna(prop, NULL, "layout");
|
||||
@@ -838,7 +838,7 @@ static void rna_def_menu(BlenderRNA *brna)
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->description");
|
||||
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Menu_bl_description_set");
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||
|
||||
RNA_define_verify_sdna(1);
|
||||
@@ -852,5 +852,5 @@ void RNA_def_ui(BlenderRNA *brna)
|
||||
rna_def_menu(brna);
|
||||
}
|
||||
|
||||
#endif // RNA_RUNTIME
|
||||
#endif /* RNA_RUNTIME */
|
||||
|
||||
|
@@ -784,7 +784,7 @@ static void rna_def_userdef_theme_space_generic(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_update");
|
||||
|
||||
/* buttons */
|
||||
// if(! ELEM(spacetype, SPACE_BUTS, SPACE_OUTLINER)) {
|
||||
/* if(! ELEM(spacetype, SPACE_BUTS, SPACE_OUTLINER)) { */
|
||||
prop = RNA_def_property(srna, "button", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Region Background", "");
|
||||
@@ -804,7 +804,7 @@ static void rna_def_userdef_theme_space_generic(BlenderRNA *brna)
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Region Text Highlight", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_update");
|
||||
// }
|
||||
/* } */
|
||||
}
|
||||
|
||||
/* list / channels */
|
||||
@@ -2485,12 +2485,12 @@ static void rna_def_userdef_view(BlenderRNA *brna)
|
||||
/* View2D Grid Displays */
|
||||
prop = RNA_def_property(srna, "view2d_grid_spacing_min", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "v2d_min_gridsize");
|
||||
RNA_def_property_range(prop, 1, 500); // XXX: perhaps the lower range should only go down to 5?
|
||||
RNA_def_property_range(prop, 1, 500); /* XXX: perhaps the lower range should only go down to 5? */
|
||||
RNA_def_property_ui_text(prop, "2D View Minimum Grid Spacing",
|
||||
"Minimum number of pixels between each gridline in 2D Viewports");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_update");
|
||||
|
||||
// TODO: add a setter for this, so that we can bump up the minimum size as necessary...
|
||||
/* TODO: add a setter for this, so that we can bump up the minimum size as necessary... */
|
||||
prop = RNA_def_property(srna, "timecode_style", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, timecode_styles);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "timecode_style");
|
||||
@@ -2683,11 +2683,11 @@ static void rna_def_userdef_edit(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "dupflag", USER_DUP_TEX);
|
||||
RNA_def_property_ui_text(prop, "Duplicate Texture", "Causes texture data to be duplicated with the object");
|
||||
|
||||
// xxx
|
||||
/* xxx */
|
||||
prop = RNA_def_property(srna, "use_duplicate_fcurve", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "dupflag", USER_DUP_IPO);
|
||||
RNA_def_property_ui_text(prop, "Duplicate F-Curve", "Causes F-curve data to be duplicated with the object");
|
||||
// xxx
|
||||
/* xxx */
|
||||
prop = RNA_def_property(srna, "use_duplicate_action", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "dupflag", USER_DUP_ACT);
|
||||
RNA_def_property_ui_text(prop, "Duplicate Action", "Causes actions to be duplicated with the object");
|
||||
@@ -2746,14 +2746,14 @@ static void rna_def_userdef_system(BlenderRNA *brna)
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
static EnumPropertyItem audio_rate_items[] = {
|
||||
// {8000, "RATE_8000", 0, "8 kHz", "Set audio sampling rate to 8000 samples per second"},
|
||||
// {11025, "RATE_11025", 0, "11.025 kHz", "Set audio sampling rate to 11025 samples per second"},
|
||||
// {16000, "RATE_16000", 0, "16 kHz", "Set audio sampling rate to 16000 samples per second"},
|
||||
// {22050, "RATE_22050", 0, "22.05 kHz", "Set audio sampling rate to 22050 samples per second"},
|
||||
// {32000, "RATE_32000", 0, "32 kHz", "Set audio sampling rate to 32000 samples per second"},
|
||||
/* {8000, "RATE_8000", 0, "8 kHz", "Set audio sampling rate to 8000 samples per second"}, */
|
||||
/* {11025, "RATE_11025", 0, "11.025 kHz", "Set audio sampling rate to 11025 samples per second"}, */
|
||||
/* {16000, "RATE_16000", 0, "16 kHz", "Set audio sampling rate to 16000 samples per second"}, */
|
||||
/* {22050, "RATE_22050", 0, "22.05 kHz", "Set audio sampling rate to 22050 samples per second"}, */
|
||||
/* {32000, "RATE_32000", 0, "32 kHz", "Set audio sampling rate to 32000 samples per second"}, */
|
||||
{44100, "RATE_44100", 0, "44.1 kHz", "Set audio sampling rate to 44100 samples per second"},
|
||||
{48000, "RATE_48000", 0, "48 kHz", "Set audio sampling rate to 48000 samples per second"},
|
||||
// {88200, "RATE_88200", 0, "88.2 kHz", "Set audio sampling rate to 88200 samples per second"},
|
||||
/* {88200, "RATE_88200", 0, "88.2 kHz", "Set audio sampling rate to 88200 samples per second"}, */
|
||||
{96000, "RATE_96000", 0, "96 kHz", "Set audio sampling rate to 96000 samples per second"},
|
||||
{192000, "RATE_192000", 0, "192 kHz", "Set audio sampling rate to 192000 samples per second"},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
@@ -3244,7 +3244,7 @@ static void rna_def_userdef_filepaths(BlenderRNA *brna)
|
||||
StructRNA *srna;
|
||||
|
||||
static EnumPropertyItem anim_player_presets[] = {
|
||||
//{0, "INTERNAL", 0, "Internal", "Built-in animation player"}, // doesn't work yet!
|
||||
/*{0, "INTERNAL", 0, "Internal", "Built-in animation player"}, *//* doesn't work yet! */
|
||||
{1, "BLENDER24", 0, "Blender 2.4", "Blender command line animation playback - path to Blender 2.4"},
|
||||
{2, "DJV", 0, "Djv", "Open source frame player: http://djv.sourceforge.net"},
|
||||
{3, "FRAMECYCLER", 0, "FrameCycler", "Frame player from IRIDAS"},
|
||||
|
@@ -386,7 +386,7 @@ EnumPropertyItem operator_return_items[] = {
|
||||
{OPERATOR_RUNNING_MODAL, "RUNNING_MODAL", 0, "Running Modal", "Keep the operator running with blender"},
|
||||
{OPERATOR_CANCELLED, "CANCELLED", 0, "Cancelled", "When no action has been taken, operator exits"},
|
||||
{OPERATOR_FINISHED, "FINISHED", 0, "Finished", "When the operator is complete, operator exits"},
|
||||
{OPERATOR_PASS_THROUGH, "PASS_THROUGH", 0, "Pass Through", "Do nothing and pass the event on"}, // used as a flag
|
||||
{OPERATOR_PASS_THROUGH, "PASS_THROUGH", 0, "Pass Through", "Do nothing and pass the event on"}, /* used as a flag */
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
|
||||
/* flag/enum */
|
||||
@@ -554,7 +554,7 @@ static PointerRNA rna_KeyMapItem_properties_get(PointerRNA *ptr)
|
||||
if (kmi->ptr)
|
||||
return *(kmi->ptr);
|
||||
|
||||
//return rna_pointer_inherit_refine(ptr, &RNA_OperatorProperties, op->properties);
|
||||
/*return rna_pointer_inherit_refine(ptr, &RNA_OperatorProperties, op->properties); */
|
||||
return PointerRNA_NULL;
|
||||
}
|
||||
|
||||
@@ -1257,7 +1257,7 @@ static void rna_def_operator(BlenderRNA *brna)
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||
RNA_def_property_string_maxlength(prop, OP_MAX_TYPENAME-3); /* else it uses the pointer size!. -3 because '.' -> '_OT_' */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_idname_set");
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_flag(prop, PROP_REGISTER|PROP_NEVER_CLAMP);
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
|
||||
@@ -1268,14 +1268,14 @@ static void rna_def_operator(BlenderRNA *brna)
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->name");
|
||||
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_label_set");
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_description", PROP_STRING, PROP_TRANSLATE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->description");
|
||||
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_description_set");
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_options", PROP_ENUM, PROP_NONE);
|
||||
@@ -1321,7 +1321,7 @@ static void rna_def_macro_operator(BlenderRNA *brna)
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||
RNA_def_property_string_maxlength(prop, OP_MAX_TYPENAME); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_idname_set");
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_flag(prop, PROP_REGISTER|PROP_NEVER_CLAMP);
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
|
||||
@@ -1332,14 +1332,14 @@ static void rna_def_macro_operator(BlenderRNA *brna)
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->name");
|
||||
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_label_set");
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_description", PROP_STRING, PROP_TRANSLATE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "type->description");
|
||||
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_description_set");
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_options", PROP_ENUM, PROP_NONE);
|
||||
@@ -1360,11 +1360,11 @@ static void rna_def_operator_type_macro(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "Operator Macro", "Storage of a sub operator in a macro after it has been added");
|
||||
RNA_def_struct_sdna(srna, "wmOperatorTypeMacro");
|
||||
|
||||
// prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
// RNA_def_property_string_sdna(prop, NULL, "idname");
|
||||
// RNA_def_property_ui_text(prop, "Name", "Name of the sub operator");
|
||||
// RNA_def_struct_name_property(srna, prop);
|
||||
/* prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); */
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
/* RNA_def_property_string_sdna(prop, NULL, "idname"); */
|
||||
/* RNA_def_property_ui_text(prop, "Name", "Name of the sub operator"); */
|
||||
/* RNA_def_struct_name_property(srna, prop); */
|
||||
|
||||
prop = RNA_def_property(srna, "properties", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_flag(prop, PROP_NEVER_NULL);
|
||||
@@ -1414,7 +1414,7 @@ static void rna_def_event(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "Event", "Window Manager Event");
|
||||
RNA_def_struct_sdna(srna, "wmEvent");
|
||||
|
||||
RNA_define_verify_sdna(0); // not in sdna
|
||||
RNA_define_verify_sdna(0); /* not in sdna */
|
||||
|
||||
/* strings */
|
||||
prop = RNA_def_property(srna, "ascii", PROP_STRING, PROP_NONE);
|
||||
@@ -1495,7 +1495,7 @@ static void rna_def_event(BlenderRNA *brna)
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "OS Key", "True when the Cmd key is held");
|
||||
|
||||
RNA_define_verify_sdna(1); // not in sdna
|
||||
RNA_define_verify_sdna(1); /* not in sdna */
|
||||
}
|
||||
|
||||
static void rna_def_timer(BlenderRNA *brna)
|
||||
@@ -1507,7 +1507,7 @@ static void rna_def_timer(BlenderRNA *brna)
|
||||
RNA_def_struct_ui_text(srna, "Timer", "Window event timer");
|
||||
RNA_def_struct_sdna(srna, "wmTimer");
|
||||
|
||||
RNA_define_verify_sdna(0); // not in sdna
|
||||
RNA_define_verify_sdna(0); /* not in sdna */
|
||||
|
||||
/* could wrap more, for now this is enough */
|
||||
prop = RNA_def_property(srna, "time_step", PROP_FLOAT, PROP_NONE);
|
||||
@@ -1525,7 +1525,7 @@ static void rna_def_timer(BlenderRNA *brna)
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Delta", "Time since last step in seconds");
|
||||
|
||||
RNA_define_verify_sdna(1); // not in sdna
|
||||
RNA_define_verify_sdna(1); /* not in sdna */
|
||||
}
|
||||
|
||||
static void rna_def_window(BlenderRNA *brna)
|
||||
@@ -1783,29 +1783,29 @@ static void rna_def_keyconfig(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "shift", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "shift", 0);
|
||||
// RNA_def_property_enum_sdna(prop, NULL, "shift");
|
||||
// RNA_def_property_enum_items(prop, keymap_modifiers_items);
|
||||
/* RNA_def_property_enum_sdna(prop, NULL, "shift"); */
|
||||
/* RNA_def_property_enum_items(prop, keymap_modifiers_items); */
|
||||
RNA_def_property_ui_text(prop, "Shift", "Shift key pressed");
|
||||
RNA_def_property_update(prop, 0, "rna_KeyMapItem_update");
|
||||
|
||||
prop = RNA_def_property(srna, "ctrl", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "ctrl", 0);
|
||||
// RNA_def_property_enum_sdna(prop, NULL, "ctrl");
|
||||
// RNA_def_property_enum_items(prop, keymap_modifiers_items);
|
||||
/* RNA_def_property_enum_sdna(prop, NULL, "ctrl"); */
|
||||
/* RNA_def_property_enum_items(prop, keymap_modifiers_items); */
|
||||
RNA_def_property_ui_text(prop, "Ctrl", "Control key pressed");
|
||||
RNA_def_property_update(prop, 0, "rna_KeyMapItem_update");
|
||||
|
||||
prop = RNA_def_property(srna, "alt", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "alt", 0);
|
||||
// RNA_def_property_enum_sdna(prop, NULL, "alt");
|
||||
// RNA_def_property_enum_items(prop, keymap_modifiers_items);
|
||||
/* RNA_def_property_enum_sdna(prop, NULL, "alt"); */
|
||||
/* RNA_def_property_enum_items(prop, keymap_modifiers_items); */
|
||||
RNA_def_property_ui_text(prop, "Alt", "Alt key pressed");
|
||||
RNA_def_property_update(prop, 0, "rna_KeyMapItem_update");
|
||||
|
||||
prop = RNA_def_property(srna, "oskey", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "oskey", 0);
|
||||
// RNA_def_property_enum_sdna(prop, NULL, "oskey");
|
||||
// RNA_def_property_enum_items(prop, keymap_modifiers_items);
|
||||
/* RNA_def_property_enum_sdna(prop, NULL, "oskey"); */
|
||||
/* RNA_def_property_enum_items(prop, keymap_modifiers_items); */
|
||||
RNA_def_property_ui_text(prop, "OS Key", "Operating system key pressed");
|
||||
RNA_def_property_update(prop, 0, "rna_KeyMapItem_update");
|
||||
|
||||
|
@@ -84,7 +84,7 @@ void rna_event_timer_remove(struct wmWindowManager *wm, wmTimer *timer)
|
||||
|
||||
static wmKeyMapItem *rna_KeyMap_item_new(wmKeyMap *km, ReportList *reports, const char *idname, int type, int value, int any, int shift, int ctrl, int alt, int oskey, int keymodifier)
|
||||
{
|
||||
// wmWindowManager *wm = CTX_wm_manager(C);
|
||||
/* wmWindowManager *wm = CTX_wm_manager(C); */
|
||||
char idname_bl[OP_MAX_TYPENAME];
|
||||
int modifier = 0;
|
||||
|
||||
@@ -279,7 +279,7 @@ void RNA_api_operator(StructRNA *srna)
|
||||
parm = RNA_def_pointer(func, "context", "Context", "", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
|
||||
|
||||
parm= RNA_def_enum_flag(func, "result", operator_return_items, OPERATOR_CANCELLED, "result", ""); // better name?
|
||||
parm = RNA_def_enum_flag(func, "result", operator_return_items, OPERATOR_CANCELLED, "result", ""); /* better name? */
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
/* check */
|
||||
@@ -289,7 +289,7 @@ void RNA_api_operator(StructRNA *srna)
|
||||
parm = RNA_def_pointer(func, "context", "Context", "", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
|
||||
|
||||
parm= RNA_def_boolean(func, "result", 0, "result", ""); // better name?
|
||||
parm = RNA_def_boolean(func, "result", 0, "result", ""); /* better name? */
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
/* invoke */
|
||||
@@ -301,7 +301,7 @@ void RNA_api_operator(StructRNA *srna)
|
||||
parm = RNA_def_pointer(func, "event", "Event", "", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
|
||||
|
||||
parm= RNA_def_enum_flag(func, "result", operator_return_items, OPERATOR_CANCELLED, "result", ""); // better name?
|
||||
parm = RNA_def_enum_flag(func, "result", operator_return_items, OPERATOR_CANCELLED, "result", ""); /* better name? */
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
func = RNA_def_function(srna, "modal", NULL); /* same as invoke */
|
||||
@@ -312,7 +312,7 @@ void RNA_api_operator(StructRNA *srna)
|
||||
parm = RNA_def_pointer(func, "event", "Event", "", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
|
||||
|
||||
parm= RNA_def_enum_flag(func, "result", operator_return_items, OPERATOR_CANCELLED, "result", ""); // better name?
|
||||
parm = RNA_def_enum_flag(func, "result", operator_return_items, OPERATOR_CANCELLED, "result", ""); /* better name? */
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
/* draw */
|
||||
@@ -329,7 +329,7 @@ void RNA_api_operator(StructRNA *srna)
|
||||
parm = RNA_def_pointer(func, "context", "Context", "", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
|
||||
|
||||
parm= RNA_def_enum_flag(func, "result", operator_return_items, OPERATOR_CANCELLED, "result", ""); // better name?
|
||||
parm = RNA_def_enum_flag(func, "result", operator_return_items, OPERATOR_CANCELLED, "result", ""); /* better name? */
|
||||
RNA_def_function_return(func, parm);
|
||||
}
|
||||
|
||||
@@ -366,8 +366,8 @@ void RNA_api_macro(StructRNA *srna)
|
||||
|
||||
void RNA_api_keyconfig(StructRNA *srna)
|
||||
{
|
||||
// FunctionRNA *func;
|
||||
// PropertyRNA *parm;
|
||||
/* FunctionRNA *func; */
|
||||
/* PropertyRNA *parm; */
|
||||
}
|
||||
|
||||
void RNA_api_keymap(StructRNA *srna)
|
||||
@@ -457,7 +457,7 @@ void RNA_api_keymaps(StructRNA *srna)
|
||||
FunctionRNA *func;
|
||||
PropertyRNA *parm;
|
||||
|
||||
func= RNA_def_function(srna, "new", "rna_keymap_new"); // add_keymap
|
||||
func = RNA_def_function(srna, "new", "rna_keymap_new"); /* add_keymap */
|
||||
parm = RNA_def_string(func, "name", "", 0, "Name", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
RNA_def_enum(func, "space_type", space_type_items, SPACE_EMPTY, "Space Type", "");
|
||||
@@ -466,7 +466,7 @@ void RNA_api_keymaps(StructRNA *srna)
|
||||
parm = RNA_def_pointer(func, "keymap", "KeyMap", "Key Map", "Added key map");
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
func= RNA_def_function(srna, "find", "rna_keymap_find"); // find_keymap
|
||||
func = RNA_def_function(srna, "find", "rna_keymap_find"); /* find_keymap */
|
||||
parm = RNA_def_string(func, "name", "", 0, "Name", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
RNA_def_enum(func, "space_type", space_type_items, SPACE_EMPTY, "Space Type", "");
|
||||
@@ -474,7 +474,7 @@ void RNA_api_keymaps(StructRNA *srna)
|
||||
parm = RNA_def_pointer(func, "keymap", "KeyMap", "Key Map", "Corresponding key map");
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
func= RNA_def_function(srna, "find_modal", "rna_keymap_find_modal"); // find_keymap_modal
|
||||
func = RNA_def_function(srna, "find_modal", "rna_keymap_find_modal"); /* find_keymap_modal */
|
||||
parm = RNA_def_string(func, "name", "", 0, "Operator Name", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
parm = RNA_def_pointer(func, "keymap", "KeyMap", "Key Map", "Corresponding key map");
|
||||
@@ -486,13 +486,13 @@ void RNA_api_keyconfigs(StructRNA *srna)
|
||||
FunctionRNA *func;
|
||||
PropertyRNA *parm;
|
||||
|
||||
func= RNA_def_function(srna, "new", "WM_keyconfig_new_user"); // add_keyconfig
|
||||
func = RNA_def_function(srna, "new", "WM_keyconfig_new_user"); /* add_keyconfig */
|
||||
parm = RNA_def_string(func, "name", "", 0, "Name", "");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
parm = RNA_def_pointer(func, "keyconfig", "KeyConfig", "Key Configuration", "Added key configuration");
|
||||
RNA_def_function_return(func, parm);
|
||||
|
||||
func= RNA_def_function(srna, "remove", "WM_keyconfig_remove"); // remove_keyconfig
|
||||
func = RNA_def_function(srna, "remove", "WM_keyconfig_remove"); /* remove_keyconfig */
|
||||
parm = RNA_def_pointer(func, "keyconfig", "KeyConfig", "Key Configuration", "Removed key configuration");
|
||||
RNA_def_property_flag(parm, PROP_REQUIRED);
|
||||
}
|
||||
|
@@ -475,16 +475,16 @@ void RNA_def_world(BlenderRNA *brna)
|
||||
StructRNA *srna;
|
||||
PropertyRNA *prop;
|
||||
|
||||
/*
|
||||
#if 0
|
||||
static EnumPropertyItem physics_engine_items[] = {
|
||||
{WOPHY_NONE, "NONE", 0, "None", ""},
|
||||
//{WOPHY_ENJI, "ENJI", 0, "Enji", ""},
|
||||
//{WOPHY_SUMO, "SUMO", 0, "Sumo (Deprecated)", ""},
|
||||
//{WOPHY_DYNAMO, "DYNAMO", 0, "Dynamo", ""},
|
||||
//{WOPHY_ODE, "ODE", 0, "ODE", ""},
|
||||
/*{WOPHY_ENJI, "ENJI", 0, "Enji", ""}, */
|
||||
/*{WOPHY_SUMO, "SUMO", 0, "Sumo (Deprecated)", ""}, */
|
||||
/*{WOPHY_DYNAMO, "DYNAMO", 0, "Dynamo", ""}, */
|
||||
/*{WOPHY_ODE, "ODE", 0, "ODE", ""}, */
|
||||
{WOPHY_BULLET, "BULLET", 0, "Bullet", ""},
|
||||
{0, NULL, 0, NULL, NULL}};
|
||||
*/
|
||||
#endif
|
||||
|
||||
srna = RNA_def_struct(brna, "World", "ID");
|
||||
RNA_def_struct_ui_text(srna, "World", "World datablock describing the environment and ambient lighting of a scene");
|
||||
|
Reference in New Issue
Block a user