Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_gpencil_modifier.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| RNA_def_property_float_sdna(prop, NULL, "force"); | RNA_def_property_float_sdna(prop, NULL, "force"); | ||||
| RNA_def_property_range(prop, 0, 1); | RNA_def_property_range(prop, 0, 1); | ||||
| RNA_def_property_ui_text(prop, "Strength", "Relative force of the hook"); | RNA_def_property_ui_text(prop, "Strength", "Relative force of the hook"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "falloff_type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "falloff_type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, modifier_gphook_falloff_items); /* share the enum */ | RNA_def_property_enum_items(prop, modifier_gphook_falloff_items); /* share the enum */ | ||||
| RNA_def_property_ui_text(prop, "Falloff Type", ""); | RNA_def_property_ui_text(prop, "Falloff Type", ""); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_CURVE); /* Abusing id_curve :/ */ | RNA_def_property_translation_context(prop, | ||||
| BLT_I18NCONTEXT_ID_CURVE_LEGACY); /* Abusing id_curve :/ */ | |||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "falloff_radius", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "falloff_radius", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "falloff"); | RNA_def_property_float_sdna(prop, NULL, "falloff"); | ||||
| RNA_def_property_range(prop, 0, FLT_MAX); | RNA_def_property_range(prop, 0, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0, 100, 100, 2); | RNA_def_property_ui_range(prop, 0, 100, 100, 2); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Radius", "If not zero, the distance from the hook where influence ends"); | prop, "Radius", "If not zero, the distance from the hook where influence ends"); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||