Fixed top-down render preview in render form

This commit is contained in:
Michaël Lemaire 2013-11-17 23:33:46 +01:00
parent 6436428eeb
commit 051766d1d5
3 changed files with 17 additions and 3 deletions

View file

@ -38,6 +38,20 @@ void Scenery::load(PackStream* stream)
validate();
}
void Scenery::copy(BaseDefinition *destination_) const
{
Scenery* destination = (Scenery*)destination_;
atmosphere->copy(destination->atmosphere);
camera->copy(destination->camera);
clouds->copy(destination->clouds);
terrain->copy(destination->terrain);
textures->copy(destination->textures);
water->copy(destination->water);
destination->validate();
}
void Scenery::validate()
{
BaseDefinition::validate();

View file

@ -22,6 +22,8 @@ public:
virtual void load(PackStream* stream) override;
virtual void validate() override;
virtual void copy(BaseDefinition *destination) const override;
virtual Scenery* getScenery() override;
void autoPreset(int seed);

View file

@ -70,8 +70,6 @@ protected:
CloudsRendererClass.bind(_renderer, _no_clouds);
}
_renderer->prepare();
_renderer->atmosphere->applyAerialPerspective = _applyAerialPerspective;
}
@ -85,7 +83,7 @@ protected:
}
private:
Renderer* _renderer;
SoftwareRenderer* _renderer;
bool _clouds_enabled;
CloudsDefinition* _no_clouds;