[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [marble/kitchen] src/plugins/render/atmosphere: AtmospherePlugin: Render only if atmosphere exists
From: Rene Kuettner <rene () bitkanal ! net>
Date: 2012-12-04 0:10:31
Message-ID: 20121204001031.49D1AA6091 () git ! kde ! org
[Download RAW message or body]
Git commit dff577722afe7dd6ccafdd48c358b6f93edb84de by Rene Kuettner.
Committed on 04/12/2012 at 01:08.
Pushed by renek into branch 'kitchen'.
AtmospherePlugin: Render only if atmosphere exists
M +1 -1 src/plugins/render/atmosphere/AtmospherePlugin.cpp
http://commits.kde.org/marble/dff577722afe7dd6ccafdd48c358b6f93edb84de
diff --git a/src/plugins/render/atmosphere/AtmospherePlugin.cpp b/src/plugi=
ns/render/atmosphere/AtmospherePlugin.cpp
index 5a6d421..e6b531f 100644
--- a/src/plugins/render/atmosphere/AtmospherePlugin.cpp
+++ b/src/plugins/render/atmosphere/AtmospherePlugin.cpp
@@ -117,7 +117,7 @@ bool AtmospherePlugin::render( GeoPainter *painter,
Q_UNUSED(renderPos)
Q_UNUSED(layer)
=
- if ( !visible() )
+ if ( !visible() || !marbleModel()->planet()->hasAtmosphere() )
return true;
=
// Only draw an atmosphere if projection is spherical
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic