Bugfix #25199
authorTon Roosendaal <ton@blender.org>
Mon, 13 Dec 2010 15:21:44 +0000 (15:21 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 13 Dec 2010 15:21:44 +0000 (15:21 +0000)
Graph editor: submenu for handle type had drawing error.
Seems to be the collumns-separator feature for enum properties?
No time for debugging that, a 5-item menu doesn't need 2 collumns.

source/blender/editors/interface/interface_layout.c
source/blender/editors/space_graph/graph_edit.c

index 88bba064ea1e6977496587947cf4121dd59afc5c..5d9ebebe89d474c97055764da38a54fa5740a395 100644 (file)
@@ -756,7 +756,7 @@ void uiItemsFullEnumO(uiLayout *layout, const char *opname, const char *propname
                                        bt= block->buttons.last;
                                        bt->flag= UI_TEXT_LEFT;
                                }
-                               else
+                               else /* XXX bug here, collums draw bottom item badly */
                                        uiItemS(column);
                        }
                }
index a371a974be3a6a5a3a94890ae1b4126ce76fba74..a9336046ea573aac0e1082b43cfbfd344f20b796 100644 (file)
@@ -1356,7 +1356,6 @@ EnumPropertyItem graphkeys_handle_type_items[] = {
        {HD_FREE, "FREE", 0, "Free", ""},
        {HD_VECT, "VECTOR", 0, "Vector", ""},
        {HD_ALIGN, "ALIGNED", 0, "Aligned", ""},
-       {0, "", 0, "", ""},
        {HD_AUTO, "AUTO", 0, "Auto", "Handles that are automatically adjusted upon moving the keyframe. Whole curve"},
        {HD_AUTO_ANIM, "ANIM_CLAMPED", 0, "Auto Clamped", "Auto handles clamped to not overshoot. Whole curve"},
        {0, NULL, 0, NULL, NULL}};