Correct assert in recent changes
authorCampbell Barton <ideasman42@gmail.com>
Sat, 16 Jun 2018 15:31:37 +0000 (17:31 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 16 Jun 2018 15:31:37 +0000 (17:31 +0200)
source/blender/editors/interface/interface_layout.c

index 8a333f6..7f27055 100644 (file)
@@ -1724,7 +1724,7 @@ void uiItemFullR(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index
                        BLI_insertlinkafter(&block->buttons, but_decorate, but);
                        but_decorate = but->next;
                }
-               BLI_assert(len ? i < len : i == 1);
+               BLI_assert(len ? i == len : i == 1);
        }
 #endif  /* UI_PROP_DECORATE */