Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_gpencil_modifier.c
| Show First 20 Lines • Show All 3,205 Lines • ▼ Show 20 Lines | RNA_def_property_ui_text(prop, | ||||
| "separate stroke for each overlapping type"); | "separate stroke for each overlapping type"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "stroke_depth_offset", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "stroke_depth_offset", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Stroke Depth Offset", | "Stroke Depth Offset", | ||||
| "Move strokes slightly towards the camera to avoid clipping while " | "Move strokes slightly towards the camera to avoid clipping while " | ||||
| "preserve depth for the viewport"); | "preserve depth for the viewport"); | ||||
| RNA_def_property_range(prop, 0.0f, FLT_MAX); | RNA_def_property_ui_range(prop, 0.0, 0.5, 0.001, 4); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 0.5f, 0.001f, 4); | RNA_def_property_range(prop, -0.1, FLT_MAX); | ||||
| RNA_def_property_update(prop, NC_SCENE, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, NC_SCENE, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "offset_towards_custom_camera", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "offset_towards_custom_camera", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", LRT_GPENCIL_OFFSET_TOWARDS_CUSTOM_CAMERA); | RNA_def_property_boolean_sdna(prop, NULL, "flags", LRT_GPENCIL_OFFSET_TOWARDS_CUSTOM_CAMERA); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Offset Towards Custom Camera", | "Offset Towards Custom Camera", | ||||
| "Offset strokes towards selected camera instead of the active camera"); | "Offset strokes towards selected camera instead of the active camera"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 536 Lines • Show Last 20 Lines | |||||