Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object.c
| Show First 20 Lines • Show All 3,573 Lines • ▼ Show 20 Lines | static EnumPropertyItem prop_empty_image_side_items[] = { | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| prop = RNA_def_property(srna, "empty_image_side", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "empty_image_side", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "empty_image_visibility_flag"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "empty_image_visibility_flag"); | ||||
| RNA_def_property_enum_items(prop, prop_empty_image_side_items); | RNA_def_property_enum_items(prop, prop_empty_image_side_items); | ||||
| RNA_def_property_ui_text(prop, "Empty Image Side", "Show front/back side"); | RNA_def_property_ui_text(prop, "Empty Image Side", "Show front/back side"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | ||||
| prop = RNA_def_property(srna, "add_rest_position_attribute", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "modifier_flag", OB_MODIFIER_FLAG_ADD_REST_POSITION); | |||||
| RNA_def_property_ui_text(prop, | |||||
| "Add Rest Position", | |||||
| "Add a \"rest_position\" attribute that is a copy of the position " | |||||
| "attribute before shape keys and modifiers are evaluated"); | |||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_internal_update_data"); | |||||
| /* render */ | /* render */ | ||||
| prop = RNA_def_property(srna, "pass_index", PROP_INT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "pass_index", PROP_INT, PROP_UNSIGNED); | ||||
| RNA_def_property_int_sdna(prop, NULL, "index"); | RNA_def_property_int_sdna(prop, NULL, "index"); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Pass Index", "Index number for the \"Object Index\" render pass"); | prop, "Pass Index", "Index number for the \"Object Index\" render pass"); | ||||
| RNA_def_property_update(prop, NC_OBJECT, "rna_Object_internal_update_draw"); | RNA_def_property_update(prop, NC_OBJECT, "rna_Object_internal_update_draw"); | ||||
| prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR); | prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR); | ||||
| ▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines | |||||