Skip to content

Commit 0feb92c

Browse files
fix test target
1 parent 72db980 commit 0feb92c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

editor/src/test_utils.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::messages::tool::utility_types::ToolType;
99
use crate::node_graph_executor::Instrumented;
1010
use crate::node_graph_executor::NodeRuntime;
1111
use crate::test_utils::test_prelude::LayerNodeIdentifier;
12-
use glam::DVec2;
12+
use glam::{DVec2, UVec2};
1313
use graph_craft::document::DocumentNode;
1414
use graphene_std::InputAccessor;
1515
use graphene_std::raster::color::Color;
@@ -294,11 +294,12 @@ impl EditorTestUtils {
294294

295295
/// Necessary for doing snapping since snaps outside of the viewport are discarded
296296
pub async fn set_viewport_size(&mut self, top_left: DVec2, bottom_right: DVec2) {
297-
self.handle_message(ViewportMessage::UpdateBounds {
297+
self.handle_message(ViewportMessage::Update {
298298
x: top_left.x,
299299
y: top_left.y,
300300
width: bottom_right.x - top_left.x,
301301
height: bottom_right.y - top_left.y,
302+
scale: 1.0,
302303
})
303304
.await;
304305
}

0 commit comments

Comments
 (0)