|
|
@@ -115,6 +115,7 @@ bool emissiveAO_ = false;
|
|
|
bool noOverwriteMaterial_ = false;
|
|
|
bool noOverwriteTexture_ = false;
|
|
|
bool noOverwriteNewerTexture_ = false;
|
|
|
+bool noExportTwice4IdenticalMeshes = true;
|
|
|
Vector<String> nonSkinningBoneIncludes_;
|
|
|
Vector<String> nonSkinningBoneExcludes_;
|
|
|
|
|
|
@@ -233,6 +234,7 @@ void Run(const Vector<String>& arguments)
|
|
|
"-cm Check and do not overwrite if material exists\n"
|
|
|
"-ct Check and do not overwrite if texture exists\n"
|
|
|
"-ctn Check and do not overwrite if texture has newer timestamp\n"
|
|
|
+ "-full Export all meshes even if they are identical with each other (scene mode only)\n"
|
|
|
);
|
|
|
}
|
|
|
|
|
|
@@ -359,6 +361,8 @@ void Run(const Vector<String>& arguments)
|
|
|
noOverwriteTexture_ = true;
|
|
|
else if (argument == "ctn")
|
|
|
noOverwriteNewerTexture_ = true;
|
|
|
+ else if (argument == "full")
|
|
|
+ noExportTwice4IdenticalMeshes = false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1185,6 +1189,7 @@ void CollectSceneModels(OutScene& scene, aiNode* node)
|
|
|
|
|
|
// Check if a model with identical mesh indices already exists. If yes, do not export twice
|
|
|
bool unique = true;
|
|
|
+ if (noExportTwice4IdenticalMeshes)
|
|
|
for (unsigned i = 0; i < scene.models_.Size(); ++i)
|
|
|
{
|
|
|
if (scene.models_[i].meshIndices_ == model.meshIndices_)
|