Compare commits
No commits in common. "85113a760f89d344a1a5edee89eb31014e676a62" and "3854fe893d34ce67e8a4308d241ec42c4e52b3a4" have entirely different histories.
85113a760f
...
3854fe893d
1 changed files with 4 additions and 12 deletions
16
src/main.rs
16
src/main.rs
|
@ -1230,6 +1230,8 @@ fn laser_mouse_moved(app: &App, model: &mut GuiModel, pos: Point2) {
|
|||
// config.filters.clip.
|
||||
let point = config.filters.homography.move_dac_point(*map_idx, [laser_x, laser_y]);
|
||||
|
||||
// 3. update config in laser stream threat
|
||||
|
||||
// 3. update config in laser stream threat
|
||||
let homography = config.filters.homography.clone();
|
||||
|
||||
|
@ -1381,11 +1383,11 @@ fn map_mouse_moved(_app: &App, model: &mut GuiModel, pos: Point2) {
|
|||
|
||||
// 3. propagate to laser stream threat
|
||||
let selected_laser_stream = model.laser_streams.get(&dac_id);
|
||||
let homography = config.filters.homography.clone();
|
||||
let mat = config.filters.homography.homography_matrix.clone();
|
||||
|
||||
if let Some(stream) = selected_laser_stream {
|
||||
stream.send(move |laser_model: &mut LaserModel| {
|
||||
laser_model.config.filters.homography = homography;
|
||||
laser_model.config.filters.homography.homography_matrix = mat;
|
||||
}).unwrap();
|
||||
}
|
||||
|
||||
|
@ -1487,16 +1489,6 @@ fn map_mouse_pressed(app: &App, model: &mut GuiModel, button: MouseButton) {
|
|||
model.canvas_dragging_homography = Some(index);
|
||||
}
|
||||
}
|
||||
|
||||
// propagate to laser dac streamer
|
||||
let selected_laser_stream = model.laser_streams.get(&dac_id);
|
||||
let homography = config.filters.homography.clone();
|
||||
|
||||
if let Some(stream) = selected_laser_stream {
|
||||
stream.send(move |laser_model: &mut LaserModel| {
|
||||
laser_model.config.filters.homography = homography;
|
||||
}).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue