Skip to content

Commit

Permalink
libgui|Assimp: Compiling with an unmodified Assimp
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 25, 2017
1 parent c9c4b5f commit 5272413
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/sdk/libgui/CMakeLists.txt
Expand Up @@ -52,6 +52,7 @@ if (DENG_ASSIMP_EMBEDDED)
add_subdirectory (../../external/assimp assimp)
set_property (TARGET assimp PROPERTY FOLDER Libraries)
set (CMAKE_C_FLAGS ${oldCFlags})
add_definitions (-DDENG_HAVE_CUSTOMIZED_ASSIMP=1)
endif ()
#----------------------------------------------------------------------------------------

Expand Down
4 changes: 4 additions & 0 deletions doomsday/sdk/libgui/src/graphics/modeldrawable.cpp
Expand Up @@ -647,6 +647,8 @@ DENG2_PIMPL(ModelDrawable)
{
LOG_GL_MSG("Loading model from %s") << file.description();

#if defined (DENG_HAVE_CUSTOMIZED_ASSIMP)
{
/*
* MD5: Multiple animation sequences are supported via multiple .md5anim files.
* Autodetect if these exist and make a list of their names.
Expand All @@ -667,6 +669,8 @@ DENG2_PIMPL(ModelDrawable)
});
}
importer.SetPropertyString(AI_CONFIG_IMPORT_MD5_ANIM_SEQUENCE_NAMES, anims.toStdString());
}
#endif

scene = glData.scene = nullptr;
sourcePath = file.path();
Expand Down

0 comments on commit 5272413

Please sign in to comment.