Commit: 52798653bc1397885ce7e530de9483ade6c0ff7e
Author: Antonio Vazquez
Date:   Wed Jan 19 16:41:13 2022 +0100
Branches: asset-greasepencil
https://developer.blender.org/rB52798653bc1397885ce7e530de9483ade6c0ff7e

Select always the strokes of the asset in any mode

Before only was selected if the asset was imported in Edit mode.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_asset.c 
b/source/blender/editors/gpencil/gpencil_asset.c
index 9cb7e1239cb..40998f57b8f 100644
--- a/source/blender/editors/gpencil/gpencil_asset.c
+++ b/source/blender/editors/gpencil/gpencil_asset.c
@@ -1373,8 +1373,8 @@ static int gpencil_asset_import_modal(bContext *C, 
wmOperator *op, const wmEvent
             ED_area_status_text(tgpa->area, NULL);
             ED_workspace_status_text(C, NULL);
             WM_cursor_modal_restore(win);
-            /* Apply selection depending of mode. */
-            gpencil_asset_set_selection(tgpa, GPENCIL_EDIT_MODE(tgpa->gpd));
+            /* Select always the strokes. */
+            gpencil_asset_set_selection(tgpa, true);
 
             gpencil_asset_import_exit(C, op);
             return OPERATOR_FINISHED;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to