Fixed overlapping
This commit is contained in:
parent
b87a2f4575
commit
1ad1bd0ad2
1 changed files with 2 additions and 2 deletions
|
|
@ -61,8 +61,8 @@ impl INode2D for Plant {
|
||||||
impl Plant {
|
impl Plant {
|
||||||
#[func]
|
#[func]
|
||||||
fn restructure(&mut self) {
|
fn restructure(&mut self) {
|
||||||
if let Some(mut child) = self.base().get_child(0) {
|
for i in 0..self.base().get_children().len() {
|
||||||
child.queue_free();
|
self.base_mut().get_child(i as i32).unwrap().queue_free();
|
||||||
}
|
}
|
||||||
|
|
||||||
let Some(godot_genome) = self.genome.clone() else { return; };
|
let Some(godot_genome) = self.genome.clone() else { return; };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue