Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-05-30 16:21:21 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-05-30 19:17:49 +0300
commit17ce968c5972573df67c578b068f02f8b1478846 (patch)
treee2ea7492d1f39b3b9be4d2f4345688f52cd898f2 /source/blender/makesrna/intern/rna_ID.c
parent08862b8246b49331ddfb7ed6812c9e31989bf8b1 (diff)
Depsgraph API: renaming, more granular update information.
* depsgraph.ids: all evaluated datablocks in the depsgraph * depsgraph.objects: all evaluated objects in the depsgraph * depsgraph.object_instances: all object instances to display or render * depsgraph.updates: list of updates to datablocks
Diffstat (limited to 'source/blender/makesrna/intern/rna_ID.c')
-rw-r--r--source/blender/makesrna/intern/rna_ID.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/source/blender/makesrna/intern/rna_ID.c b/source/blender/makesrna/intern/rna_ID.c
index 3f0ee5f2a35..5b69f202bb4 100644
--- a/source/blender/makesrna/intern/rna_ID.c
+++ b/source/blender/makesrna/intern/rna_ID.c
@@ -797,31 +797,6 @@ static PointerRNA rna_IDPreview_get(PointerRNA *ptr)
return rna_pointer_inherit_refine(ptr, &RNA_ImagePreview, prv_img);
}
-static int rna_ID_is_updated_get(PointerRNA *ptr)
-{
- ID *id = (ID *)ptr->data;
- /* TODO(sergey): Do we need to limit some of flags here? */
- return ((id->recalc & ID_RECALC_ALL) != 0);
-}
-
-static int rna_ID_is_updated_data_get(PointerRNA *ptr)
-{
- /* TODO: replace with more generic granular recalc flags. */
- ID *id = (ID *)ptr->data;
- if (GS(id->name) != ID_OB) {
- return false;
- }
- if (id->recalc & ID_RECALC_GEOMETRY) {
- return true;
- }
- Object *object = (Object *)id;
- ID *data = object->data;
- if (data == NULL) {
- return 0;
- }
- return ((data->recalc & ID_RECALC_ALL) != 0);
-}
-
static IDProperty *rna_IDPropertyWrapPtr_idprops(PointerRNA *ptr, bool UNUSED(create))
{
if (ptr == NULL) {
@@ -1174,16 +1149,6 @@ static void rna_def_ID(BlenderRNA *brna)
"Tools can use this to tag data for their own purposes "
"(initial state is undefined)");
- prop = RNA_def_property(srna, "is_updated", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_clear_flag(prop, PROP_EDITABLE);
- RNA_def_property_boolean_funcs(prop, "rna_ID_is_updated_get", NULL);
- RNA_def_property_ui_text(prop, "Is Updated", "Data-block is tagged for recalculation");
-
- prop = RNA_def_property(srna, "is_updated_data", PROP_BOOLEAN, PROP_NONE);
- RNA_def_property_clear_flag(prop, PROP_EDITABLE);
- RNA_def_property_boolean_funcs(prop, "rna_ID_is_updated_data_get", NULL);
- RNA_def_property_ui_text(prop, "Is Updated Data", "Data-block data is tagged for recalculation");
-
prop = RNA_def_property(srna, "is_library_indirect", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "tag", LIB_TAG_INDIRECT);
RNA_def_property_clear_flag(prop, PROP_EDITABLE);