Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry.levkovich committed Apr 19, 2022
1 parent 53a8a9b commit 4b7c7ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if ("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
endif ()

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 ")


list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
Expand Down Expand Up @@ -199,12 +199,12 @@ if (NOT MSVC)
target_compile_options(libFBX2glTF PRIVATE
"-Wno-null-dereference"
"-Wunused"
"-O1"
"-O0"
)
target_compile_options(FBX2glTF PRIVATE
"-Wno-null-dereference"
"-Wunused"
"-O1"
"-O0"
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/fbx/Fbx2Raw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#define ALTERNATIVE_SLASH_CHAR '\\'
#endif

float scaleFactor;
float scaleFactor = 0.01F;

static std::string NativeToUTF8(const std::string& str) {
#if _WIN32
Expand Down
4 changes: 4 additions & 0 deletions src/gltf/Raw2Gltf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ ModelData* Raw2Gltf(

for (size_t channelIx = 0; channelIx < animation.channels.size(); channelIx++) {
const RawChannel& channel = animation.channels[channelIx];
if(channel.nodeIndex < 0)
{
continue;
}
const RawNode& node = raw.GetNode(channel.nodeIndex);

if (verboseOutput) {
Expand Down

0 comments on commit 4b7c7ce

Please sign in to comment.