Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_depsgraph.c
| Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static bool rna_DepsgraphUpdate_is_updated_transform_get(PointerRNA *ptr) | static bool rna_DepsgraphUpdate_is_updated_transform_get(PointerRNA *ptr) | ||||
| { | { | ||||
| ID *id = ptr->data; | ID *id = ptr->data; | ||||
| return ((id->recalc & ID_RECALC_TRANSFORM) != 0); | return ((id->recalc & ID_RECALC_TRANSFORM) != 0); | ||||
| } | } | ||||
| static bool rna_DepsgraphUpdate_is_updated_shading_get(PointerRNA *ptr) | |||||
| { | |||||
| ID *id = ptr->data; | |||||
| return ((id->recalc & ID_RECALC_SHADING) != 0); | |||||
| } | |||||
| static bool rna_DepsgraphUpdate_is_updated_geometry_get(PointerRNA *ptr) | static bool rna_DepsgraphUpdate_is_updated_geometry_get(PointerRNA *ptr) | ||||
| { | { | ||||
| ID *id = ptr->data; | ID *id = ptr->data; | ||||
| if (id->recalc & ID_RECALC_GEOMETRY) { | if (id->recalc & ID_RECALC_GEOMETRY) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (GS(id->name) != ID_OB) { | if (GS(id->name) != ID_OB) { | ||||
| return false; | return false; | ||||
| ▲ Show 20 Lines • Show All 382 Lines • ▼ Show 20 Lines | static void rna_def_depsgraph_update(BlenderRNA *brna) | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE | PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE | PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Transform", "Object transformation is updated"); | RNA_def_property_ui_text(prop, "Transform", "Object transformation is updated"); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_DepsgraphUpdate_is_updated_transform_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_DepsgraphUpdate_is_updated_transform_get", NULL); | ||||
| prop = RNA_def_property(srna, "is_updated_geometry", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_updated_geometry", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE | PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE | PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Geometry", "Object geometry is updated"); | RNA_def_property_ui_text(prop, "Geometry", "Object geometry is updated"); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_DepsgraphUpdate_is_updated_geometry_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_DepsgraphUpdate_is_updated_geometry_get", NULL); | ||||
| prop = RNA_def_property(srna, "is_updated_shading", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE | PROP_EDITABLE); | |||||
| RNA_def_property_ui_text(prop, "Shading", "Object shading is updated"); | |||||
| RNA_def_property_boolean_funcs(prop, "rna_DepsgraphUpdate_is_updated_shading_get", NULL); | |||||
| } | } | ||||
| static void rna_def_depsgraph(BlenderRNA *brna) | static void rna_def_depsgraph(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines | |||||