Skip to content

Commit

Permalink
Fix #115775: Curve object to mesh conversion crash
Browse files Browse the repository at this point in the history
Caused by 4bcdc57.
These objects are "half evaluated" in a very ugly way and have
no runtime data.
  • Loading branch information
HansGoudey committed Dec 5, 2023
1 parent c293c75 commit ce81bdc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/blender/blenkernel/intern/mesh_convert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,12 @@ static void curve_to_mesh_eval_ensure(Object &object)
* Brecht says hold off with that. */
BKE_displist_make_curveTypes(nullptr, nullptr, &object, true);

BKE_object_runtime_free_data(&bevel_object);
BKE_object_runtime_free_data(&taper_object);
if (bevel_object.runtime) {
BKE_object_runtime_free_data(&bevel_object);
}
if (taper_object.runtime) {
BKE_object_runtime_free_data(&taper_object);
}
}

static const Curves *get_evaluated_curves_from_object(const Object *object)
Expand Down

0 comments on commit ce81bdc

Please sign in to comment.