disallow running another reticle after a dotter
This commit is contained in:
parent
37ff06c704
commit
7c40505d7d
1 changed files with 6 additions and 0 deletions
|
@ -73,6 +73,12 @@ impl Trampoline {
|
||||||
let value = vm.run(system, draw_id, &[Value::Ref(dotter)])?;
|
let value = vm.run(system, draw_id, &[Value::Ref(dotter)])?;
|
||||||
self.value = value;
|
self.value = value;
|
||||||
|
|
||||||
|
// Prevent event handling weirdness on the frontend by disallowing continuing dotters
|
||||||
|
// with anything but scribbles.
|
||||||
|
if self.cont(vm) != Cont::Scribble {
|
||||||
|
return Err(vm.create_exception("a dotter must be continued with a scribble"));
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue