From f5697d31a104e6d7f27a2da8c88b2ab729329a0f Mon Sep 17 00:00:00 2001 From: codereader Date: Mon, 18 May 2020 18:52:10 +0200 Subject: [PATCH] #5231: Move ModelFormatManager to core module, along with the NullModel implementations --- radiant/Makefile.am | 5 +--- radiant/model/ModelCache.cpp | 1 - radiantcore/Makefile.am | 3 +++ .../model/ModelFormatManager.cpp | 0 .../model/ModelFormatManager.h | 0 {radiant => radiantcore}/model/NullModel.cpp | 0 {radiant => radiantcore}/model/NullModel.h | 0 .../model/NullModelLoader.h | 0 .../model/NullModelNode.cpp | 0 .../model/NullModelNode.h | 0 tools/msvc/DarkRadiant.vcxproj | 7 ------ tools/msvc/DarkRadiant.vcxproj.filters | 21 ---------------- tools/msvc/DarkRadiantCore.vcxproj | 7 ++++++ tools/msvc/DarkRadiantCore.vcxproj.filters | 24 +++++++++++++++++++ 14 files changed, 35 insertions(+), 33 deletions(-) rename {radiant => radiantcore}/model/ModelFormatManager.cpp (100%) rename {radiant => radiantcore}/model/ModelFormatManager.h (100%) rename {radiant => radiantcore}/model/NullModel.cpp (100%) rename {radiant => radiantcore}/model/NullModel.h (100%) rename {radiant => radiantcore}/model/NullModelLoader.h (100%) rename {radiant => radiantcore}/model/NullModelNode.cpp (100%) rename {radiant => radiantcore}/model/NullModelNode.h (100%) diff --git a/radiant/Makefile.am b/radiant/Makefile.am index 979823bb11..4cae125422 100644 --- a/radiant/Makefile.am +++ b/radiant/Makefile.am @@ -364,10 +364,7 @@ darkradiant_SOURCES = main.cpp \ model/ModelCache.cpp \ model/ModelScalePreserver.cpp \ model/ModelExporter.cpp \ - model/ModelFormatManager.cpp \ - model/NullModel.cpp \ - model/ScaledModelExporter.cpp \ - model/NullModelNode.cpp + model/ScaledModelExporter.cpp check_PROGRAMS = facePlaneTest vfsTest shadersTest TESTS = $(check_PROGRAMS) diff --git a/radiant/model/ModelCache.cpp b/radiant/model/ModelCache.cpp index ff8607754f..c11dfbcb2b 100644 --- a/radiant/model/ModelCache.cpp +++ b/radiant/model/ModelCache.cpp @@ -13,7 +13,6 @@ #include "os/file.h" #include "module/StaticModule.h" -#include "NullModelLoader.h" #include #include "map/algorithm/Models.h" diff --git a/radiantcore/Makefile.am b/radiantcore/Makefile.am index 43a718bc3d..243a7df00f 100644 --- a/radiantcore/Makefile.am +++ b/radiantcore/Makefile.am @@ -88,6 +88,9 @@ libradiantcore_la_SOURCES = Radiant.cpp \ map/namespace/ComplexName.cpp \ map/namespace/Namespace.cpp \ map/namespace/NamespaceFactory.cpp \ + model/ModelFormatManager.cpp \ + model/NullModel.cpp \ + model/NullModelNode.cpp \ modulesystem/ModuleLoader.cpp \ modulesystem/ModuleRegistry.cpp \ rendersystem/backend/glprogram/ARBBumpProgram.cpp \ diff --git a/radiant/model/ModelFormatManager.cpp b/radiantcore/model/ModelFormatManager.cpp similarity index 100% rename from radiant/model/ModelFormatManager.cpp rename to radiantcore/model/ModelFormatManager.cpp diff --git a/radiant/model/ModelFormatManager.h b/radiantcore/model/ModelFormatManager.h similarity index 100% rename from radiant/model/ModelFormatManager.h rename to radiantcore/model/ModelFormatManager.h diff --git a/radiant/model/NullModel.cpp b/radiantcore/model/NullModel.cpp similarity index 100% rename from radiant/model/NullModel.cpp rename to radiantcore/model/NullModel.cpp diff --git a/radiant/model/NullModel.h b/radiantcore/model/NullModel.h similarity index 100% rename from radiant/model/NullModel.h rename to radiantcore/model/NullModel.h diff --git a/radiant/model/NullModelLoader.h b/radiantcore/model/NullModelLoader.h similarity index 100% rename from radiant/model/NullModelLoader.h rename to radiantcore/model/NullModelLoader.h diff --git a/radiant/model/NullModelNode.cpp b/radiantcore/model/NullModelNode.cpp similarity index 100% rename from radiant/model/NullModelNode.cpp rename to radiantcore/model/NullModelNode.cpp diff --git a/radiant/model/NullModelNode.h b/radiantcore/model/NullModelNode.h similarity index 100% rename from radiant/model/NullModelNode.h rename to radiantcore/model/NullModelNode.h diff --git a/tools/msvc/DarkRadiant.vcxproj b/tools/msvc/DarkRadiant.vcxproj index ee638778c2..4a9500d0d1 100644 --- a/tools/msvc/DarkRadiant.vcxproj +++ b/tools/msvc/DarkRadiant.vcxproj @@ -681,10 +681,7 @@ - - - @@ -1018,11 +1015,7 @@ - - - - diff --git a/tools/msvc/DarkRadiant.vcxproj.filters b/tools/msvc/DarkRadiant.vcxproj.filters index 811adcd242..69cb6d9060 100644 --- a/tools/msvc/DarkRadiant.vcxproj.filters +++ b/tools/msvc/DarkRadiant.vcxproj.filters @@ -823,15 +823,6 @@ src\model - - src\model - - - src\model - - - src\model - src\model @@ -2004,18 +1995,6 @@ src\model - - src\model - - - src\model - - - src\model - - - src\model - src\model diff --git a/tools/msvc/DarkRadiantCore.vcxproj b/tools/msvc/DarkRadiantCore.vcxproj index 3e9e775418..6231be0e8a 100644 --- a/tools/msvc/DarkRadiantCore.vcxproj +++ b/tools/msvc/DarkRadiantCore.vcxproj @@ -68,6 +68,9 @@ + + + Create Create @@ -194,6 +197,10 @@ + + + + diff --git a/tools/msvc/DarkRadiantCore.vcxproj.filters b/tools/msvc/DarkRadiantCore.vcxproj.filters index a7107c51ae..a373429a3f 100644 --- a/tools/msvc/DarkRadiantCore.vcxproj.filters +++ b/tools/msvc/DarkRadiantCore.vcxproj.filters @@ -98,6 +98,9 @@ {c631249d-5618-4429-bc52-7bf108cc13b7} + + {9e9f3eed-43d3-462c-8219-68860002cc87} + @@ -397,6 +400,15 @@ src\entity\speaker + + src\model + + + src\model + + + src\model + @@ -852,5 +864,17 @@ src\entity\speaker + + src\model + + + src\model + + + src\model + + + src\model + \ No newline at end of file