mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
CMake cleanup (#2489)
* CMake Cleanup * Warning suppression with CEF * Use SGCT tinyxml in skybrowser for now * Disable warnings about missing field initializers
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #
|
||||
##########################################################################################
|
||||
|
||||
include(${OPENSPACE_CMAKE_EXT_DIR}/module_definition.cmake)
|
||||
include(${PROJECT_SOURCE_DIR}/support/cmake/module_definition.cmake)
|
||||
|
||||
set(HEADER_FILES
|
||||
dashboard/dashboarditemangle.h
|
||||
|
||||
@@ -732,7 +732,7 @@ void RenderableModel::update(const UpdateData& data) {
|
||||
// starts again
|
||||
// s/\/\/\/\ ...
|
||||
relativeTime =
|
||||
duration - abs(fmod(now - startTime, 2 * duration) - duration);
|
||||
duration - std::abs(fmod(now - startTime, 2 * duration) - duration);
|
||||
break;
|
||||
case AnimationMode::BounceInfinitely: {
|
||||
// Bounce both before and after the start time where the model is
|
||||
@@ -742,7 +742,7 @@ void RenderableModel::update(const UpdateData& data) {
|
||||
if (modulo < 0.0) {
|
||||
modulo += 2 * duration;
|
||||
}
|
||||
relativeTime = duration - abs(modulo - duration);
|
||||
relativeTime = duration - std::abs(modulo - duration);
|
||||
break;
|
||||
}
|
||||
case AnimationMode::Once:
|
||||
|
||||
Reference in New Issue
Block a user