Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object.c
| Show First 20 Lines • Show All 3,236 Lines • ▼ Show 20 Lines | RNA_def_property_pointer_funcs(prop, | ||||
| "rna_MaterialSlot_material_poll"); | "rna_MaterialSlot_material_poll"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_editable_func(prop, "rna_Object_active_material_editable"); | RNA_def_property_editable_func(prop, "rna_Object_active_material_editable"); | ||||
| RNA_def_property_ui_text(prop, "Active Material", "Active material being displayed"); | RNA_def_property_ui_text(prop, "Active Material", "Active material being displayed"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_MaterialSlot_update"); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_MaterialSlot_update"); | ||||
| prop = RNA_def_property(srna, "active_material_index", PROP_INT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "active_material_index", PROP_INT, PROP_UNSIGNED); | ||||
| RNA_def_property_int_sdna(prop, NULL, "actcol"); | RNA_def_property_int_sdna(prop, NULL, "actcol"); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_int_funcs(prop, | RNA_def_property_int_funcs(prop, | ||||
| "rna_Object_active_material_index_get", | "rna_Object_active_material_index_get", | ||||
| "rna_Object_active_material_index_set", | "rna_Object_active_material_index_set", | ||||
| "rna_Object_active_material_index_range"); | "rna_Object_active_material_index_range"); | ||||
| RNA_def_property_ui_text(prop, "Active Material Index", "Index of active material slot"); | RNA_def_property_ui_text(prop, "Active Material Index", "Index of active material slot"); | ||||
| RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING_LINKS, "rna_MaterialIndex_update"); | RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING_LINKS, "rna_MaterialIndex_update"); | ||||
| ▲ Show 20 Lines • Show All 631 Lines • Show Last 20 Lines | |||||