diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_key.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_key.c | 222 |
1 files changed, 111 insertions, 111 deletions
diff --git a/source/blender/makesrna/intern/rna_key.c b/source/blender/makesrna/intern/rna_key.c index 08836cc1865..54d258e2e72 100644 --- a/source/blender/makesrna/intern/rna_key.c +++ b/source/blender/makesrna/intern/rna_key.c @@ -55,7 +55,7 @@ static Key *rna_ShapeKey_find_key(ID *id) { - switch(GS(id->name)) { + switch (GS(id->name)) { case ID_CU: return ((Curve*)id)->key; case ID_KE: return (Key*)id; case ID_LT: return ((Lattice*)id)->key; @@ -67,7 +67,7 @@ static Key *rna_ShapeKey_find_key(ID *id) void rna_ShapeKey_name_set(PointerRNA *ptr, const char *value) { - KeyBlock *kb= ptr->data; + KeyBlock *kb = ptr->data; char oldname[sizeof(kb->name)]; /* make a copy of the old name first */ @@ -78,7 +78,7 @@ void rna_ShapeKey_name_set(PointerRNA *ptr, const char *value) /* make sure the name is truly unique */ if (ptr->id.data) { - Key *key= rna_ShapeKey_find_key(ptr->id.data); + Key *key = rna_ShapeKey_find_key(ptr->id.data); BLI_uniquename(&key->block, kb, "Key", '.', offsetof(KeyBlock, name), sizeof(kb->name)); } @@ -88,17 +88,17 @@ void rna_ShapeKey_name_set(PointerRNA *ptr, const char *value) static void rna_ShapeKey_value_set(PointerRNA *ptr, float value) { - KeyBlock *data= (KeyBlock*)ptr->data; + KeyBlock *data = (KeyBlock*)ptr->data; CLAMP(value, data->slidermin, data->slidermax); - data->curval= value; + data->curval = value; } static void rna_ShapeKey_value_range(PointerRNA *ptr, float *min, float *max) { - KeyBlock *data= (KeyBlock*)ptr->data; + KeyBlock *data = (KeyBlock*)ptr->data; - *min= data->slidermin; - *max= data->slidermax; + *min = data->slidermin; + *max = data->slidermax; } /* epsilon for how close one end of shapekey range can get to the other */ @@ -106,15 +106,15 @@ static void rna_ShapeKey_value_range(PointerRNA *ptr, float *min, float *max) static void rna_ShapeKey_slider_min_range(PointerRNA *ptr, float *min, float *max) { - KeyBlock *data= (KeyBlock*)ptr->data; + KeyBlock *data = (KeyBlock*)ptr->data; - *min= -10.0f; - *max= data->slidermax - SHAPEKEY_SLIDER_TOL; + *min = -10.0f; + *max = data->slidermax - SHAPEKEY_SLIDER_TOL; } static void rna_ShapeKey_slider_min_set(PointerRNA *ptr, float value) { - KeyBlock *data= (KeyBlock*)ptr->data; + KeyBlock *data = (KeyBlock*)ptr->data; float min, max; rna_ShapeKey_slider_min_range(ptr, &min, &max); @@ -124,15 +124,15 @@ static void rna_ShapeKey_slider_min_set(PointerRNA *ptr, float value) static void rna_ShapeKey_slider_max_range(PointerRNA *ptr, float *min, float *max) { - KeyBlock *data= (KeyBlock*)ptr->data; + KeyBlock *data = (KeyBlock*)ptr->data; - *min= data->slidermin + SHAPEKEY_SLIDER_TOL; - *max= 10.0f; + *min = data->slidermin + SHAPEKEY_SLIDER_TOL; + *max = 10.0f; } static void rna_ShapeKey_slider_max_set(PointerRNA *ptr, float value) { - KeyBlock *data= (KeyBlock*)ptr->data; + KeyBlock *data = (KeyBlock*)ptr->data; float min, max; rna_ShapeKey_slider_max_range(ptr, &min, &max); @@ -144,8 +144,8 @@ static void rna_ShapeKey_slider_max_set(PointerRNA *ptr, float value) PointerRNA rna_object_shapekey_index_get(ID *id, int value) { - Key *key= rna_ShapeKey_find_key(id); - KeyBlock *kb= NULL; + Key *key = rna_ShapeKey_find_key(id); + KeyBlock *kb = NULL; PointerRNA ptr; if (key && value < key->totkey) @@ -158,7 +158,7 @@ PointerRNA rna_object_shapekey_index_get(ID *id, int value) int rna_object_shapekey_index_set(ID *id, PointerRNA value, int current) { - Key *key= rna_ShapeKey_find_key(id); + Key *key = rna_ShapeKey_find_key(id); if (key) { int a = BLI_findindex(&key->block, value.data); @@ -170,100 +170,100 @@ int rna_object_shapekey_index_set(ID *id, PointerRNA value, int current) static PointerRNA rna_ShapeKey_relative_key_get(PointerRNA *ptr) { - KeyBlock *kb= (KeyBlock*)ptr->data; + KeyBlock *kb = (KeyBlock*)ptr->data; return rna_object_shapekey_index_get(ptr->id.data, kb->relative); } static void rna_ShapeKey_relative_key_set(PointerRNA *ptr, PointerRNA value) { - KeyBlock *kb= (KeyBlock*)ptr->data; + KeyBlock *kb = (KeyBlock*)ptr->data; - kb->relative= rna_object_shapekey_index_set(ptr->id.data, value, kb->relative); + kb->relative = rna_object_shapekey_index_set(ptr->id.data, value, kb->relative); } static void rna_ShapeKeyPoint_co_get(PointerRNA *ptr, float *values) { - float *vec= (float*)ptr->data; + float *vec = (float*)ptr->data; - values[0]= vec[0]; - values[1]= vec[1]; - values[2]= vec[2]; + values[0] = vec[0]; + values[1] = vec[1]; + values[2] = vec[2]; } static void rna_ShapeKeyPoint_co_set(PointerRNA *ptr, const float *values) { - float *vec= (float*)ptr->data; + float *vec = (float*)ptr->data; - vec[0]= values[0]; - vec[1]= values[1]; - vec[2]= values[2]; + vec[0] = values[0]; + vec[1] = values[1]; + vec[2] = values[2]; } static float rna_ShapeKeyCurvePoint_tilt_get(PointerRNA *ptr) { - float *vec= (float*)ptr->data; + float *vec = (float*)ptr->data; return vec[3]; } static void rna_ShapeKeyCurvePoint_tilt_set(PointerRNA *ptr, float value) { - float *vec= (float*)ptr->data; - vec[3]= value; + float *vec = (float*)ptr->data; + vec[3] = value; } static void rna_ShapeKeyBezierPoint_co_get(PointerRNA *ptr, float *values) { - float *vec= (float*)ptr->data; + float *vec = (float*)ptr->data; - values[0]= vec[0+3]; - values[1]= vec[1+3]; - values[2]= vec[2+3]; + values[0] = vec[0+3]; + values[1] = vec[1+3]; + values[2] = vec[2+3]; } static void rna_ShapeKeyBezierPoint_co_set(PointerRNA *ptr, const float *values) { - float *vec= (float*)ptr->data; + float *vec = (float*)ptr->data; - vec[0+3]= values[0]; - vec[1+3]= values[1]; - vec[2+3]= values[2]; + vec[0+3] = values[0]; + vec[1+3] = values[1]; + vec[2+3] = values[2]; } static void rna_ShapeKeyBezierPoint_handle_1_co_get(PointerRNA *ptr, float *values) { - float *vec= (float*)ptr->data; + float *vec = (float*)ptr->data; - values[0]= vec[0]; - values[1]= vec[1]; - values[2]= vec[2]; + values[0] = vec[0]; + values[1] = vec[1]; + values[2] = vec[2]; } static void rna_ShapeKeyBezierPoint_handle_1_co_set(PointerRNA *ptr, const float *values) { - float *vec= (float*)ptr->data; + float *vec = (float*)ptr->data; - vec[0]= values[0]; - vec[1]= values[1]; - vec[2]= values[2]; + vec[0] = values[0]; + vec[1] = values[1]; + vec[2] = values[2]; } static void rna_ShapeKeyBezierPoint_handle_2_co_get(PointerRNA *ptr, float *values) { - float *vec= (float*)ptr->data; + float *vec = (float*)ptr->data; - values[0]= vec[6+0]; - values[1]= vec[6+1]; - values[2]= vec[6+2]; + values[0] = vec[6+0]; + values[1] = vec[6+1]; + values[2] = vec[6+2]; } static void rna_ShapeKeyBezierPoint_handle_2_co_set(PointerRNA *ptr, const float *values) { - float *vec= (float*)ptr->data; + float *vec = (float*)ptr->data; - vec[6+0]= values[0]; - vec[6+1]= values[1]; - vec[6+2]= values[2]; + vec[6+0] = values[0]; + vec[6+1] = values[1]; + vec[6+2] = values[2]; } /*static float rna_ShapeKeyBezierPoint_tilt_get(PointerRNA *ptr) @@ -280,17 +280,17 @@ static void rna_ShapeKeyBezierPoint_tilt_set(PointerRNA *ptr, float value) static void rna_ShapeKey_data_begin(CollectionPropertyIterator *iter, PointerRNA *ptr) { - Key *key= rna_ShapeKey_find_key(ptr->id.data); - KeyBlock *kb= (KeyBlock*)ptr->data; + Key *key = rna_ShapeKey_find_key(ptr->id.data); + KeyBlock *kb = (KeyBlock*)ptr->data; Curve *cu; Nurb *nu; - int tot= kb->totelem, size= key->elemsize; + int tot = kb->totelem, size = key->elemsize; - if(GS(key->from->name) == ID_CU) { - cu= (Curve*)key->from; - nu= cu->nurb.first; + if (GS(key->from->name) == ID_CU) { + cu = (Curve*)key->from; + nu = cu->nurb.first; - if(nu->bezt) { + if (nu->bezt) { tot /= 3; size *= 3; } @@ -301,17 +301,17 @@ static void rna_ShapeKey_data_begin(CollectionPropertyIterator *iter, PointerRNA static int rna_ShapeKey_data_length(PointerRNA *ptr) { - Key *key= rna_ShapeKey_find_key(ptr->id.data); - KeyBlock *kb= (KeyBlock*)ptr->data; + Key *key = rna_ShapeKey_find_key(ptr->id.data); + KeyBlock *kb = (KeyBlock*)ptr->data; Curve *cu; Nurb *nu; - int tot= kb->totelem; + int tot = kb->totelem; - if(GS(key->from->name) == ID_CU) { - cu= (Curve*)key->from; - nu= cu->nurb.first; + if (GS(key->from->name) == ID_CU) { + cu = (Curve*)key->from; + nu = cu->nurb.first; - if(nu->bezt) + if (nu->bezt) tot /= 3; } @@ -320,30 +320,30 @@ static int rna_ShapeKey_data_length(PointerRNA *ptr) static PointerRNA rna_ShapeKey_data_get(CollectionPropertyIterator *iter) { - Key *key= rna_ShapeKey_find_key(iter->parent.id.data); + Key *key = rna_ShapeKey_find_key(iter->parent.id.data); StructRNA *type; Curve *cu; Nurb *nu; - if(GS(key->from->name) == ID_CU) { - cu= (Curve*)key->from; - nu= cu->nurb.first; + if (GS(key->from->name) == ID_CU) { + cu = (Curve*)key->from; + nu = cu->nurb.first; - if(nu->bezt) - type= &RNA_ShapeKeyBezierPoint; + if (nu->bezt) + type = &RNA_ShapeKeyBezierPoint; else - type= &RNA_ShapeKeyCurvePoint; + type = &RNA_ShapeKeyCurvePoint; } else - type= &RNA_ShapeKeyPoint; + type = &RNA_ShapeKeyPoint; return rna_pointer_inherit_refine(&iter->parent, type, rna_iterator_array_get(iter)); } static char *rna_ShapeKey_path(PointerRNA *ptr) { - KeyBlock *kb= (KeyBlock *)ptr->data; - ID *id= ptr->id.data; + KeyBlock *kb = (KeyBlock *)ptr->data; + ID *id = ptr->id.data; if ((id) && (GS(id->name) != ID_KE)) return BLI_sprintfN("shape_keys.key_blocks[\"%s\"]", kb->name); @@ -353,11 +353,11 @@ static char *rna_ShapeKey_path(PointerRNA *ptr) static void rna_Key_update_data(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr) { - Key *key= ptr->id.data; + Key *key = ptr->id.data; Object *ob; - for(ob=bmain->object.first; ob; ob= ob->id.next) { - if(ob_get_key(ob) == key) { + for (ob = bmain->object.first; ob; ob = ob->id.next) { + if (ob_get_key(ob) == key) { DAG_id_tag_update(&ob->id, OB_RECALC_DATA); WM_main_add_notifier(NC_OBJECT|ND_MODIFIER, ob); } @@ -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 @@ -447,48 +447,48 @@ static void rna_def_keydata(BlenderRNA *brna) StructRNA *srna; PropertyRNA *prop; - srna= RNA_def_struct(brna, "ShapeKeyPoint", NULL); + srna = RNA_def_struct(brna, "ShapeKeyPoint", NULL); RNA_def_struct_ui_text(srna, "Shape Key Point", "Point in a shape key"); RNA_def_struct_path_func(srna, "rna_ShapeKeyPoint_path"); - prop= RNA_def_property(srna, "co", PROP_FLOAT, PROP_TRANSLATION); + prop = RNA_def_property(srna, "co", PROP_FLOAT, PROP_TRANSLATION); RNA_def_property_array(prop, 3); RNA_def_property_float_funcs(prop, "rna_ShapeKeyPoint_co_get", "rna_ShapeKeyPoint_co_set", NULL); RNA_def_property_ui_text(prop, "Location", ""); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - srna= RNA_def_struct(brna, "ShapeKeyCurvePoint", NULL); + srna = RNA_def_struct(brna, "ShapeKeyCurvePoint", NULL); RNA_def_struct_ui_text(srna, "Shape Key Curve Point", "Point in a shape key for curves"); RNA_def_struct_path_func(srna, "rna_ShapeKeyPoint_path"); /* there's nothing type specific here, so this is fine for now */ - prop= RNA_def_property(srna, "co", PROP_FLOAT, PROP_TRANSLATION); + prop = RNA_def_property(srna, "co", PROP_FLOAT, PROP_TRANSLATION); RNA_def_property_array(prop, 3); RNA_def_property_float_funcs(prop, "rna_ShapeKeyPoint_co_get", "rna_ShapeKeyPoint_co_set", NULL); RNA_def_property_ui_text(prop, "Location", ""); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - prop= RNA_def_property(srna, "tilt", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "tilt", PROP_FLOAT, PROP_NONE); RNA_def_property_float_funcs(prop, "rna_ShapeKeyCurvePoint_tilt_get", "rna_ShapeKeyCurvePoint_tilt_set", NULL); RNA_def_property_ui_text(prop, "Tilt", ""); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - srna= RNA_def_struct(brna, "ShapeKeyBezierPoint", NULL); + srna = RNA_def_struct(brna, "ShapeKeyBezierPoint", NULL); RNA_def_struct_ui_text(srna, "Shape Key Bezier Point", "Point in a shape key for Bezier curves"); RNA_def_struct_path_func(srna, "rna_ShapeKeyPoint_path"); /* there's nothing type specific here, so this is fine for now */ - prop= RNA_def_property(srna, "co", PROP_FLOAT, PROP_TRANSLATION); + prop = RNA_def_property(srna, "co", PROP_FLOAT, PROP_TRANSLATION); RNA_def_property_array(prop, 3); RNA_def_property_float_funcs(prop, "rna_ShapeKeyBezierPoint_co_get", "rna_ShapeKeyBezierPoint_co_set", NULL); RNA_def_property_ui_text(prop, "Location", ""); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - prop= RNA_def_property(srna, "handle_left", PROP_FLOAT, PROP_TRANSLATION); + prop = RNA_def_property(srna, "handle_left", PROP_FLOAT, PROP_TRANSLATION); RNA_def_property_array(prop, 3); RNA_def_property_float_funcs(prop, "rna_ShapeKeyBezierPoint_handle_1_co_get", "rna_ShapeKeyBezierPoint_handle_1_co_set", NULL); RNA_def_property_ui_text(prop, "Handle 1 Location", ""); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - prop= RNA_def_property(srna, "handle_right", PROP_FLOAT, PROP_TRANSLATION); + prop = RNA_def_property(srna, "handle_right", PROP_FLOAT, PROP_TRANSLATION); RNA_def_property_array(prop, 3); RNA_def_property_float_funcs(prop, "rna_ShapeKeyBezierPoint_handle_2_co_get", "rna_ShapeKeyBezierPoint_handle_2_co_set", NULL); RNA_def_property_ui_text(prop, "Handle 2 Location", ""); @@ -512,70 +512,70 @@ static void rna_def_keyblock(BlenderRNA *brna) {KEY_BSPLINE, "KEY_BSPLINE", 0, "BSpline", ""}, {0, NULL, 0, NULL, NULL}}; - srna= RNA_def_struct(brna, "ShapeKey", NULL); + srna = RNA_def_struct(brna, "ShapeKey", NULL); RNA_def_struct_ui_text(srna, "Shape Key", "Shape key in a shape keys datablock"); RNA_def_struct_sdna(srna, "KeyBlock"); RNA_def_struct_path_func(srna, "rna_ShapeKey_path"); RNA_def_struct_ui_icon(srna, ICON_SHAPEKEY_DATA); - prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); + prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); RNA_def_property_ui_text(prop, "Name", "Name of Shape Key"); RNA_def_property_string_funcs(prop, NULL, NULL, "rna_ShapeKey_name_set"); RNA_def_struct_name_property(srna, prop); /* keys need to be sorted to edit this */ - prop= RNA_def_property(srna, "frame", PROP_FLOAT, PROP_TIME); + prop = RNA_def_property(srna, "frame", PROP_FLOAT, PROP_TIME); RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_float_sdna(prop, NULL, "pos"); RNA_def_property_ui_text(prop, "Frame", "Frame for absolute keys"); RNA_def_property_update(prop, 0, "rna_Key_update_data"); /* for now, this is editable directly, as users can set this even if they're not animating them (to test results) */ - prop= RNA_def_property(srna, "value", PROP_FLOAT, PROP_FACTOR); + prop = RNA_def_property(srna, "value", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "curval"); RNA_def_property_float_funcs(prop, NULL, "rna_ShapeKey_value_set", "rna_ShapeKey_value_range"); RNA_def_property_ui_range(prop, -10.0f, 10.0f, 10, 3); RNA_def_property_ui_text(prop, "Value", "Value of shape key at the current frame"); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - prop= RNA_def_property(srna, "interpolation", PROP_ENUM, PROP_NONE); + prop = RNA_def_property(srna, "interpolation", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "type"); RNA_def_property_enum_items(prop, prop_keyblock_type_items); RNA_def_property_ui_text(prop, "Interpolation", "Interpolation type"); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - prop= RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); + prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); RNA_def_property_string_sdna(prop, NULL, "vgroup"); RNA_def_property_ui_text(prop, "Vertex Group", "Vertex weight group, to blend with basis shape"); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - prop= RNA_def_property(srna, "relative_key", PROP_POINTER, PROP_NONE); + prop = RNA_def_property(srna, "relative_key", PROP_POINTER, PROP_NONE); RNA_def_property_struct_type(prop, "ShapeKey"); RNA_def_property_flag(prop, PROP_EDITABLE); RNA_def_property_pointer_funcs(prop, "rna_ShapeKey_relative_key_get", "rna_ShapeKey_relative_key_set", NULL, NULL); RNA_def_property_ui_text(prop, "Relative Key", "Shape used as a relative key"); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - prop= RNA_def_property(srna, "mute", PROP_BOOLEAN, PROP_NONE); + prop = RNA_def_property(srna, "mute", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", KEYBLOCK_MUTE); RNA_def_property_ui_text(prop, "Mute", "Mute this shape key"); RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_OFF, 1); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - prop= RNA_def_property(srna, "slider_min", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "slider_min", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "slidermin"); RNA_def_property_range(prop, -10.0f, 10.0f); RNA_def_property_float_funcs(prop, NULL, "rna_ShapeKey_slider_min_set", "rna_ShapeKey_slider_min_range"); RNA_def_property_ui_text(prop, "Slider Min", "Minimum for slider"); - prop= RNA_def_property(srna, "slider_max", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "slider_max", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "slidermax"); RNA_def_property_range(prop, -10.0f, 10.0f); RNA_def_property_float_default(prop, 1.0f); RNA_def_property_float_funcs(prop, NULL, "rna_ShapeKey_slider_max_set", "rna_ShapeKey_slider_max_range"); RNA_def_property_ui_text(prop, "Slider Max", "Maximum for slider"); - prop= RNA_def_property(srna, "data", PROP_COLLECTION, PROP_NONE); + prop = RNA_def_property(srna, "data", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "data", "totelem"); RNA_def_property_struct_type(prop, "UnknownType"); RNA_def_property_ui_text(prop, "Data", ""); @@ -587,34 +587,34 @@ static void rna_def_key(BlenderRNA *brna) StructRNA *srna; PropertyRNA *prop; - srna= RNA_def_struct(brna, "Key", "ID"); + srna = RNA_def_struct(brna, "Key", "ID"); RNA_def_struct_ui_text(srna, "Key", "Shape keys datablock containing different shapes of geometric datablocks"); RNA_def_struct_ui_icon(srna, ICON_SHAPEKEY_DATA); - prop= RNA_def_property(srna, "reference_key", PROP_POINTER, PROP_NONE); + prop = RNA_def_property(srna, "reference_key", PROP_POINTER, PROP_NONE); RNA_def_property_flag(prop, PROP_NEVER_NULL); RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_pointer_sdna(prop, NULL, "refkey"); RNA_def_property_ui_text(prop, "Reference Key", ""); - prop= RNA_def_property(srna, "key_blocks", PROP_COLLECTION, PROP_NONE); + prop = RNA_def_property(srna, "key_blocks", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "block", NULL); RNA_def_property_struct_type(prop, "ShapeKey"); RNA_def_property_ui_text(prop, "Key Blocks", "Shape keys"); rna_def_animdata_common(srna); - prop= RNA_def_property(srna, "user", PROP_POINTER, PROP_NONE); + prop = RNA_def_property(srna, "user", PROP_POINTER, PROP_NONE); RNA_def_property_flag(prop, PROP_NEVER_NULL); RNA_def_property_pointer_sdna(prop, NULL, "from"); RNA_def_property_ui_text(prop, "User", "Datablock using these shape keys"); - prop= RNA_def_property(srna, "use_relative", PROP_BOOLEAN, PROP_NONE); + prop = RNA_def_property(srna, "use_relative", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "type", KEY_RELATIVE); RNA_def_property_ui_text(prop, "Relative", "Make shape keys relative"); RNA_def_property_update(prop, 0, "rna_Key_update_data"); - prop= RNA_def_property(srna, "slurph", PROP_INT, PROP_UNSIGNED); + prop = RNA_def_property(srna, "slurph", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "slurph"); RNA_def_property_range(prop, -500, 500); RNA_def_property_ui_text(prop, "Slurph", "Create a delay (in frames) in applying keypositions, first vertex goes first"); |