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,648 Lines • ▼ Show 20 Lines | RNA_def_property_update( | ||||
| }; | }; | ||||
| for (int mask_index = 0; mask_index < 2; mask_index++) { | for (int mask_index = 0; mask_index < 2; mask_index++) { | ||||
| for (int type_index = 0; type_index < ARRAY_SIZE(info); type_index++) { | for (int type_index = 0; type_index < ARRAY_SIZE(info); type_index++) { | ||||
| prop = RNA_def_property( | prop = RNA_def_property( | ||||
| srna, info[type_index].identifier[mask_index], PROP_BOOLEAN, PROP_NONE); | srna, info[type_index].identifier[mask_index], PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_negative_sdna( | RNA_def_property_boolean_negative_sdna( | ||||
| prop, NULL, view_mask_member[mask_index], info[type_index].type_mask); | prop, NULL, view_mask_member[mask_index], info[type_index].type_mask); | ||||
| RNA_def_property_ui_text(prop, info[type_index].name, ""); | RNA_def_property_ui_text(prop, info[type_index].name, ""); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D | NS_VIEW3D_SHADING, NULL); | ||||
| } | } | ||||
| } | } | ||||
| /* Helper for drawing the icon. */ | /* Helper for drawing the icon. */ | ||||
| prop = RNA_def_property(srna, "icon_from_show_object_viewport", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "icon_from_show_object_viewport", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_funcs( | RNA_def_property_int_funcs( | ||||
| prop, "rna_SpaceView3D_icon_from_show_object_viewport_get", NULL, NULL); | prop, "rna_SpaceView3D_icon_from_show_object_viewport_get", NULL, NULL); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| ▲ Show 20 Lines • Show All 2,524 Lines • Show Last 20 Lines | |||||