From 3fef8a16224785ef8da4b8c42a22b90ce5fe6484 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Tue, 3 Mar 2015 12:41:51 -0800 Subject: [PATCH] Update Light to set direction when setting orientation --- libraries/model/src/model/Light.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/model/src/model/Light.cpp b/libraries/model/src/model/Light.cpp index a9425bed4b..ea77412140 100755 --- a/libraries/model/src/model/Light.cpp +++ b/libraries/model/src/model/Light.cpp @@ -44,6 +44,7 @@ void Light::setPosition(const Vec3& position) { } void Light::setOrientation(const glm::quat& orientation) { + setDirection(orientation * glm::vec3(0.0f, 0.0f, -1.0f)); _transform.setRotation(orientation); }