File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use crate::messages::tool::utility_types::ToolType;
99use crate :: node_graph_executor:: Instrumented ;
1010use crate :: node_graph_executor:: NodeRuntime ;
1111use crate :: test_utils:: test_prelude:: LayerNodeIdentifier ;
12- use glam:: DVec2 ;
12+ use glam:: { DVec2 , UVec2 } ;
1313use graph_craft:: document:: DocumentNode ;
1414use graphene_std:: InputAccessor ;
1515use 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 }
You can’t perform that action at this time.
0 commit comments