Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 4,357 Lines • ▼ Show 20 Lines | static void rna_def_space_view3d_overlay(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "normals_length", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "normals_length", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "overlay.normals_length"); | RNA_def_property_float_sdna(prop, NULL, "overlay.normals_length"); | ||||
| RNA_def_property_ui_text(prop, "Normal Size", "Display size for normals in the 3D view"); | RNA_def_property_ui_text(prop, "Normal Size", "Display size for normals in the 3D view"); | ||||
| RNA_def_property_range(prop, 0.00001, 100000.0); | RNA_def_property_range(prop, 0.00001, 100000.0); | ||||
| RNA_def_property_ui_range(prop, 0.01, 2.0, 1, 2); | RNA_def_property_ui_range(prop, 0.01, 2.0, 1, 2); | ||||
| RNA_def_property_float_default(prop, 0.02); | RNA_def_property_float_default(prop, 0.02); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | ||||
| prop = RNA_def_property(srna, "normals_constant_screen_size", PROP_FLOAT, PROP_PIXEL); | |||||
| RNA_def_property_float_sdna(prop, NULL, "overlay.normals_constant_screen_size"); | |||||
| RNA_def_property_ui_text(prop, "Normal Screen Size", "Screen size for normals in the 3D view"); | |||||
| RNA_def_property_range(prop, 0.0, 100000.0); | |||||
fclem: Rename to `normals_constant_screen_size`. This way it is easier to find with auto complete. | |||||
| RNA_def_property_ui_range(prop, 1.0, 100.0, 50, 0); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | |||||
| prop = RNA_def_property(srna, "use_normals_constant_screen_size", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna( | |||||
| prop, NULL, "overlay.edit_flag", V3D_OVERLAY_EDIT_CONSTANT_SCREEN_SIZE_NORMALS); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "Constant Screen Size Normals", | |||||
| "Keep size of normals constant in relation to 3D view"); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | |||||
| prop = RNA_def_property(srna, "backwire_opacity", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "backwire_opacity", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "overlay.backwire_opacity"); | RNA_def_property_float_sdna(prop, NULL, "overlay.backwire_opacity"); | ||||
| RNA_def_property_ui_text(prop, "Backwire Opacity", "Opacity when rendering transparent wires"); | RNA_def_property_ui_text(prop, "Backwire Opacity", "Opacity when rendering transparent wires"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | ||||
| prop = RNA_def_property(srna, "texture_paint_mode_opacity", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "texture_paint_mode_opacity", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "overlay.texture_paint_mode_opacity"); | RNA_def_property_float_sdna(prop, NULL, "overlay.texture_paint_mode_opacity"); | ||||
| ▲ Show 20 Lines • Show All 3,317 Lines • Show Last 20 Lines | |||||
Rename to normals_constant_screen_size. This way it is easier to find with auto complete.