Cleanup: rename BKE_libblock_free_us to BKE_id_free_us.
[blender.git] / source / blender / collada / MeshImporter.cpp
index 069215da2b7454ace77317bd49799f8b6884798b..3cbb783fcad43ea8ed5ec2cf1222c25ea9113fba 100644 (file)
@@ -1105,7 +1105,7 @@ Object *MeshImporter::create_mesh_object(COLLADAFW::Node *node, COLLADAFW::Insta
        BKE_mesh_calc_normals(new_mesh);
 
        id_us_plus(&old_mesh->id);  /* Because BKE_mesh_assign_object would have already decreased it... */
-       BKE_libblock_free_us(m_bmain, old_mesh);
+       BKE_id_free_us(m_bmain, old_mesh);
 
        COLLADAFW::MaterialBindingArray& mat_array =
            geom->getMaterialBindings();