@@ -15,6 +15,7 @@ use crate::messages::portfolio::document::utility_types::transformation::Axis;
15
15
use crate :: messages:: preferences:: SelectionMode ;
16
16
use crate :: messages:: tool:: common_functionality:: auto_panning:: AutoPanning ;
17
17
use crate :: messages:: tool:: common_functionality:: graph_modification_utils;
18
+ use crate :: messages:: tool:: common_functionality:: graph_modification_utils:: NodeGraphLayer ;
18
19
use crate :: messages:: tool:: common_functionality:: pivot:: { PivotGizmo , PivotGizmoType , PivotToolSource , pin_pivot_widget, pivot_gizmo_type_widget, pivot_reference_point_widget} ;
19
20
use crate :: messages:: tool:: common_functionality:: shape_editor:: {
20
21
ClosestSegment , ManipulatorAngle , OpposingHandleLengths , SelectedLayerState , SelectedPointsInfo , SelectionChange , SelectionShape , SelectionShapeType , ShapeState ,
@@ -699,7 +700,7 @@ impl PathToolData {
699
700
fn mouse_down (
700
701
& mut self ,
701
702
shape_editor : & mut ShapeState ,
702
- document : & DocumentMessageHandler ,
703
+ document : & mut DocumentMessageHandler ,
703
704
input : & InputPreprocessorMessageHandler ,
704
705
responses : & mut VecDeque < Message > ,
705
706
extend_selection : bool ,
@@ -726,6 +727,9 @@ impl PathToolData {
726
727
let mut old_selection = HashMap :: new ( ) ;
727
728
728
729
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
+ }
729
733
let selected_points = state. selected_points ( ) . collect :: < HashSet < _ > > ( ) ;
730
734
let selected_segments = state. selected_segments ( ) . collect :: < HashSet < _ > > ( ) ;
731
735
old_selection. insert ( * layer, ( selected_points, selected_segments) ) ;
0 commit comments