Skip to content

Commit

Permalink
remove: obsolete MaterialHolder::materialIID (unity3d-jp#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
sindharta-tanuwijaya authored Dec 21, 2022
1 parent a6ed850 commit 1d024b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 1 addition & 7 deletions Runtime/Scripts/BaseMeshSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,7 @@ public void OnAfterDeserialize() {

if (m_baseMeshSyncVersion < (int)BaseMeshSyncVersion.INITIAL_0_10_0) {
#pragma warning disable 612
foreach (MaterialHolder m in m_materialList) {
if (m.materialIID != 0)
continue;

m.ShouldApplyMaterialData = false;
}


MeshSyncPlayerConfig config = GetConfigV();
config?.UsePhysicalCameraParams(m_usePhysicalCameraParams);
#pragma warning restore 612
Expand Down
3 changes: 0 additions & 3 deletions Runtime/Scripts/PlayerData/MaterialHolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ internal class MaterialHolder {
public Color color = Color.white;
public Material material;

//[TODO-sin: 2021-11-4] Remove in 2022.
[Obsolete] public int materialIID;

public bool ShouldApplyMaterialData = true;
}
} //end namespace

0 comments on commit 1d024b0

Please sign in to comment.