Cleanup: quiet warning

This commit is contained in:
2022-09-20 12:53:05 +10:00
parent 710b8b7929
commit 9c35f103c0

View File

@@ -50,7 +50,7 @@ static void OVERLAY_engine_init(void *vedata)
}
OVERLAY_PrivateData *pd = stl->pd;
pd->space_type = v3d != nullptr ? SPACE_VIEW3D : draw_ctx->space_data->spacetype;
pd->space_type = v3d != nullptr ? (int)SPACE_VIEW3D : draw_ctx->space_data->spacetype;
if (pd->space_type == SPACE_IMAGE) {
const SpaceImage *sima = (SpaceImage *)draw_ctx->space_data;