diff options
author | Hans Goudey <h.goudey@me.com> | 2022-05-19 15:02:16 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-05-19 15:02:16 +0300 |
commit | 29ca935eb8fc3b7260b6e57428fdf6ad459be539 (patch) | |
tree | 1a33c921a18f1a350f24adea7bf1842568958f87 /source/blender/blenkernel/intern | |
parent | 4fc96e5000ce037b0247199e2c9fc440fbcc713f (diff) |
Cleanup: Remove redundant function
`BKE_object_get_evaluated_mesh` now looks inside `geometry_set_eval`.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_convert.cc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/source/blender/blenkernel/intern/mesh_convert.cc b/source/blender/blenkernel/intern/mesh_convert.cc index 97eafb75102..2755a89d0a4 100644 --- a/source/blender/blenkernel/intern/mesh_convert.cc +++ b/source/blender/blenkernel/intern/mesh_convert.cc @@ -944,20 +944,6 @@ static void curve_to_mesh_eval_ensure(Object &object) BKE_object_runtime_free_data(&taper_object); } -/* Necessary because #BKE_object_get_evaluated_mesh doesn't look in the geometry set yet. */ -static const Mesh *get_evaluated_mesh_from_object(const Object *object) -{ - const Mesh *mesh = BKE_object_get_evaluated_mesh(object); - if (mesh) { - return mesh; - } - GeometrySet *geometry_set_eval = object->runtime.geometry_set_eval; - if (geometry_set_eval) { - return geometry_set_eval->get_mesh_for_read(); - } - return nullptr; -} - static const Curves *get_evaluated_curves_from_object(const Object *object) { GeometrySet *geometry_set_eval = object->runtime.geometry_set_eval; @@ -969,7 +955,7 @@ static const Curves *get_evaluated_curves_from_object(const Object *object) static Mesh *mesh_new_from_evaluated_curve_type_object(const Object *evaluated_object) { - const Mesh *mesh = get_evaluated_mesh_from_object(evaluated_object); + const Mesh *mesh = BKE_object_get_evaluated_mesh(evaluated_object); if (mesh) { return BKE_mesh_copy_for_eval(mesh, false); } |