Skip to content

Commit

Permalink
fixed issue with replacing child meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
WulfMarius committed Jun 24, 2018
1 parent b6aea45 commit e76cbae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VisualStudio/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.1")]
[assembly: AssemblyFileVersion("2.1.1")]
[assembly: AssemblyVersion("2.1.2")]
[assembly: AssemblyFileVersion("2.1.2")]
4 changes: 4 additions & 0 deletions VisualStudio/src/BetterPlacing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ internal static void PreparePlacableFurniture(GameObject gameObject)
MeshFilter[] meshFilters = gameObject.GetComponentsInChildren<MeshFilter>();
foreach (MeshFilter eachMeshFilter in meshFilters)
{
if (!eachMeshFilter.name.StartsWith(templateMeshFilter.name)) {
continue;
}

eachMeshFilter.mesh = templateMeshFilter.mesh;
}

Expand Down

0 comments on commit e76cbae

Please sign in to comment.