diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-07-16 11:22:09 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-07-16 15:48:03 +0300 |
commit | e78e235cc5ea3bb4c02cc4e8a39a47f611db1f56 (patch) | |
tree | 3724360a85acc1f2ff10b2a55d85455009a7585d /source/blender/editors | |
parent | 3ec9681ac43a172ceadf43343a6bb5070980d4ac (diff) |
Cleanup: preview rendering, update assumptions in comment
The `action_preview_render()` function used to just render, but now it
also temporarily applies the pose. Its comment is now updated for this.
No functional changes.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/render/render_preview.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/render/render_preview.c b/source/blender/editors/render/render_preview.c index 9abf15d2198..c7fa2a0ec87 100644 --- a/source/blender/editors/render/render_preview.c +++ b/source/blender/editors/render/render_preview.c @@ -861,9 +861,9 @@ static void action_preview_render_cleanup(IconPreview *preview, struct PoseBacku DEG_id_tag_update(&preview->active_object->id, ID_RECALC_GEOMETRY); } -/* Render a pose. It is assumed that the pose has already been applied and that the scene camera is - * capturing the pose. In other words, this function just renders from the scene camera without - * evaluating the Action stored in preview->id. */ +/* Render a pose from the scene camera. It is assumed that the scene camera is + * capturing the pose. The pose is applied temporarily to the current object + * before rendering. */ static void action_preview_render(IconPreview *preview, IconPreviewSize *preview_sized) { char err_out[256] = ""; |