forked from bartvdbraak/blender
Cleanup: compiler warnings
This commit is contained in:
parent
60757f010a
commit
61e2384b7a
@ -727,7 +727,7 @@ static bool screen_opengl_render_init(bContext *C, wmOperator *op)
|
||||
const bool is_sequencer = RNA_boolean_get(op->ptr, "sequencer");
|
||||
const bool is_write_still = RNA_boolean_get(op->ptr, "write_still");
|
||||
const eImageFormatDepth color_depth = static_cast<eImageFormatDepth>(
|
||||
(is_animation) ? scene->r.im_format.depth : R_IMF_CHAN_DEPTH_32);
|
||||
(is_animation) ? (eImageFormatDepth)scene->r.im_format.depth : R_IMF_CHAN_DEPTH_32);
|
||||
char err_out[256] = "unknown";
|
||||
|
||||
if (G.background) {
|
||||
|
@ -534,7 +534,7 @@ static Scene *preview_prepare_scene(
|
||||
const ePreviewType preview_type = static_cast<ePreviewType>(
|
||||
(sp->pr_method == PR_ICON_RENDER && sp->pr_main == G_pr_main_grease_pencil) ?
|
||||
MA_SPHERE_A :
|
||||
mat->pr_type);
|
||||
(ePreviewType)mat->pr_type);
|
||||
set_preview_visibility(pr_main, sce, view_layer, preview_type, sp->pr_method);
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user