diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp index e54d0c0d1ae..180de700b7b 100644 --- a/editor/plugins/curve_editor_plugin.cpp +++ b/editor/plugins/curve_editor_plugin.cpp @@ -1071,11 +1071,10 @@ Ref CurvePreviewGenerator::generate(const Ref &p_from, cons return Ref(); } - Size2 thumbnail_size = p_size * EDSCALE; Ref img_ref; img_ref.instantiate(); Image &im = **img_ref; - im.initialize_data(thumbnail_size.x, thumbnail_size.y, false, Image::FORMAT_RGBA8); + im.initialize_data(p_size.x, p_size.y, false, Image::FORMAT_RGBA8); Color line_color = EditorInterface::get_singleton()->get_editor_theme()->get_color(SceneStringName(font_color), EditorStringName(Editor));