Cleanup: Don't perform borderselect on channels that aren't visible
authorJoshua Leung <aligorith@gmail.com>
Wed, 21 Feb 2018 11:59:15 +0000 (00:59 +1300)
committerJoshua Leung <aligorith@gmail.com>
Wed, 21 Feb 2018 12:46:12 +0000 (01:46 +1300)
source/blender/editors/space_action/action_select.c

index 3c3a71d00fdc93ae4ac26a6f8ecf454add44fc82..3346c6283363ffacc03a7cfe6d50f4051d9669fe 100644 (file)
@@ -262,7 +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 */
+#if 0 /* XXX: Keyframes are not currently shown here */
                                case ANIMTYPE_GPDATABLOCK:
                                {
                                        bGPdata *gpd = ale->data;
@@ -466,6 +466,7 @@ static void region_select_action_keys(bAnimContext *ac, const rctf *rectf_view,
                {
                        /* loop over data selecting */
                        switch (ale->type) {
+#if 0 /* XXX: Keyframes are not currently shown here */
                                case ANIMTYPE_GPDATABLOCK:
                                {
                                        bGPdata *gpd = ale->data;
@@ -475,6 +476,7 @@ static void region_select_action_keys(bAnimContext *ac, const rctf *rectf_view,
                                        }
                                        break;
                                }
+#endif
                                case ANIMTYPE_GPLAYER:
                                {
                                        ED_gplayer_frames_select_region(&ked, ale->data, mode, selectmode);
@@ -718,8 +720,6 @@ static void columnselect_action_keys(bAnimContext *ac, short mode)
        KeyframeEditFunc select_cb, ok_cb;
        KeyframeEditData ked = {{NULL}};
        
-       /* initialize keyframe editing data */
-       
        /* build list of columns */
        switch (mode) {
                case ACTKEYS_COLUMNSEL_KEYS: /* list of selected keys */