[Bf-blender-cvs] [21e4f3bd8c3] master: Fix T59861: converting GP stroke to curve doesn't immediately work

Philipp Oeser noreply at git.blender.org
Thu Dec 27 15:15:51 CET 2018


Commit: 21e4f3bd8c3b797d6b51cafbfb33e2bed9f42269
Author: Philipp Oeser
Date:   Thu Dec 27 14:41:02 2018 +0100
Branches: master
https://developer.blender.org/rB21e4f3bd8c3b797d6b51cafbfb33e2bed9f42269

Fix T59861: converting GP stroke to curve doesn't immediately work

Reviewers: antoniov, brecht

Maniphest Tasks: T59861

Differential Revision: https://developer.blender.org/D4127

===================================================================

M	source/blender/editors/gpencil/gpencil_convert.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_convert.c b/source/blender/editors/gpencil/gpencil_convert.c
index 49ce18753b1..cb3fcba45e1 100644
--- a/source/blender/editors/gpencil/gpencil_convert.c
+++ b/source/blender/editors/gpencil/gpencil_convert.c
@@ -1179,6 +1179,7 @@ static void gp_layer_to_curve(
 	cu = ob->data = BKE_curve_add(bmain, gpl->info, OB_CURVE);
 	BKE_collection_object_add(bmain, collection, ob);
 	base_new = BKE_view_layer_base_find(view_layer, ob);
+	DEG_relations_tag_update(bmain); /* added object */
 
 	cu->flag |= CU_3D;



More information about the Bf-blender-cvs mailing list