mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 07:40:42 +01:00
[python/turtle] Turtle::m_drawn is false if sandbox not displayed
This way, Turtle::draw() and erase() are more symetrical and no not perform themselves if the turtle is already drawn / erased.
This commit is contained in:
@@ -11,6 +11,10 @@ void modturtle_gc_collect() {
|
||||
gc_collect_root((void **)&sTurtle, sizeof(Turtle));
|
||||
}
|
||||
|
||||
void modturtle_view_did_disappear() {
|
||||
sTurtle.viewDidDisappear();
|
||||
}
|
||||
|
||||
mp_obj_t modturtle___init__() {
|
||||
sTurtle = Turtle();
|
||||
/* Note: we don't even bother writing a destructor for Turtle because this
|
||||
|
||||
Reference in New Issue
Block a user