Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
| Context not available. | |||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem brush_size_unit_items[] = { | |||||
| {0, "VIEW", 0, "View", "Measure brush size relateve to the view"}, | |||||
| {UNIFIED_PAINT_BRUSH_LOCK_SIZE, "SCENE", 0, "Scene", "Measure brush size relateve to the scene"}, | |||||
| {0, NULL, 0, NULL, NULL}, | |||||
| }; | |||||
| srna = RNA_def_struct(brna, "UnifiedPaintSettings", NULL); | srna = RNA_def_struct(brna, "UnifiedPaintSettings", NULL); | ||||
| RNA_def_struct_path_func(srna, "rna_UnifiedPaintSettings_path"); | RNA_def_struct_path_func(srna, "rna_UnifiedPaintSettings_path"); | ||||
| RNA_def_struct_ui_text(srna, "Unified Paint Settings", "Overrides for some of the active brush's settings"); | RNA_def_struct_ui_text(srna, "Unified Paint Settings", "Overrides for some of the active brush's settings"); | ||||
| Context not available. | |||||
| RNA_def_property_ui_icon(prop, ICON_STYLUS_PRESSURE, 0); | RNA_def_property_ui_icon(prop, ICON_STYLUS_PRESSURE, 0); | ||||
| RNA_def_property_ui_text(prop, "Strength Pressure", "Enable tablet pressure sensitivity for strength"); | RNA_def_property_ui_text(prop, "Strength Pressure", "Enable tablet pressure sensitivity for strength"); | ||||
| prop = RNA_def_property(srna, "use_locked_size", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_locked_size", PROP_ENUM, PROP_NONE); /* as an enum */ | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", UNIFIED_PAINT_BRUSH_LOCK_SIZE); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "flag"); | ||||
| RNA_def_property_ui_text(prop, "Use Blender Units", | RNA_def_property_enum_items(prop, brush_size_unit_items); | ||||
| "When locked brush stays same size relative to object; " | RNA_def_property_ui_text(prop, "Size Unit", "Measure brush size relative to the view or the scene "); | ||||
| "when unlocked brush size is given in pixels"); | |||||
| RNA_def_property_ui_icon(prop, ICON_UNLOCKED, true); | |||||
| } | } | ||||
| Context not available. | |||||