@@ -15,6 +15,7 @@ use crate::messages::portfolio::document::utility_types::transformation::Axis;
1515use crate :: messages:: preferences:: SelectionMode ;
1616use crate :: messages:: tool:: common_functionality:: auto_panning:: AutoPanning ;
1717use crate :: messages:: tool:: common_functionality:: graph_modification_utils;
18+ use crate :: messages:: tool:: common_functionality:: graph_modification_utils:: NodeGraphLayer ;
1819use crate :: messages:: tool:: common_functionality:: pivot:: { PivotGizmo , PivotGizmoType , PivotToolSource , pin_pivot_widget, pivot_gizmo_type_widget, pivot_reference_point_widget} ;
1920use crate :: messages:: tool:: common_functionality:: shape_editor:: {
2021 ClosestSegment , ManipulatorAngle , OpposingHandleLengths , SelectedLayerState , SelectedPointsInfo , SelectionChange , SelectionShape , SelectionShapeType , ShapeState ,
@@ -699,7 +700,7 @@ impl PathToolData {
699700 fn mouse_down (
700701 & mut self ,
701702 shape_editor : & mut ShapeState ,
702- document : & DocumentMessageHandler ,
703+ document : & mut DocumentMessageHandler ,
703704 input : & InputPreprocessorMessageHandler ,
704705 responses : & mut VecDeque < Message > ,
705706 extend_selection : bool ,
@@ -726,6 +727,9 @@ impl PathToolData {
726727 let mut old_selection = HashMap :: new ( ) ;
727728
728729 for ( layer, state) in & shape_editor. selected_shape_state {
730+ if NodeGraphLayer :: is_raster_layer ( * layer, & mut document. network_interface ) {
731+ return PathToolFsmState :: Ready ;
732+ }
729733 let selected_points = state. selected_points ( ) . collect :: < HashSet < _ > > ( ) ;
730734 let selected_segments = state. selected_segments ( ) . collect :: < HashSet < _ > > ( ) ;
731735 old_selection. insert ( * layer, ( selected_points, selected_segments) ) ;
0 commit comments