Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object.c
| Show First 20 Lines • Show All 2,891 Lines • ▼ Show 20 Lines | /* RNA_def_property_collection_funcs(prop, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "constraints__add", "constraints__remove"); */ | ||||
| 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, "hide_render", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "hide_render", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "restrictflag", OB_RESTRICT_RENDER); | RNA_def_property_boolean_sdna(prop, NULL, "restrictflag", OB_RESTRICT_RENDER); | ||||
| RNA_def_property_ui_text(prop, "Restrict Render", "Restrict renderability"); | RNA_def_property_ui_text(prop, "Restrict Render", "Restrict renderability"); | ||||
| RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, 1); | RNA_def_property_ui_icon(prop, ICON_RESTRICT_RENDER_OFF, 1); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update"); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Object_hide_update"); | ||||
| /* Keep it in sync with BKE_object_is_visible. */ | |||||
| prop = RNA_def_property(srna, "is_visible", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "base_flag", BASE_VISIBLED); | |||||
| RNA_def_property_ui_text(prop, "Visible", "Visible to camera rays, set only on objects evaluated by depsgraph"); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| prop = RNA_def_property(srna, "collection_properties", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "collection_properties", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "base_collection_properties->data.group", NULL); | RNA_def_property_collection_sdna(prop, NULL, "base_collection_properties->data.group", NULL); | ||||
| RNA_def_property_struct_type(prop, "LayerCollectionSettings"); | RNA_def_property_struct_type(prop, "LayerCollectionSettings"); | ||||
| RNA_def_property_ui_text(prop, "Collection Settings", | RNA_def_property_ui_text(prop, "Collection Settings", | ||||
| "Engine specific render settings to be overridden by collections"); | "Engine specific render settings to be overridden by collections"); | ||||
| /* anim */ | /* anim */ | ||||
| rna_def_animdata_common(srna); | rna_def_animdata_common(srna); | ||||
| ▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines | |||||