File tree 1 file changed +10
-6
lines changed
editor/src/messages/tool/tool_messages
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -536,10 +536,12 @@ impl Fsm for SelectToolFsmState {
536
536
}
537
537
538
538
let Some ( vector_data) = document. network_interface . compute_modified_vector ( layer) else { continue } ;
539
- for & position in vector_data. point_domain . positions ( ) {
539
+ for & point_id in vector_data. point_domain . ids ( ) {
540
540
// Check if the point in the layer is not part of a segment
541
- if vector_data. segment_domain . ids ( ) . is_empty ( ) {
542
- overlay_context. outline_free_floating_anchor ( layer_to_viewport. transform_point2 ( position) ) ;
541
+ if vector_data. connected_count ( point_id) == 0 {
542
+ if let Some ( position) = vector_data. point_domain . position_from_id ( point_id) {
543
+ overlay_context. outline_free_floating_anchor ( layer_to_viewport. transform_point2 ( position) ) ;
544
+ }
543
545
}
544
546
}
545
547
}
@@ -586,10 +588,12 @@ impl Fsm for SelectToolFsmState {
586
588
overlay_context. outline ( document. metadata ( ) . layer_outline ( layer) , layer_to_viewport) ;
587
589
588
590
if let Some ( vector_data) = document. network_interface . compute_modified_vector ( layer) {
589
- for & position in vector_data. point_domain . positions ( ) {
591
+ for & point_id in vector_data. point_domain . ids ( ) {
590
592
// Check if the point in the layer is not part of a segment
591
- if vector_data. segment_domain . ids ( ) . is_empty ( ) {
592
- overlay_context. outline_free_floating_anchor ( layer_to_viewport. transform_point2 ( position) ) ;
593
+ if vector_data. connected_count ( point_id) == 0 {
594
+ if let Some ( position) = vector_data. point_domain . position_from_id ( point_id) {
595
+ overlay_context. outline_free_floating_anchor ( layer_to_viewport. transform_point2 ( position) ) ;
596
+ }
593
597
}
594
598
}
595
599
}
You can’t perform that action at this time.
0 commit comments