Skip to content

Commit

Permalink
Release 45.
Browse files Browse the repository at this point in the history
  • Loading branch information
R-T-B committed Nov 1, 2020
1 parent c45a4a7 commit 3b82f64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Kopernicus/Components/ModularScatter/ModularScatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,11 @@ private void CreateScatterMeshes(PQSMod_LandClassScatterQuad quad)
scatterObject.transform.localPosition = scatterPos;
scatterObject.transform.localRotation = scatterRot;
scatterObject.transform.localScale = Vector3.one * scatterScale;
scatterObject.AddComponent<KopernicusSurfaceObject>().objectName = quad.scatter.scatterName;
scatterObject.AddOrGetComponent<KopernicusSurfaceObject>().objectName = quad.scatter.scatterName;
scatterObject.AddOrGetComponent<ScatterDistanceCuller>();
MeshFilter filter = scatterObject.AddComponent<MeshFilter>();
MeshFilter filter = scatterObject.AddOrGetComponent<MeshFilter>();
filter.sharedMesh = meshes.Count > 0 ? meshes[Random.Range(0, meshes.Count)] : baseMesh;
MeshRenderer renderer = scatterObject.AddComponent<MeshRenderer>();
MeshRenderer renderer = scatterObject.AddOrGetComponent<MeshRenderer>();
renderer.sharedMaterial = quad.scatter.material;
renderer.shadowCastingMode = quad.scatter.castShadows ? ShadowCastingMode.On : ShadowCastingMode.Off;
renderer.receiveShadows = quad.scatter.recieveShadows;
Expand Down
2 changes: 1 addition & 1 deletion src/Kopernicus/Constants/CompatibilityChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class CompatibilityChecker : MonoBehaviour
internal const Int32 VERSION_MAJOR = 1;
internal const Int32 VERSION_MINOR = 10;
internal const Int32 REVISION = 1;
internal const Int32 KOPERNICUS = 44;
internal const Int32 KOPERNICUS = 45;

public static Boolean IsCompatible()
{
Expand Down

0 comments on commit 3b82f64

Please sign in to comment.