Commit 42f03feb authored by Florian Oetke's avatar Florian Oetke
Browse files

fixed small error in CMakeLists.txt

parent 142bbb13
......@@ -33,7 +33,7 @@ endif()
option(MIRRAGE_BUILD_MESH_CONVERTER "Build the mesh converter (requires assimp)" OFF)
get_directory_property(hasParent PARENT_DIRECTORY)
if(!hasParent)
if(NOT hasParent)
option(MIRRAGE_BUILD_DEMO "Build the demo application" ON)
# custom target that does nothing but references all files so they show up in QtCreator
......@@ -42,7 +42,7 @@ if(!hasParent)
${CMAKE_CURRENT_SOURCE_DIR}/*.*)
add_custom_target(zz_all_project_files SOURCES ${ALL_FILES})
else()
option(MIRRAGE_BUILD_DEMO "Build the demo application" OFF)
endif()
......
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
execute_process(COMMAND git submodule update --init --recursive --remote
WORKING_DIRECTORY ${ROOT_DIR})
if(MIRRAGE_BUILD_MESH_CONVERTER)
find_package(assimp 3.3.1)
if(NOT assimp_FOUND)
......
......@@ -201,7 +201,7 @@ namespace mirrage::systems {
auto pos_diff = glm::distance2(transform.position(), position);
auto orientation_diff = glm::abs(glm::dot(transform.orientation(), orientation) - 1);
if(pos_diff > 0.0001f || orientation_diff > 0.001f) {
if(pos_diff > 0.00001f || orientation_diff > 0.0001f) {
transform.orientation(orientation);
transform.position(position);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment