瀏覽代碼

Disable IRRMESH if IRR is disabled. Closes #1362.

Lasse Öörni 9 年之前
父節點
當前提交
5e7a3b1265
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      Source/ThirdParty/Assimp/code/ImporterRegistry.cpp

+ 7 - 0
Source/ThirdParty/Assimp/code/ImporterRegistry.cpp

@@ -39,6 +39,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 ---------------------------------------------------------------------------
 ---------------------------------------------------------------------------
 */
 */
 
 
+// Modified by Lasse Oorni for Urho3D
+
 /** @file ImporterRegistry.cpp
 /** @file ImporterRegistry.cpp
 
 
 Central registry for all importers available. Do not edit this file
 Central registry for all importers available. Do not edit this file
@@ -46,6 +48,11 @@ directly (unless you are adding new loaders), instead use the
 corresponding preprocessor flag to selectively disable formats.
 corresponding preprocessor flag to selectively disable formats.
 */
 */
 
 
+// Urho3D: disable IRRMESH if IRR disabled
+#ifdef ASSIMP_BUILD_NO_IRR_IMPORTER
+#define ASSIMP_BUILD_NO_IRRMESH_IMPORTER
+#endif
+
 // ------------------------------------------------------------------------------------------------
 // ------------------------------------------------------------------------------------------------
 // Importers
 // Importers
 // (include_new_importers_here)
 // (include_new_importers_here)