Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_gpencil_modifier.c
| Context not available. | |||||
| RNA_def_property_ui_text(prop, "Scale", "Values for changes in scale"); | RNA_def_property_ui_text(prop, "Scale", "Values for changes in scale"); | ||||
| RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, RNA_TRANSLATION_PREC_DEFAULT); | RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, RNA_TRANSLATION_PREC_DEFAULT); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "random_offset", PROP_FLOAT, PROP_XYZ); | |||||
| RNA_def_property_float_sdna(prop, NULL, "rnd_offset"); | |||||
| RNA_def_property_ui_text(prop, "Random Offset", "Value for changes in location"); | |||||
| RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, RNA_TRANSLATION_PREC_DEFAULT); | |||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | |||||
| prop = RNA_def_property(srna, "random_rotation", PROP_FLOAT, PROP_EULER); | |||||
| RNA_def_property_float_sdna(prop, NULL, "rnd_rot"); | |||||
| RNA_def_property_ui_text(prop, "Random Rotation", "Value for changes in rotation"); | |||||
| RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, RNA_TRANSLATION_PREC_DEFAULT); | |||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | |||||
| prop = RNA_def_property(srna, "random_scale", PROP_FLOAT, PROP_XYZ); | |||||
| RNA_def_property_float_sdna(prop, NULL, "rnd_scale"); | |||||
| RNA_def_property_ui_text(prop, "Scale", "Value for changes in scale"); | |||||
| RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, RNA_TRANSLATION_PREC_DEFAULT); | |||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | |||||
| prop = RNA_def_property(srna, "seed", PROP_INT, PROP_UNSIGNED); | |||||
| RNA_def_property_ui_text(prop, "Seed", "Random seed"); | |||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | |||||
| prop = RNA_def_property(srna, "use_uniform_random_scale", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_OFFSET_UNIFORM_RANDOM_SCALE); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Uniform Scale", "Use the same random seed for each scale axis for a uniform scale"); | |||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | |||||
| } | } | ||||
| static void rna_def_modifier_gpenciltint(BlenderRNA *brna) | static void rna_def_modifier_gpenciltint(BlenderRNA *brna) | ||||
| Context not available. | |||||