Missed in last merge
This commit is contained in:
parent
e52beb3733
commit
48eaddfae0
|
@ -505,7 +505,7 @@ void do_versions_after_linking_280(Main *main)
|
|||
|
||||
soutliner->outlinevis = SO_VIEW_LAYER;
|
||||
|
||||
if (BLI_listbase_count_ex(&layer->layer_collections, 2) == 1) {
|
||||
if (BLI_listbase_count_at_most(&layer->layer_collections, 2) == 1) {
|
||||
if (soutliner->treestore == NULL) {
|
||||
soutliner->treestore = BLI_mempool_create(
|
||||
sizeof(TreeStoreElem), 1, 512, BLI_MEMPOOL_ALLOW_ITER);
|
||||
|
|
|
@ -2006,7 +2006,7 @@ bool EDBM_select_pick(bContext *C, const int mval[2], bool extend, bool deselect
|
|||
const int cd_fmap_offset = CustomData_get_offset(&vc.em->bm->pdata, CD_FACEMAP);
|
||||
if (cd_fmap_offset != -1) {
|
||||
int map = *((int *)BM_ELEM_CD_GET_VOID_P(efa, cd_fmap_offset));
|
||||
if ((map < -1) || (map > BLI_listbase_count_ex(&vc.obedit->fmaps, map))) {
|
||||
if ((map < -1) || (map > BLI_listbase_count_at_most(&vc.obedit->fmaps, map))) {
|
||||
map = -1;
|
||||
}
|
||||
map += 1;
|
||||
|
|
|
@ -1015,7 +1015,7 @@ int wm_window_new_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(even
|
|||
WorkSpace *workspace = WM_window_get_active_workspace(win);
|
||||
ListBase *listbase = BKE_workspace_layouts_get(workspace);
|
||||
|
||||
if (BLI_listbase_count_ex(listbase, 2) == 1) {
|
||||
if (BLI_listbase_count_at_most(listbase, 2) == 1) {
|
||||
RNA_enum_set(op->ptr, "screen", 0);
|
||||
return wm_window_new_exec(C, op);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue