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>2019-12-18 17:17:51 +0300
committerSybren A. Stüvel <sybren@blender.org>2019-12-18 18:31:49 +0300
commit9ae097e239a943a9b409155b943bc5510d14d9c8 (patch)
tree375659dce63440b548d67c816e660ddabafb59e8 /source/blender/editors/render
parentd591c8a350310e69d4db23759847fb0df2ff23ae (diff)
Animation: Clarified tooltip for Viewport Render Animation
The tooltip was static, so it was the same for viewport-rendering the current frame and for the entire animation. It is now different for those two. The structure of `screen_opengl_render_description()` is such that it allows for adding a new description for a soon-to-come feature (T72229).
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r--source/blender/editors/render/render_opengl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_opengl.c b/source/blender/editors/render/render_opengl.c
index 10244cfa3fd..b46b8cdda89 100644
--- a/source/blender/editors/render/render_opengl.c
+++ b/source/blender/editors/render/render_opengl.c
@@ -1124,6 +1124,17 @@ static int screen_opengl_render_exec(bContext *C, wmOperator *op)
return OPERATOR_FINISHED;
}
+static char *screen_opengl_render_description(struct bContext *UNUSED(C),
+ struct wmOperatorType *UNUSED(ot),
+ struct PointerRNA *ptr)
+{
+ if (!RNA_boolean_get(ptr, "animation")) {
+ return NULL;
+ }
+
+ return BLI_strdup("Render the viewport for the animation range of this scene");
+}
+
void RENDER_OT_opengl(wmOperatorType *ot)
{
PropertyRNA *prop;
@@ -1134,6 +1145,7 @@ void RENDER_OT_opengl(wmOperatorType *ot)
ot->idname = "RENDER_OT_opengl";
/* api callbacks */
+ ot->get_description = screen_opengl_render_description;
ot->invoke = screen_opengl_render_invoke;
ot->exec = screen_opengl_render_exec; /* blocking */
ot->modal = screen_opengl_render_modal;