more rna renaming for non-animated properties: mainly Texface, Particle & Pointcache changes.
Changed some names when applying. - render was use_render, changed to show_viewport so call it show_render - texface shadow was use_shadow_face, changed to use_shadow_cast since this only affects casting. - transp was alpha_mode, changed to blend_type since its similar to other overlay blending where this property name is used.
This commit is contained in:
@@ -745,7 +745,7 @@ static uiLayout *draw_modifier(uiLayout *layout, Scene *scene, Object *ob, Modif
|
||||
if ( ((md->type!=eModifierType_Softbody && md->type!=eModifierType_Collision) || !(ob->pd && ob->pd->deflect))
|
||||
&& (md->type!=eModifierType_Surface) )
|
||||
{
|
||||
uiItemR(row, &ptr, "render", 0, "", 0);
|
||||
uiItemR(row, &ptr, "show_render", 0, "", 0);
|
||||
uiItemR(row, &ptr, "show_viewport", 0, "", 0);
|
||||
|
||||
if (mti->flags & eModifierTypeFlag_SupportsEditmode)
|
||||
|
||||
@@ -443,7 +443,8 @@ static void rna_def_boidstate(BlenderRNA *brna)
|
||||
RNA_def_property_int_funcs(prop, "rna_BoidState_active_boid_rule_index_get", "rna_BoidState_active_boid_rule_index_set", "rna_BoidState_active_boid_rule_index_range");
|
||||
RNA_def_property_ui_text(prop, "Active Boid Rule Index", "");
|
||||
|
||||
prop= RNA_def_property(srna, "rule_fuzziness", PROP_FLOAT, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "rule_fuzzy", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "rule_fuzziness");
|
||||
RNA_def_property_range(prop, 0.0, 1.0);
|
||||
RNA_def_property_ui_text(prop, "Rule Fuzziness", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Boids_reset");
|
||||
|
||||
@@ -1321,67 +1321,68 @@ static void rna_def_mtface(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Image", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "tex", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_texture", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_TEX);
|
||||
RNA_def_property_ui_text(prop, "Tex", "Render face with texture");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "light", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_light", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_LIGHT);
|
||||
RNA_def_property_ui_text(prop, "Light", "Use light for face");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "invisible", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "hide", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_INVISIBLE);
|
||||
RNA_def_property_ui_text(prop, "Invisible", "Make face invisible");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "collision", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_collision", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_DYNAMIC);
|
||||
RNA_def_property_ui_text(prop, "Collision", "Use face for collision and ray-sensor detection");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "shared", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_blend_shared", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_SHAREDCOL);
|
||||
RNA_def_property_ui_text(prop, "Shared", "Blend vertex colors across face when vertices are shared");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "twoside", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_twoside", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_TWOSIDE);
|
||||
RNA_def_property_ui_text(prop, "Two-side", "Render face two-sided");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "object_color", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_object_color", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_OBCOL);
|
||||
RNA_def_property_ui_text(prop, "Object Color", "Use ObColor instead of vertex colors");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "halo", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_halo", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_BILLBOARD);
|
||||
RNA_def_property_ui_text(prop, "Halo", "Screen aligned billboard");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "billboard", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_billboard", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_BILLBOARD2);
|
||||
RNA_def_property_ui_text(prop, "Billboard", "Billboard with Z-axis constraint");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "shadow", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_shadow_cast", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_SHADOW);
|
||||
RNA_def_property_ui_text(prop, "Shadow", "Face is used for shadow");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "text", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_bitmap_text", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_BMFONT);
|
||||
RNA_def_property_ui_text(prop, "Text", "Enable bitmap text on face");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "alpha_sort", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_alpha_sort", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", TF_ALPHASORT);
|
||||
RNA_def_property_ui_text(prop, "Alpha Sort", "Enable sorting of faces for correct alpha drawing (slow, use Clip Alpha instead when possible)");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
|
||||
prop= RNA_def_property(srna, "transp", PROP_ENUM, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "blend_type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "transp");
|
||||
RNA_def_property_enum_items(prop, transp_items);
|
||||
RNA_def_property_ui_text(prop, "Transparency", "Transparency blending mode");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data");
|
||||
@@ -1392,7 +1393,7 @@ static void rna_def_mtface(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "UV Selected", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Mesh_update_select");
|
||||
|
||||
prop= RNA_def_property(srna, "uv_pinned", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "pin_uv", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "unwrap", TF_PIN1);
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_ui_text(prop, "UV Pinned", "");
|
||||
|
||||
@@ -2267,7 +2267,7 @@ void RNA_def_modifier(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_VIEW_OFF, 0);
|
||||
|
||||
prop= RNA_def_property(srna, "render", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "show_render", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "mode", eModifierMode_Render);
|
||||
RNA_def_property_ui_text(prop, "Render", "Use modifier during rendering");
|
||||
RNA_def_property_ui_icon(prop, ICON_SCENE, 0);
|
||||
|
||||
@@ -294,7 +294,7 @@ static void rna_Cache_active_point_cache_index_set(struct PointerRNA *ptr, int v
|
||||
BLI_freelistN(&pidlist);
|
||||
}
|
||||
|
||||
static void rna_PointCache_step_range(PointerRNA *ptr, int *min, int *max)
|
||||
static void rna_PointCache_frame_step_range(PointerRNA *ptr, int *min, int *max)
|
||||
{
|
||||
Object *ob = ptr->id.data;
|
||||
PointCache *cache= ptr->data;
|
||||
@@ -714,9 +714,10 @@ static void rna_def_pointcache(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 1, MAXFRAME);
|
||||
RNA_def_property_ui_text(prop, "End", "Frame on which the simulation stops");
|
||||
|
||||
prop= RNA_def_property(srna, "step", PROP_INT, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "frame_step", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_int_sdna(prop, NULL, "step");
|
||||
RNA_def_property_range(prop, 1, 20);
|
||||
RNA_def_property_int_funcs(prop, NULL, NULL, "rna_PointCache_step_range");
|
||||
RNA_def_property_int_funcs(prop, NULL, NULL, "rna_PointCache_frame_step_range");
|
||||
RNA_def_property_ui_text(prop, "Cache Step", "Number of frames between cached frames");
|
||||
RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_change");
|
||||
|
||||
@@ -735,7 +736,7 @@ static void rna_def_pointcache(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", PTCACHE_BAKING);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
|
||||
prop= RNA_def_property(srna, "disk_cache", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_disk_cache", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", PTCACHE_DISK_CACHE);
|
||||
RNA_def_property_ui_text(prop, "Disk Cache", "Save cache files to disk (.blend file must be saved first)");
|
||||
RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_toggle_disk_cache");
|
||||
@@ -760,7 +761,7 @@ static void rna_def_pointcache(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "File Path", "Cache file path");
|
||||
RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_idname_change");
|
||||
|
||||
prop= RNA_def_property(srna, "quick_cache", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_quick_cache", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", PTCACHE_QUICK_CACHE);
|
||||
RNA_def_property_ui_text(prop, "Quick Cache", "Update simulation with cache steps");
|
||||
RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_change");
|
||||
@@ -770,7 +771,7 @@ static void rna_def_pointcache(BlenderRNA *brna)
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Cache Info", "Info on current cache status");
|
||||
|
||||
prop= RNA_def_property(srna, "external", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "use_external", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", PTCACHE_EXTERNAL);
|
||||
RNA_def_property_ui_text(prop, "External", "Read cache from an external location");
|
||||
RNA_def_property_update(prop, NC_OBJECT, "rna_Cache_idname_change");
|
||||
@@ -949,7 +950,7 @@ static void rna_def_effector_weight(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Wind", "Wind effector weight");
|
||||
RNA_def_property_update(prop, 0, "rna_EffectorWeight_update");
|
||||
|
||||
prop= RNA_def_property(srna, "curveguide", PROP_FLOAT, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "curve_guide", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "weight[5]");
|
||||
RNA_def_property_range(prop, -200.0f, 200.0f);
|
||||
RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.1, 3);
|
||||
|
||||
@@ -876,7 +876,7 @@ static void rna_def_particle(BlenderRNA *brna)
|
||||
// float fuv[4], foffset; /* coordinates on face/edge number "num" and depth along*/
|
||||
// /* face normal for volume emission */
|
||||
|
||||
prop= RNA_def_property(srna, "birthtime", PROP_FLOAT, PROP_TIME);
|
||||
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_ui_text(prop, "Birth Time", "");
|
||||
@@ -902,7 +902,7 @@ static void rna_def_particle(BlenderRNA *brna)
|
||||
// int totkey;
|
||||
|
||||
/* flag */
|
||||
prop= RNA_def_property(srna, "is_existing", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "is_exist", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", PARS_UNEXIST);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Exists", "");
|
||||
@@ -2055,12 +2055,13 @@ static void rna_def_particle_target(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Duration", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Particle_target_redo");
|
||||
|
||||
prop= RNA_def_property(srna, "valid", PROP_BOOLEAN, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "is_valid", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", PTARGET_VALID);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Valid", "Keyed particles target is valid");
|
||||
|
||||
prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "alliance", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "mode");
|
||||
RNA_def_property_enum_items(prop, mode_items);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Mode", "");
|
||||
|
||||
@@ -320,7 +320,7 @@ static void rna_def_smoke_flow_settings(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Initial Velocity", "Smoke inherits it's velocity from the emitter particle");
|
||||
RNA_def_property_update(prop, 0, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "velocity_multiplier", PROP_FLOAT, PROP_NONE);
|
||||
prop= RNA_def_property(srna, "velocity_factor", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "vel_multi");
|
||||
RNA_def_property_range(prop, -2.0, 2.0);
|
||||
RNA_def_property_ui_range(prop, -2.0, 2.0, 0.05, 5);
|
||||
|
||||
@@ -139,11 +139,13 @@ static void rna_def_text_marker(BlenderRNA *brna)
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Line", "Line in which the marker is located");
|
||||
|
||||
prop= RNA_def_property(srna, "start", PROP_INT, PROP_UNSIGNED);
|
||||
prop= RNA_def_property(srna, "character_index_start", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "start");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Start", "Start position of the marker in the line");
|
||||
|
||||
prop= RNA_def_property(srna, "end", PROP_INT, PROP_UNSIGNED);
|
||||
prop= RNA_def_property(srna, "character_index_end", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "end");
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "End", "Start position of the marker in the line");
|
||||
|
||||
|
||||
@@ -615,7 +615,7 @@ static void rna_def_environment_map(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Zoom", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Texture_update");
|
||||
|
||||
prop= RNA_def_property(srna, "ignore_layers", PROP_BOOLEAN, PROP_LAYER_MEMBER);
|
||||
prop= RNA_def_property(srna, "layers_ignore", PROP_BOOLEAN, PROP_LAYER_MEMBER);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "notlay", 1);
|
||||
RNA_def_property_array(prop, 20);
|
||||
RNA_def_property_ui_text(prop, "Ignore Layers", "Hide objects on these layers when generating the Environment Map");
|
||||
|
||||
@@ -2185,7 +2185,7 @@
|
||||
#+ * MeshStringProperty.value -> value: string "NO DESCRIPTION"
|
||||
#+ * MeshStringPropertyLayer.data -> data: collection, "(read-only)"
|
||||
#+ * MeshStringPropertyLayer.name -> name: string "NO DESCRIPTION"
|
||||
+ * MeshTextureFace.transp -> alpha_mode: enum "Transparency blending mode"
|
||||
+ * MeshTextureFace.transp -> blend_type: enum "Transparency blending mode"
|
||||
+ * MeshTextureFace.invisible -> hide: boolean "Make face invisible"
|
||||
#+ * MeshTextureFace.image -> image: pointer "NO DESCRIPTION"
|
||||
+ * MeshTextureFace.uv_pinned -> pin_uv: boolean[4] "NO DESCRIPTION"
|
||||
@@ -2198,7 +2198,7 @@
|
||||
+ * MeshTextureFace.halo -> use_halo: boolean "Screen aligned billboard"
|
||||
+ * MeshTextureFace.light -> use_light: boolean "Use light for face"
|
||||
+ * MeshTextureFace.object_color -> use_object_color: boolean "Use ObColor instead of vertex colors"
|
||||
+ * MeshTextureFace.shadow -> use_shadow_face: boolean "Face is used for shadow"
|
||||
+ * MeshTextureFace.shadow -> use_shadow_cast: boolean "Face is used for shadow"
|
||||
+ * MeshTextureFace.tex -> use_texture: boolean "Render face with texture"
|
||||
+ * MeshTextureFace.twoside -> use_twoside: boolean "Render face two-sided"
|
||||
#+ * MeshTextureFace.uv -> uv: float[8] "NO DESCRIPTION"
|
||||
@@ -2235,7 +2235,7 @@
|
||||
#Modifier.show_on_cage -> show_on_cage: boolean "Enable direct editing of modifier control cage"
|
||||
#Modifier.show_viewport -> show_viewport: boolean "Realtime display of a modifier"
|
||||
#+ * Modifier.type -> type: enum, "(read-only)"
|
||||
+ * Modifier.render -> use_render: boolean "Use modifier during rendering"
|
||||
+ * Modifier.render -> show_render: boolean "Use modifier during rendering"
|
||||
+ * Modifier|ArmatureModifier.invert -> invert_vertex_group: boolean "Invert vertex group influence"
|
||||
#+ * Modifier|ArmatureModifier.object -> object: pointer "Armature object to deform with"
|
||||
#+ * Modifier|ArmatureModifier.use_bone_envelopes -> use_bone_envelopes: boolean "NO DESCRIPTION"
|
||||
|
||||
@@ -6,6 +6,8 @@ cd ./source/blender/makesrna/rna_cleanup/
|
||||
./rna_cleaner_merge.py out_work.py rna_properties_work.py
|
||||
./rna_cleaner.py out_work_merged.py
|
||||
./rna_cleaner.py out_work_lost.py
|
||||
mv out_work_merged_work.txt rna_properties_new.txt
|
||||
mv out_work_merged_work.txt rna_properties.txt # overwrite
|
||||
mv out_work_lost_work.txt rna_properties_lost.txt
|
||||
echo "Updated: rna_properties_new.txt rna_properties_lost.txt"
|
||||
cat rna_properties.txt | grep -v "^#" > rna_properties_edits.txt
|
||||
./rna_cleaner.py rna_properties.txt
|
||||
echo "Updated: rna_properties.txt rna_properties_edits.txt rna_properties_lost.txt "
|
||||
Reference in New Issue
Block a user