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
+1 -2
View File
@@ -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