Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Szepe <HG1_public@gmx.net>2015-03-23 23:36:08 +0300
committerThomas Szepe <HG1_public@gmx.net>2015-03-23 23:36:08 +0300
commit2affbb437bd3cbf3e1a502bd65a5eefb64a92b9b (patch)
tree2403ce2b95eb97249251d24ca035d389864c307f /source/gameengine/Ketsji/KX_WorldIpoController.cpp
parent38321faa8d111ec51ebdeb7f2e939062d5e080a1 (diff)
BGE: Multitexture world (mist, ambient) fix
This patch fix the existing word API for mist and global ambient lighting. Add deprecated message to disableMist() Add setUseMist(enable). Reviewers: dfelinto, campbellbarton, moguri Reviewed By: moguri Subscribers: solarlune, jta, brecht Projects: #bf_blender:_next Differential Revision: https://developer.blender.org/D148
Diffstat (limited to 'source/gameengine/Ketsji/KX_WorldIpoController.cpp')
-rw-r--r--source/gameengine/Ketsji/KX_WorldIpoController.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_WorldIpoController.cpp b/source/gameengine/Ketsji/KX_WorldIpoController.cpp
index 7f83a155643..a30d89284b8 100644
--- a/source/gameengine/Ketsji/KX_WorldIpoController.cpp
+++ b/source/gameengine/Ketsji/KX_WorldIpoController.cpp
@@ -57,9 +57,7 @@ bool KX_WorldIpoController::Update(double currentTime)
}
if (m_modify_mist_color) {
- world->setMistColorRed(m_mist_rgb[0]);
- world->setMistColorGreen(m_mist_rgb[1]);
- world->setMistColorBlue(m_mist_rgb[2]);
+ world->setMistColor(m_mist_rgb[0], m_mist_rgb[1], m_mist_rgb[2]);
}
if (m_modify_mist_dist) {