diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-10-26 18:17:50 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-10-26 19:35:13 +0300 |
commit | 5acbc01d0dd6e2453bafc637e6ac995848bf205e (patch) | |
tree | 6c27478a9c68746e93dc444ca811529b75300ce2 /source/blender/editors | |
parent | 26e3045eb929c26d9b93327f126fc8f0a75181f6 (diff) |
Cleanup: 3D View context, use enum values
Use explicit enum values instead of returning 0/1 from `view3d_context()`.
No functional changes.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/space_view3d.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c index 816000619ba..c2618a340d9 100644 --- a/source/blender/editors/space_view3d/space_view3d.c +++ b/source/blender/editors/space_view3d/space_view3d.c @@ -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) |