forked from 1b-agent/opencadstudio-upstream
Match RAY command behavior
This commit is contained in:
1 parent
7d0c059b30
commit
452e61121b
1 file changed
+3
@@ -50,6 +50,9 @@ impl CadCommand for RayCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn on_point(&mut self, pt: DVec3) -> CmdResult {
|
fn on_point(&mut self, pt: DVec3) -> CmdResult {
|
||||||
|
if !pt.is_finite() {
|
||||||
|
return CmdResult::NeedPoint;
|
||||||
|
}
|
||||||
if let Some(base) = self.base {
|
if let Some(base) = self.base {
|
||||||
let dir = pt - base;
|
let dir = pt - base;
|
||||||
let len = dir.length();
|
let len = dir.length();
|
||||||
|
|||||||
Reference in new issue
Block a user