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 7,239 Lines • ▼ Show 20 Lines | void RNA_def_modifier(BlenderRNA *brna) | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", eModifierFlag_Active); | RNA_def_property_boolean_sdna(prop, NULL, "flag", eModifierFlag_Active); | ||||
| RNA_def_property_boolean_funcs(prop, NULL, "rna_Modifier_is_active_set"); | RNA_def_property_boolean_funcs(prop, NULL, "rna_Modifier_is_active_set"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_ui_text(prop, "Active", "The active modifier in the list"); | RNA_def_property_ui_text(prop, "Active", "The active modifier in the list"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, NULL); | RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, NULL); | ||||
| prop = RNA_def_boolean(srna, | |||||
| "is_override_data", | |||||
| false, | |||||
| "Override Modifier", | |||||
| "In a local override object, whether this modifier comes from the linked " | |||||
| "reference object, or is local to the override"); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", eModifierFlag_OverrideLibrary_Local); | |||||
| prop = RNA_def_property(srna, "use_apply_on_spline", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_apply_on_spline", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "mode", eModifierMode_ApplyOnSpline); | RNA_def_property_boolean_sdna(prop, NULL, "mode", eModifierMode_ApplyOnSpline); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Apply on Spline", | "Apply on Spline", | ||||
| "Apply this and all preceding deformation modifiers on splines' points rather than " | "Apply this and all preceding deformation modifiers on splines' points rather than " | ||||
| "on filled curve/surface"); | "on filled curve/surface"); | ||||
| RNA_def_property_ui_icon(prop, ICON_SURFACE_DATA, 0); | RNA_def_property_ui_icon(prop, ICON_SURFACE_DATA, 0); | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||