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 2,080 Lines • ▼ Show 20 Lines | static void rna_def_modifier_build(BlenderRNA *brna) | ||||
| RNA_def_struct_sdna(srna, "BuildModifierData"); | RNA_def_struct_sdna(srna, "BuildModifierData"); | ||||
| RNA_def_struct_ui_icon(srna, ICON_MOD_BUILD); | RNA_def_struct_ui_icon(srna, ICON_MOD_BUILD); | ||||
| RNA_define_lib_overridable(true); | RNA_define_lib_overridable(true); | ||||
| prop = RNA_def_property(srna, "frame_start", PROP_FLOAT, PROP_TIME); | prop = RNA_def_property(srna, "frame_start", PROP_FLOAT, PROP_TIME); | ||||
| RNA_def_property_float_sdna(prop, NULL, "start"); | RNA_def_property_float_sdna(prop, NULL, "start"); | ||||
| RNA_def_property_range(prop, MINAFRAMEF, MAXFRAMEF); | RNA_def_property_range(prop, MINAFRAMEF, MAXFRAMEF); | ||||
| RNA_def_property_ui_text(prop, "Start", "Start frame of the effect"); | RNA_def_property_ui_text(prop, "Start Frame", "Start frame of the effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "frame_duration", PROP_FLOAT, PROP_TIME); | prop = RNA_def_property(srna, "frame_duration", PROP_FLOAT, PROP_TIME); | ||||
| RNA_def_property_float_sdna(prop, NULL, "length"); | RNA_def_property_float_sdna(prop, NULL, "length"); | ||||
| RNA_def_property_range(prop, 1, MAXFRAMEF); | RNA_def_property_range(prop, 1, MAXFRAMEF); | ||||
| RNA_def_property_ui_text(prop, "Length", "Total time the build effect requires"); | RNA_def_property_ui_text(prop, "Length", "Total time the build effect requires"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| ▲ Show 20 Lines • Show All 1,312 Lines • ▼ Show 20 Lines | static void rna_def_modifier_cast(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_z", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_z", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_CAST_Z); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_CAST_Z); | ||||
| RNA_def_property_ui_text(prop, "Z", ""); | RNA_def_property_ui_text(prop, "Z", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "use_radius_as_size", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_radius_as_size", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_CAST_SIZE_FROM_RADIUS); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_CAST_SIZE_FROM_RADIUS); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "From Radius", "Use radius as size of projection shape (0 = auto)"); | prop, "Size from Radius", "Use radius as size of projection shape (0 = auto)"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "use_transform", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_transform", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_CAST_USE_OB_TRANSFORM); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_CAST_USE_OB_TRANSFORM); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Use Transform", "Use object transform to control projection shape"); | prop, "Use Transform", "Use object transform to control projection shape"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| ▲ Show 20 Lines • Show All 1,368 Lines • ▼ Show 20 Lines | static void rna_def_modifier_screw(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_normal_flip", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_normal_flip", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SCREW_NORMAL_FLIP); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SCREW_NORMAL_FLIP); | ||||
| RNA_def_property_ui_text(prop, "Flip", "Flip normals of lathed faces"); | RNA_def_property_ui_text(prop, "Flip", "Flip normals of lathed faces"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "use_normal_calculate", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_normal_calculate", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SCREW_NORMAL_CALC); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SCREW_NORMAL_CALC); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Calc Order", "Calculate the order of edges (needed for meshes, but not curves)"); | prop, "Calculate Order", "Calculate the order of edges (needed for meshes, but not curves)"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "use_object_screw_offset", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_object_screw_offset", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SCREW_OBJECT_OFFSET); | RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_SCREW_OBJECT_OFFSET); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Object Screw", "Use the distance between the objects to make a screw"); | prop, "Object Screw", "Use the distance between the objects to make a screw"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| ▲ Show 20 Lines • Show All 2,170 Lines • Show Last 20 Lines | |||||