Some UI tweaks as listed by William
[blender.git] / source / blender / editors / interface / interface_panel.c
index cf29a1ddb584f125ebe5291a20841ff6056c1db4..fa24aa72b9f82d180848da2dcf4afb8ecb1cac40 100644 (file)
@@ -963,6 +963,7 @@ static void check_panel_overlap(ARegion *ar, Panel *panel)
        }
 }
 
+#if 0 // XXX panel docking/tabbing code that's no longer used
 static void test_add_new_tabs(ARegion *ar)
 {
        Panel *pa, *pasel=NULL, *palap=NULL;
@@ -1016,6 +1017,7 @@ static void test_add_new_tabs(ARegion *ar)
                pa= pa->next;
        }
 }
+#endif
 
 /************************ panel dragging ****************************/
 
@@ -1382,7 +1384,12 @@ static void panel_activate_state(const bContext *C, Panel *pa, uiHandlePanelStat
 
        if(state == PANEL_STATE_EXIT || state == PANEL_STATE_ANIMATION) {
                if(data && data->state != PANEL_STATE_ANIMATION) {
-                       test_add_new_tabs(ar);   // also copies locations of tabs in dragged panel
+                       /* XXX:
+                        *      - the panel tabbing function call below (test_add_new_tabs()) has been commented out
+                        *        "It is too easy to do by accident when reordering panels, is very hard to control and use, and has no real benefit." - BillRey
+                        * Aligorith, 2009Sep
+                        */
+                       //test_add_new_tabs(ar);   // also copies locations of tabs in dragged panel
                        check_panel_overlap(ar, NULL);  // clears
                }