more tweaks for new light properties

This commit is contained in:
ZappoMan 2014-10-27 15:37:52 -07:00
parent ac9c5e7386
commit bb1eacce7d
3 changed files with 4 additions and 8 deletions

View file

@ -247,11 +247,11 @@ public:
bool getIsSpotlight() const { return _isSpotlight; }
void setIsSpotlight(bool value) { _isSpotlight = value; _isSpotlightChanged = true; }
void setDiffuseColor(const xColor& value) { }
void setAmbientColor(const xColor& value) { }
void setSpecularColor(const xColor& value) { }
// total hack for now
void setDiffuseColor(const xColor& value) { setColor(value); }
void setAmbientColor(const xColor& value) { setColor(value); }
void setSpecularColor(const xColor& value) { setColor(value); }
void setLastEdited(quint64 usecTime) { _lastEdited = usecTime; }
private:

View file

@ -53,7 +53,6 @@ EntityItemProperties LightEntityItem::getProperties() const {
properties.setDiffuseColor(getDiffuseXColor());
properties.setAmbientColor(getAmbientXColor());
properties.setSpecularColor(getSpecularXColor());
properties.setGlowLevel(getGlowLevel());
properties.setIsSpotlight(getIsSpotlight());
return properties;

View file

@ -33,10 +33,7 @@ SphereEntityItem::SphereEntityItem(const EntityItemID& entityItemID, const Entit
EntityItemProperties SphereEntityItem::getProperties() const {
EntityItemProperties properties = EntityItem::getProperties(); // get the properties from our base class
properties.setColor(getXColor());
properties.setGlowLevel(getGlowLevel());
return properties;
}