mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Cleanup lambda expressions and directly address Fadeable properties when adding properties
This commit is contained in:
@@ -95,13 +95,13 @@ RenderableConstellationsBase::RenderableConstellationsBase(
|
||||
{
|
||||
const Parameters p = codegen::bake<Parameters>(dictionary);
|
||||
|
||||
addProperty(_opacity);
|
||||
addProperty(Fadeable::_opacity);
|
||||
|
||||
// Avoid reading files here, instead do it in multithreaded initialize()
|
||||
if (p.namesFile.has_value()) {
|
||||
_namesFilename = absPath(p.namesFile.value().string()).string();
|
||||
}
|
||||
_namesFilename.onChange([&]() { loadConstellationFile(); });
|
||||
_namesFilename.onChange([this]() { loadConstellationFile(); });
|
||||
addProperty(_namesFilename);
|
||||
|
||||
_lineWidth = p.lineWidth.value_or(_lineWidth);
|
||||
|
||||
Reference in New Issue
Block a user