Updated renderablesmallbody with line width & refresh changes from satellites

This commit is contained in:
GPayne
2020-02-11 23:45:25 -07:00
parent 2650f8c6b6
commit 2c11e87374

View File

@@ -247,6 +247,22 @@ RenderableSmallBody::RenderableSmallBody(const ghoul::Dictionary& dictionary)
_appearance.lineFade = 20;
}
if (dictionary.hasKeyAndValue<double>(LineWidthInfo.identifier)) {
_appearance.lineWidth = static_cast<float>(
dictionary.value<double>(LineWidthInfo.identifier)
);
}
else {
_appearance.lineWidth = 2.0;
}
auto reinitializeTrailBuffers = [this]() {
initializeGL();
};
_path.onChange(reinitializeTrailBuffers);
_nSegments.onChange(reinitializeTrailBuffers);
addPropertySubOwner(_appearance);
addProperty(_path);
addProperty(_nSegments);