Commit: cdc73cb8404fc2b72d813a02acbd3e2f53eda5ab Author: Philipp Oeser Date: Thu Nov 24 14:04:16 2022 +0100 Branches: blender-v2.93-release https://developer.blender.org/rBcdc73cb8404fc2b72d813a02acbd3e2f53eda5ab
Fix T102685: Grease Pencil brush cursors missing on file open Brush cursors were missing when opening a file saved in sculpt/vertex-/ weightpaint mode. Since we dont do a full modeswitch on file load in `ED_editors_init` for grease pencil since rBde994d6b7b1c, we were missing the brush cursor toggling [`ED_gpencil_toggle_brush_cursor`] normally done in `ED_gpencil_setup_modes`. This is now explicitly added for any greasepencil paintmode (in case object is active). Maniphest Tasks: T102685 Differential Revision: https://developer.blender.org/D16603 =================================================================== M source/blender/editors/util/ed_util.c =================================================================== diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index b80782b51be..f4a69c96c13 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -46,6 +46,7 @@ #include "DEG_depsgraph.h" #include "ED_armature.h" +#include "ED_gpencil.h" #include "ED_image.h" #include "ED_mesh.h" #include "ED_object.h" @@ -117,6 +118,9 @@ void ED_editors_init(bContext *C) ob->mode = OB_MODE_OBJECT; DEG_id_tag_update(&ob->id, ID_RECALC_COPY_ON_WRITE); } + else if (mode & OB_MODE_ALL_PAINT_GPENCIL) { + ED_gpencil_toggle_brush_cursor(C, true, NULL); + } continue; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs