Added SceneImportOptions arg for processors.
MODIFY
package/com.unity.formats.usd/Runtime/Scripts/IO/ImportProcessor/CombineMeshes.cs
package/com.unity.formats.usd/Runtime/Scripts/IO/ImportProcessor/CombineMeshes.cs
@@ -11,7 +11,7 @@ namespace Unity.Formats.USD {
const int VERTEX_LIMIT = 65534;
public bool enforceU16VertexLimit;
- public void PostProcessGeometry(PrimMap primMap)
+ public void PostProcessGeometry(PrimMap primMap, SceneImportOptions sceneImportOptions)
{
InitRegex();
@@ -77,7 +77,7 @@ namespace Unity.Formats.USD {
}
//build new meshes
- bool mergeSubMeshes = true; //options.materialAssign == Options.EMaterialAssign.DefaultOnly;
+ bool mergeSubMeshes = true;
foreach (List<CombineInstance> subcis in listcis)
{

MODIFY
package/com.unity.formats.usd/Runtime/Scripts/IO/ImportProcessor/SetHideFlags.cs
package/com.unity.formats.usd/Runtime/Scripts/IO/ImportProcessor/SetHideFlags.cs
@@ -10,7 +10,7 @@ namespace Unity.Formats.USD
public class SetHideFlags : RegexImportProcessor, IImportPostProcessHierarchy
{
public HideFlags hideFlagsSettings = HideFlags.DontSave;
- public void PostProcessHierarchy(PrimMap primMap)
+ public void PostProcessHierarchy(PrimMap primMap, SceneImportOptions sceneImportOptions)
{
InitRegex();

MODIFY
package/com.unity.formats.usd/Runtime/Scripts/IO/Scene/SceneImporter.cs
package/com.unity.formats.usd/Runtime/Scripts/IO/Scene/SceneImporter.cs
@@ -324,7 +324,7 @@ namespace Unity.Formats.USD {
Profiler.BeginSample("USD: PostProcessHierarchy");
foreach( var processor in root.GetComponents<IImportPostProcessHierarchy>())
{
- processor.PostProcessHierarchy(primMap);
+ processor.PostProcessHierarchy(primMap, importOptions);
}
Profiler.EndSample();
@@ -916,7 +916,7 @@ namespace Unity.Formats.USD {
Profiler.BeginSample("USD: PostProcessGeometry");
foreach( var processor in root.GetComponents<IImportPostProcessGeometry>())
{
- processor.PostProcessGeometry(primMap);
+ processor.PostProcessGeometry(primMap, importOptions);
}
Profiler.EndSample();
}

Added SceneImportOptions arg for processors.