Remove startup warnings

This commit is contained in:
Alexander Bock
2017-07-26 16:46:20 -04:00
parent 51e1541cf1
commit ce034ccc96
3 changed files with 4 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ return {
Type = "RenderableSphere",
Size = 10E22,
Segments = 40,
Alpha = 0.2,
Texture = "textures/DarkUniverse_mellinger_8k.jpg",
Orientation = "Inside/Outside"
}

View File

@@ -120,8 +120,7 @@ documentation::Documentation RenderableRings::Documentation() {
TransparencyInfo.description,
Optional::Yes
}
},
Exhaustive::Yes
}
};
}

View File

@@ -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