Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,830 Lines • ▼ Show 20 Lines | static void rna_def_modifier_particleinstance(BlenderRNA *brna) | ||||
| RNA_def_property_float_sdna(prop, NULL, "random_rotation"); | RNA_def_property_float_sdna(prop, NULL, "random_rotation"); | ||||
| RNA_def_property_range(prop, 0.0, 1.0); | RNA_def_property_range(prop, 0.0, 1.0); | ||||
| RNA_def_property_ui_text(prop, "Random Rotation", "Randomize rotation around path"); | RNA_def_property_ui_text(prop, "Random Rotation", "Randomize rotation around path"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "particle_amount", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "particle_amount", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_range(prop, 0.0, 1.0); | RNA_def_property_range(prop, 0.0, 1.0); | ||||
| RNA_def_property_ui_text(prop, "Particle Amount", "Amount of particles to use for instancing"); | RNA_def_property_ui_text(prop, "Particle Amount", "Amount of particles to use for instancing"); | ||||
| RNA_def_property_float_default(prop, 1.0f); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "particle_offset", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "particle_offset", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_range(prop, 0.0, 1.0); | RNA_def_property_range(prop, 0.0, 1.0); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Particle Offset", | "Particle Offset", | ||||
| "Relative offset of particles to use for instancing, to avoid overlap " | "Relative offset of particles to use for instancing, to avoid overlap " | ||||
| "of multiple instances"); | "of multiple instances"); | ||||
| RNA_def_property_float_default(prop, 0.0f); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "index_layer_name", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "index_layer_name", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "index_layer_name"); | RNA_def_property_string_sdna(prop, NULL, "index_layer_name"); | ||||
| RNA_def_property_ui_text(prop, "Index Layer Name", "Custom data layer name for the index"); | RNA_def_property_ui_text(prop, "Index Layer Name", "Custom data layer name for the index"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "value_layer_name", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "value_layer_name", PROP_STRING, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 747 Lines • ▼ Show 20 Lines | static void rna_def_modifier_simpledeform(BlenderRNA *brna) | ||||
| RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, -10.0, 10.0, 1.0, 3); | RNA_def_property_ui_range(prop, -10.0, 10.0, 1.0, 3); | ||||
| RNA_def_property_ui_text(prop, "Factor", "Amount to deform object"); | RNA_def_property_ui_text(prop, "Factor", "Amount to deform object"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE); | prop = RNA_def_property(srna, "angle", PROP_FLOAT, PROP_ANGLE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "factor"); | RNA_def_property_float_sdna(prop, NULL, "factor"); | ||||
| RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); | ||||
| RNA_def_property_float_default(prop, DEG2RADF(45.0f)); | |||||
| RNA_def_property_ui_range(prop, DEG2RAD(-360.0), DEG2RAD(360.0), 10.0, 3); | RNA_def_property_ui_range(prop, DEG2RAD(-360.0), DEG2RAD(360.0), 10.0, 3); | ||||
| RNA_def_property_ui_text(prop, "Angle", "Angle of deformation"); | RNA_def_property_ui_text(prop, "Angle", "Angle of deformation"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "limits", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "limits", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "limit"); | RNA_def_property_float_sdna(prop, NULL, "limit"); | ||||
| RNA_def_property_array(prop, 2); | RNA_def_property_array(prop, 2); | ||||
| RNA_def_property_range(prop, 0, 1); | RNA_def_property_range(prop, 0, 1); | ||||
| ▲ Show 20 Lines • Show All 2,150 Lines • ▼ Show 20 Lines | prop = RNA_def_enum(srna, | ||||
| "Mix Mode", | "Mix Mode", | ||||
| "How to affect destination elements with source values"); | "How to affect destination elements with source values"); | ||||
| RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_DataTransferModifier_mix_mode_itemf"); | RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_DataTransferModifier_mix_mode_itemf"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_float_factor( | prop = RNA_def_float_factor( | ||||
| srna, | srna, | ||||
| "mix_factor", | "mix_factor", | ||||
| 1.0f, | 0.0f, | ||||
| 0.0f, | 0.0f, | ||||
| 1.0f, | 1.0f, | ||||
| "Mix Factor", | "Mix Factor", | ||||
| "Factor to use when applying data to destination (exact behavior depends on mix mode, " | "Factor to use when applying data to destination (exact behavior depends on mix mode, " | ||||
| "multiplied with weights from vertex group when defined)", | "multiplied with weights from vertex group when defined)", | ||||
| 0.0f, | 0.0f, | ||||
| 1.0f); | 1.0f); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| ▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | static void rna_def_modifier_normaledit(BlenderRNA *brna) | ||||
| RNA_def_property_subtype(prop, PROP_COORDS); | RNA_def_property_subtype(prop, PROP_COORDS); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "mix_mode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "mix_mode", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, prop_mix_mode_items); | RNA_def_property_enum_items(prop, prop_mix_mode_items); | ||||
| RNA_def_property_ui_text(prop, "Mix Mode", "How to mix generated normals with existing ones"); | RNA_def_property_ui_text(prop, "Mix Mode", "How to mix generated normals with existing ones"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_float(srna, | prop = RNA_def_property(srna, "mix_factor", PROP_FLOAT, PROP_FACTOR); | ||||
| "mix_factor", | RNA_def_property_range(prop, 0.0, 1.0); | ||||
| 1.0f, | RNA_def_property_ui_text( | ||||
| 0.0f, | prop, "Mix Factor", "How much of generated normals to mix with exiting ones"); | ||||
| 1.0f, | |||||
| "Mix Factor", | |||||
| "How much of generated normals to mix with exiting ones", | |||||
| 0.0f, | |||||
| 1.0f); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_float(srna, | prop = RNA_def_property(srna, "mix_limit", PROP_FLOAT, PROP_ANGLE); | ||||
| "mix_limit", | RNA_def_property_range(prop, 0.0, DEG2RADF(180.0f)); | ||||
| 1.0f, | RNA_def_property_ui_text(prop, "Max Angle", "Maximum angle between old and new normals"); | ||||
| 0.0f, | |||||
| DEG2RADF(180.0f), | |||||
| "Max Angle", | |||||
| "Maximum angle between old and new normals", | |||||
| 0.0f, | |||||
| DEG2RADF(180.0f)); | |||||
| RNA_def_property_subtype(prop, PROP_ANGLE); | |||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "no_polynors_fix", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "no_polynors_fix", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_NORMALEDIT_NO_POLYNORS_FIX); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_NORMALEDIT_NO_POLYNORS_FIX); | ||||
| RNA_def_property_boolean_default(prop, false); | RNA_def_property_boolean_default(prop, false); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Lock Polygon Normals", | "Lock Polygon Normals", | ||||
| "Do not flip polygons when their normals are not consistent " | "Do not flip polygons when their normals are not consistent " | ||||
| ▲ Show 20 Lines • Show All 330 Lines • Show Last 20 Lines | |||||