From 8d4d0d4e9a849f50109d8cb670bed3d2195994c4 Mon Sep 17 00:00:00 2001 From: samcake Date: Thu, 17 Dec 2015 10:08:40 -0800 Subject: [PATCH] FIxing the bad returned value per reference --- libraries/model/src/model/Material.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/model/src/model/Material.h b/libraries/model/src/model/Material.h index bd1d45c7ed..cb5a285dba 100755 --- a/libraries/model/src/model/Material.h +++ b/libraries/model/src/model/Material.h @@ -221,10 +221,10 @@ public: const MaterialKey& getKey() const { return _key; } void setEmissive(const Color& emissive, bool isSRGB = true); - const Color& getEmissive(bool SRGB = true) const { return (SRGB ? ColorUtils::toGamma22Vec3(_schemaBuffer.get()._emissive) : _schemaBuffer.get()._emissive); } + Color getEmissive(bool SRGB = true) const { return (SRGB ? ColorUtils::toGamma22Vec3(_schemaBuffer.get()._emissive) : _schemaBuffer.get()._emissive); } void setDiffuse(const Color& diffuse, bool isSRGB = true); - const Color& getDiffuse(bool SRGB = true) const { return (SRGB ? ColorUtils::toGamma22Vec3(_schemaBuffer.get()._diffuse) : _schemaBuffer.get()._diffuse); } + Color getDiffuse(bool SRGB = true) const { return (SRGB ? ColorUtils::toGamma22Vec3(_schemaBuffer.get()._diffuse) : _schemaBuffer.get()._diffuse); } void setMetallic(float metallic); float getMetallic() const { return _schemaBuffer.get()._metallic.x; }