[Bf-blender-cvs] [f2d856f3c61] greasepencil-object: Disable all modes after convert file

Antonio Vazquez noreply at git.blender.org
Mon Jun 4 20:12:16 CEST 2018


Commit: f2d856f3c61872ad470ce1cca3d14e0049ac5bf7
Author: Antonio Vazquez
Date:   Mon Jun 4 20:11:12 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rBf2d856f3c61872ad470ce1cca3d14e0049ac5bf7

Disable all modes after convert file

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_old.c b/source/blender/editors/gpencil/gpencil_old.c
index cd53065a40a..f74a2d94f47 100644
--- a/source/blender/editors/gpencil/gpencil_old.c
+++ b/source/blender/editors/gpencil/gpencil_old.c
@@ -158,6 +158,9 @@ static int gpencil_convert_old_files_exec(bContext *C, wmOperator *UNUSED(op))
 		/* free palettes */
 		free_palettes(&gpd->palettes);
 
+		/* disable all GP modes */
+		ED_gpencil_setup_modes(C, gpd, 0);
+
 		/* set cache as dirty */
 		BKE_gpencil_batch_cache_dirty(ob->data);



More information about the Bf-blender-cvs mailing list