Also apply the RenderableTravelSpeed changes to the fadeLength parameter

This commit is contained in:
Alexander Bock
2023-01-31 23:42:32 +01:00
parent 2f91e3ec0d
commit 8445a48f71
2 changed files with 3 additions and 3 deletions
@@ -93,7 +93,7 @@ namespace {
std::optional<float> indicatorLength;
// [[codegen::verbatim(FadeLengthInfo.description)]]
std::optional<int> fadeLength;
std::optional<float> fadeLength;
};
#include "renderabletravelspeed_codegen.cpp"
} // namespace
@@ -114,7 +114,7 @@ RenderableTravelSpeed::RenderableTravelSpeed(const ghoul::Dictionary& dictionary
distanceconstants::LightSecond
)
, _indicatorLength(IndicatorLengthInfo, 1.f, 0.f, 360.f)
, _fadeLength(FadeLengthInfo, 1, 0, 360)
, _fadeLength(FadeLengthInfo, 1.f, 0.f, 360.f)
, _lineWidth(LineWidthInfo, 2.f, 1.f, 20.f)
, _lineColor(LineColorInfo, glm::vec3(1.f), glm::vec3(0.f), glm::vec3(1.f))
{
@@ -64,7 +64,7 @@ private:
SceneGraphNode* _targetNode = nullptr;
properties::DoubleProperty _travelSpeed;
properties::FloatProperty _indicatorLength;
properties::IntProperty _fadeLength;
properties::FloatProperty _fadeLength;
properties::FloatProperty _lineWidth;
properties::Vec3Property _lineColor;