mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-01 11:08:11 +08:00
Remove additional boolean for mirroring distance (#965)
Removed the additional boolean for mirroring distance
This commit is contained in:
committed by
Keavon Chambers
parent
bf1a3e3daf
commit
0019340096
@@ -96,6 +96,7 @@ pub enum DocumentMessage {
|
||||
MoveSelectedManipulatorPoints {
|
||||
layer_path: Vec<LayerId>,
|
||||
delta: (f64, f64),
|
||||
mirror_distance: bool,
|
||||
},
|
||||
NodeGraphFrameGenerate,
|
||||
NodeGraphFrameImaginate {
|
||||
@@ -183,7 +184,6 @@ pub enum DocumentMessage {
|
||||
},
|
||||
ToggleSelectedHandleMirroring {
|
||||
layer_path: Vec<LayerId>,
|
||||
toggle_distance: bool,
|
||||
toggle_angle: bool,
|
||||
},
|
||||
Undo,
|
||||
|
||||
@@ -496,9 +496,9 @@ impl MessageHandler<DocumentMessage, (u64, &InputPreprocessorMessageHandler, &Pe
|
||||
.into(),
|
||||
);
|
||||
}
|
||||
MoveSelectedManipulatorPoints { layer_path, delta } => {
|
||||
MoveSelectedManipulatorPoints { layer_path, delta, mirror_distance } => {
|
||||
if let Ok(_layer) = self.document_legacy.layer(&layer_path) {
|
||||
responses.push_back(DocumentOperation::MoveSelectedManipulatorPoints { layer_path, delta }.into());
|
||||
responses.push_back(DocumentOperation::MoveSelectedManipulatorPoints { layer_path, delta, mirror_distance }.into());
|
||||
}
|
||||
}
|
||||
NodeGraphFrameGenerate => {
|
||||
@@ -826,19 +826,8 @@ impl MessageHandler<DocumentMessage, (u64, &InputPreprocessorMessageHandler, &Pe
|
||||
responses.push_back(DocumentOperation::ToggleLayerVisibility { path: layer_path }.into());
|
||||
responses.push_back(BroadcastEvent::DocumentIsDirty.into());
|
||||
}
|
||||
ToggleSelectedHandleMirroring {
|
||||
layer_path,
|
||||
toggle_distance,
|
||||
toggle_angle,
|
||||
} => {
|
||||
responses.push_back(
|
||||
DocumentOperation::SetSelectedHandleMirroring {
|
||||
layer_path,
|
||||
toggle_distance,
|
||||
toggle_angle,
|
||||
}
|
||||
.into(),
|
||||
);
|
||||
ToggleSelectedHandleMirroring { layer_path, toggle_angle } => {
|
||||
responses.push_back(DocumentOperation::SetSelectedHandleMirroring { layer_path, toggle_angle }.into());
|
||||
}
|
||||
Undo => {
|
||||
self.undo_in_progress = true;
|
||||
|
||||
Reference in New Issue
Block a user