diff options
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_nodes.cc | 4 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc index 6382772c8db..8ec8ccb3d4d 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc @@ -717,9 +717,9 @@ void DepsgraphNodeBuilder::build_object_data(Object *object, bool is_object_visi } } /* Materials. */ - Material ***materials_ptr = give_matarar(object); + Material ***materials_ptr = BKE_object_material_array(object); if (materials_ptr != nullptr) { - short *num_materials_ptr = give_totcolp(object); + short *num_materials_ptr = BKE_object_material_num(object); build_materials(*materials_ptr, *num_materials_ptr); } } diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index 5214fdbd246..98864b11c4a 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -809,9 +809,9 @@ void DepsgraphRelationBuilder::build_object_data(Object *object) build_nested_shapekey(&object->id, key); } /* Materials. */ - Material ***materials_ptr = give_matarar(object); + Material ***materials_ptr = BKE_object_material_array(object); if (materials_ptr != nullptr) { - short *num_materials_ptr = give_totcolp(object); + short *num_materials_ptr = BKE_object_material_num(object); build_materials(*materials_ptr, *num_materials_ptr); } } |