mirror of
https://github.com/godotengine/godot.git
synced 2025-01-30 13:51:29 +00:00
Don't flip screenshot.
This commit is contained in:
parent
8c73e81313
commit
f65debaf68
@ -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 + "'.");
|
||||
|
Loading…
Reference in New Issue
Block a user