Fix T53586: Surfaces collapse when joined

This commit is contained in:
Campbell Barton 2018-01-04 16:01:27 +11:00
parent 1c32d67f46
commit 1611177ac9
1 changed files with 4 additions and 2 deletions

View File

@ -6048,8 +6048,10 @@ int join_curve_exec(bContext *C, wmOperator *op)
cu = ob->data;
BLI_movelisttolist(&cu->nurb, &tempbase);
/* Account for mixed 2D/3D curves when joining */
BKE_curve_curve_dimension_update(cu);
if (ob->type == OB_CURVE) {
/* Account for mixed 2D/3D curves when joining */
BKE_curve_curve_dimension_update(cu);
}
DAG_relations_tag_update(bmain); // because we removed object(s), call before editmode!