Commit: a246604937660e3b074fcc410a005da11049a73b
Author: Antonioya
Date:   Wed Dec 19 09:13:44 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBa246604937660e3b074fcc410a005da11049a73b

GP: Update Gizmo position when select

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_select.c 
b/source/blender/editors/gpencil/gpencil_select.c
index cbe9d7e547a..8b1f652f7c5 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -200,6 +200,7 @@ static int gpencil_select_all_exec(bContext *C, wmOperator 
*op)
        DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
        WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+       WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        return OPERATOR_FINISHED;
 }
 
@@ -261,6 +262,7 @@ static int gpencil_select_linked_exec(bContext *C, 
wmOperator *op)
        DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
        WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+       WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        return OPERATOR_FINISHED;
 }
 
@@ -341,6 +343,7 @@ static int gpencil_select_alternate_exec(bContext *C, 
wmOperator *op)
        DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
        WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+       WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        return OPERATOR_FINISHED;
 }
 
@@ -497,6 +500,7 @@ static int gpencil_select_grouped_exec(bContext *C, 
wmOperator *op)
        DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
        WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+       WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        return OPERATOR_FINISHED;
 }
 
@@ -575,6 +579,7 @@ static int gpencil_select_first_exec(bContext *C, 
wmOperator *op)
        DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
        WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+       WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        return OPERATOR_FINISHED;
 }
 
@@ -649,6 +654,7 @@ static int gpencil_select_last_exec(bContext *C, wmOperator 
*op)
        DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
        WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+       WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        return OPERATOR_FINISHED;
 }
 
@@ -739,6 +745,7 @@ static int gpencil_select_more_exec(bContext *C, wmOperator 
*UNUSED(op))
        DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
        WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+       WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        return OPERATOR_FINISHED;
 }
 
@@ -824,6 +831,7 @@ static int gpencil_select_less_exec(bContext *C, wmOperator 
*UNUSED(op))
        DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
        WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+       WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        return OPERATOR_FINISHED;
 }
 
@@ -1016,6 +1024,7 @@ static int gpencil_circle_select_exec(bContext *C, 
wmOperator *op)
                DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
                WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+               WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        }
 
        return OPERATOR_FINISHED;
@@ -1163,6 +1172,7 @@ static int gpencil_generic_select_exec(
                DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
                WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+               WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        }
 
        return OPERATOR_FINISHED;
@@ -1404,6 +1414,7 @@ static int gpencil_select_exec(bContext *C, wmOperator 
*op)
                DEG_id_tag_update(&gpd->id, ID_RECALC_GEOMETRY);
                DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
                WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+               WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
 
                return OPERATOR_CANCELLED;
        }
@@ -1461,6 +1472,7 @@ static int gpencil_select_exec(bContext *C, wmOperator 
*op)
                DEG_id_tag_update(&gpd->id, ID_RECALC_COPY_ON_WRITE);
 
                WM_event_add_notifier(C, NC_GPENCIL | NA_SELECTED, NULL);
+               WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
        }
 
        return OPERATOR_FINISHED;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to