]> git.localhorst.tv Git - blank.git/commitdiff
fix return type for Entity::Transform()
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 6 Jan 2016 08:56:35 +0000 (09:56 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 6 Jan 2016 08:56:35 +0000 (09:56 +0100)
src/world/Entity.hpp

index 36f686848e6542353e3c47d20e94fdb9af58902e..e38e0b449e79bf41eae31c4800a7bc10ad04d6ea 100644 (file)
@@ -95,7 +95,7 @@ public:
        void SetHead(float pitch, float yaw) noexcept;
 
        /// get a transform for this entity's coordinate space
-       const glm::mat4 Transform() const noexcept { return model_transform; }
+       const glm::mat4 &Transform() const noexcept { return model_transform; }
        /// get a transform for this entity's coordinate space relative to reference chunk
        glm::mat4 Transform(const glm::ivec3 &reference) const noexcept;
        /// get a transform for this entity's view space relative to reference chunk