summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-26 22:24:28 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-05-26 22:50:35 +0200
commit3bc86e1c9238187c9970088441a0857c7769b464 (patch)
tree6c85a3eaa32f645c84a7c91eed112879fe50b967 /chart2
parentaa4015151ae6f0cea31c55673e162f0ecdeaa524 (diff)
use the center of the chart as camera direction
Change-Id: I943273817a26235afd9f17e55d2ee14c5f94c409
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/GL3DBarChart.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx
index b9c443fbb56e..a965d537f8dd 100644
--- a/chart2/source/view/charttypes/GL3DBarChart.cxx
+++ b/chart2/source/view/charttypes/GL3DBarChart.cxx
@@ -257,7 +257,7 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
maCameraPosition = glm::vec3(-30, -30, 200);
mpCamera->setPosition(maCameraPosition);
- maCameraDirection = glm::vec3(0, 0, 0);
+ maCameraDirection = glm::vec3(mnMaxX/2, mnMaxY/2, 0);
mpCamera->setDirection(maCameraDirection);
}