mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 13:24:04 +02:00
Fix Animation hue bug.
This commit is contained in:
parent
b18ffe9508
commit
1d6985a9eb
2 changed files with 4 additions and 0 deletions
|
@ -148,6 +148,8 @@ void PolyLineEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPo
|
||||||
auto strokeWidthsChanged = entity->strokeWidthsChanged();
|
auto strokeWidthsChanged = entity->strokeWidthsChanged();
|
||||||
auto normalsChanged = entity->normalsChanged();
|
auto normalsChanged = entity->normalsChanged();
|
||||||
auto strokeColorsChanged = entity->strokeColorsChanged();
|
auto strokeColorsChanged = entity->strokeColorsChanged();
|
||||||
|
|
||||||
|
|
||||||
bool isUVModeStretch = entity->getIsUVModeStretch();
|
bool isUVModeStretch = entity->getIsUVModeStretch();
|
||||||
entity->resetPolyLineChanged();
|
entity->resetPolyLineChanged();
|
||||||
|
|
||||||
|
|
|
@ -46,9 +46,11 @@ class PolyLineEntityItem : public EntityItem {
|
||||||
xColor getXColor() const { xColor color = { _color[RED_INDEX], _color[GREEN_INDEX], _color[BLUE_INDEX] }; return color; }
|
xColor getXColor() const { xColor color = { _color[RED_INDEX], _color[GREEN_INDEX], _color[BLUE_INDEX] }; return color; }
|
||||||
|
|
||||||
void setColor(const rgbColor& value) {
|
void setColor(const rgbColor& value) {
|
||||||
|
_strokeColorsChanged = true;
|
||||||
memcpy(_color, value, sizeof(_color));
|
memcpy(_color, value, sizeof(_color));
|
||||||
}
|
}
|
||||||
void setColor(const xColor& value) {
|
void setColor(const xColor& value) {
|
||||||
|
_strokeColorsChanged = true;
|
||||||
_color[RED_INDEX] = value.red;
|
_color[RED_INDEX] = value.red;
|
||||||
_color[GREEN_INDEX] = value.green;
|
_color[GREEN_INDEX] = value.green;
|
||||||
_color[BLUE_INDEX] = value.blue;
|
_color[BLUE_INDEX] = value.blue;
|
||||||
|
|
Loading…
Reference in a new issue