From f65debaf6832b728fa56d8e15354085622dd6883 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Sun, 12 Jan 2020 16:22:46 -0800 Subject: Don't flip screenshot. --- editor/editor_node.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'editor') diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4552ce1348..4440a747be 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2729,7 +2729,6 @@ void EditorNode::_save_screenshot(NodePath p_path) { Viewport *viewport = EditorInterface::get_singleton()->get_editor_viewport()->get_viewport(); viewport->set_clear_mode(Viewport::CLEAR_MODE_ONLY_NEXT_FRAME); Ref img = viewport->get_texture()->get_data(); - img->flip_y(); viewport->set_clear_mode(Viewport::CLEAR_MODE_ALWAYS); Error error = img->save_png(p_path); ERR_FAIL_COND_MSG(error != OK, "Cannot save screenshot to file '" + p_path + "'."); -- cgit v1.2.3