Fix T51149: Joining curves allows 2D curves in 3D

This commit is contained in:
Campbell Barton 2017-04-15 16:50:12 +10:00
parent 00ad259939
commit 97c9c6a3f3
Notes: blender-bot 2023-04-04 07:45:26 +02:00
Referenced by issue #51149, 2D curves can be 3D
1 changed files with 3 additions and 0 deletions

View File

@ -6047,6 +6047,9 @@ 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);
DAG_relations_tag_update(bmain); // because we removed object(s), call before editmode!
DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA);