Don't call setup() in set_data.

This commit is contained in:
Relintai 2020-07-18 14:36:14 +02:00
parent 873a5f3e4a
commit 358a62d919
5 changed files with 1 additions and 9 deletions

View File

@ -199,7 +199,7 @@ Ref<Planet> PlanetData::instance() {
Ref<Planet> planet;
if (!_planet.is_valid()) {
planet.instance();
planet.instance();
} else {
planet = _planet->duplicate();
}

View File

@ -50,8 +50,6 @@ Ref<BiomeData> Biome::get_data() {
}
void Biome::set_data(Ref<BiomeData> value) {
_data = value;
setup();
}
//// Prop Data ////

View File

@ -101,8 +101,6 @@ Ref<DungeonData> Dungeon::get_data() {
}
void Dungeon::set_data(Ref<DungeonData> value) {
_data = value;
setup();
}
//Rooms

View File

@ -94,8 +94,6 @@ Ref<DungeonRoomData> DungeonRoom::get_data() {
}
void DungeonRoom::set_data(Ref<DungeonRoomData> value) {
_data = value;
setup();
}
#ifdef VOXELMAN_PRESENT

View File

@ -50,8 +50,6 @@ Ref<PlanetData> Planet::get_data() {
}
void Planet::set_data(Ref<PlanetData> value) {
_data = value;
setup();
}
Ref<Biome> Planet::get_biome(const int index) const {