Fix: Border select for GPencil keyframes was including those in the "datablock" chann...
authorJoshua Leung <aligorith@gmail.com>
Sun, 3 Sep 2017 00:40:49 +0000 (12:40 +1200)
committerJoshua Leung <aligorith@gmail.com>
Sun, 3 Sep 2017 00:49:16 +0000 (12:49 +1200)
This meant that it was easy to accidentally select too many keyframes

source/blender/editors/space_action/action_select.c

index 553be0ad29000155d21db2443540ebda197a4861..17edbc6cc1dbdbf5040c1e2648711d4ab07ea2a8 100644 (file)
@@ -262,6 +262,7 @@ static void borderselect_action(bAnimContext *ac, const rcti rect, short mode, s
                {
                        /* loop over data selecting */
                        switch (ale->type) {
+#if 0 /* XXXX: Keyframes are not currently shown here */
                                case ANIMTYPE_GPDATABLOCK:
                                {
                                        bGPdata *gpd = ale->data;
@@ -271,6 +272,7 @@ static void borderselect_action(bAnimContext *ac, const rcti rect, short mode, s
                                        }
                                        break;
                                }
+#endif
                                case ANIMTYPE_GPLAYER:
                                        ED_gplayer_frames_select_border(ale->data, rectf.xmin, rectf.xmax, selectmode);
                                        break;