Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-10-26 18:15:43 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-10-26 19:35:13 +0300
commit26e3045eb929c26d9b93327f126fc8f0a75181f6 (patch)
treec9ba68ed4d9ab28dfd4f7edbe4599a9bdfaa38e2 /source/blender/editors/space_view3d/space_view3d.c
parent03013d19d16704672f9db93bc62547651b6a5cb8 (diff)
3D View context: return "ok" when fetching view3d context dir
`view3d_context()` would return `-1` ("found but not available") when fetching the context dir. This is incorrect; it should return 1 ("ok"). This is a semantic change in preparation of further cleanup of the code.
Diffstat (limited to 'source/blender/editors/space_view3d/space_view3d.c')
-rw-r--r--source/blender/editors/space_view3d/space_view3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index 8e61ff1765a..816000619ba 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -1731,7 +1731,7 @@ static int view3d_context(const bContext *C, const char *member, bContextDataRes
return 0; /* not found */
}
- return -1; /* found but not available */
+ return 1;
}
static void view3d_id_remap(ScrArea *area, SpaceLink *slink, ID *old_id, ID *new_id)