Cleanup: 3D View context, use enum values

Use explicit enum values instead of returning 0/1 from `view3d_context()`.

No functional changes.
This commit is contained in:
Sybren A. Stüvel 2021-10-26 17:17:50 +02:00
parent 26e3045eb9
commit 5acbc01d0d
1 changed files with 3 additions and 3 deletions

View File

@ -1725,13 +1725,13 @@ static int view3d_context(const bContext *C, const char *member, bContextDataRes
}
}
return 1;
return CTX_RESULT_OK;
}
else {
return 0; /* not found */
return CTX_RESULT_MEMBER_NOT_FOUND;
}
return 1;
return CTX_RESULT_OK;
}
static void view3d_id_remap(ScrArea *area, SpaceLink *slink, ID *old_id, ID *new_id)