mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-03 01:59:35 -06:00
Remove startup warnings
This commit is contained in:
@@ -6,6 +6,7 @@ return {
|
||||
Type = "RenderableSphere",
|
||||
Size = 10E22,
|
||||
Segments = 40,
|
||||
Alpha = 0.2,
|
||||
Texture = "textures/DarkUniverse_mellinger_8k.jpg",
|
||||
Orientation = "Inside/Outside"
|
||||
}
|
||||
|
||||
@@ -120,8 +120,7 @@ documentation::Documentation RenderableRings::Documentation() {
|
||||
TransparencyInfo.description,
|
||||
Optional::Yes
|
||||
}
|
||||
},
|
||||
Exhaustive::Yes
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -53,12 +53,6 @@ documentation::Documentation SimpleSphereGeometry::Documentation() {
|
||||
"SimpleSphereGeometry",
|
||||
"space_geometry_simplesphere",
|
||||
{
|
||||
{
|
||||
"Type",
|
||||
new StringEqualVerifier("SimpleSphereGeometry"),
|
||||
"",
|
||||
Optional::No
|
||||
},
|
||||
{
|
||||
RadiusInfo.identifier,
|
||||
new OrVerifier(
|
||||
@@ -74,8 +68,7 @@ documentation::Documentation SimpleSphereGeometry::Documentation() {
|
||||
SegmentsInfo.description,
|
||||
Optional::No
|
||||
}
|
||||
},
|
||||
Exhaustive::Yes
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -102,7 +95,7 @@ SimpleSphereGeometry::SimpleSphereGeometry(const ghoul::Dictionary& dictionary)
|
||||
_radius = dictionary.value<glm::vec3>(RadiusInfo.identifier);
|
||||
}
|
||||
|
||||
_segments = dictionary.value<int>(SegmentsInfo.identifier);
|
||||
_segments = static_cast<int>(dictionary.value<double>(SegmentsInfo.identifier));
|
||||
|
||||
// The shader need the radii values but they are not changeable runtime
|
||||
// TODO: Possibly add a scaling property @AA
|
||||
|
||||
Reference in New Issue
Block a user