From a7507e945d1c314b9bf7f8298a8beea58e047d37 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 6 Apr 2011 06:03:48 +0000 Subject: fix [#26803] Libs paths are case sensitive in windows use case insensitive path comparison on windows: BLI_path_cmp --- source/blender/editors/gpencil/gpencil_buttons.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'source/blender/editors/gpencil/gpencil_buttons.c') diff --git a/source/blender/editors/gpencil/gpencil_buttons.c b/source/blender/editors/gpencil/gpencil_buttons.c index 67b732ffa5e..79fcbb0e49d 100644 --- a/source/blender/editors/gpencil/gpencil_buttons.c +++ b/source/blender/editors/gpencil/gpencil_buttons.c @@ -73,8 +73,9 @@ /* make layer active one after being clicked on */ static void gp_ui_activelayer_cb (bContext *C, void *gpd, void *gpl) { + /* make sure the layer we want to remove is the active one */ gpencil_layer_setactive(gpd, gpl); - + WM_event_add_notifier(C, NC_SCREEN|ND_GPENCIL|NA_EDITED, NULL); // XXX please work! } @@ -88,13 +89,7 @@ static void gp_ui_dellayer_cb (bContext *C, void *gpd, void *gpl) WM_event_add_notifier(C, NC_SCREEN|ND_GPENCIL|NA_EDITED, NULL); // XXX please work! } -static void gp_ui_actlayer_cb (bContext *C, void *gpd, void *gpl) -{ - /* make sure the layer we want to remove is the active one */ - gpencil_layer_setactive(gpd, gpl); - WM_event_add_notifier(C, NC_SCREEN|ND_GPENCIL|NA_EDITED, NULL); // XXX please work! -} /* ------- Drawing Code ------- */ -- cgit v1.2.3