diff options
author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2020-01-12 16:22:46 -0800 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2020-02-11 10:10:42 -0800 |
commit | f65debaf6832b728fa56d8e15354085622dd6883 (patch) | |
tree | dac5243cc605c8d0ffba7c99010ff8a45d44d080 /editor | |
parent | 8c73e813134001e575b6f59e3b0100471c007410 (diff) |
Don't flip screenshot.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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<Image> 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 + "'."); |