Style: Apply clang-tidy's modernize-use-bool-literals

This commit is contained in:
Rémi Verschelde
2021-04-05 13:16:35 +02:00
parent 33b8f1448e
commit 0f0c0e5933
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1379,7 +1379,7 @@ void EditorNode::_save_scene_with_preview(String p_file, int p_idx) {
// which would result in an invalid texture.
if (c3d == 0 && c2d == 0) {
img.instance();
img->create(1, 1, 0, Image::FORMAT_RGB8);
img->create(1, 1, false, Image::FORMAT_RGB8);
} else if (c3d < c2d) {
Ref<ViewportTexture> viewport_texture = scene_root->get_texture();
if (viewport_texture->get_width() > 0 && viewport_texture->get_height() > 0) {