mirror of
https://github.com/PorktoberRevolution/ReStocked
synced 2024-09-01 17:34:42 +00:00
Remove debug messages from module
This commit is contained in:
parent
922dd5e282
commit
1d0042de8a
Binary file not shown.
@ -114,7 +114,6 @@ namespace Restock
|
|||||||
{
|
{
|
||||||
if (length > _girderSegments)
|
if (length > _girderSegments)
|
||||||
{
|
{
|
||||||
Debug.Log("lengthening to: " + length);
|
|
||||||
for (int i = _girderSegments; i < length; i++)
|
for (int i = _girderSegments; i < length; i++)
|
||||||
{
|
{
|
||||||
var offset = Vector3.down * base.initialHeight * i;
|
var offset = Vector3.down * base.initialHeight * i;
|
||||||
@ -125,6 +124,7 @@ namespace Restock
|
|||||||
}
|
}
|
||||||
_girderNormals.AddRange(girderSegmentMesh.normals);
|
_girderNormals.AddRange(girderSegmentMesh.normals);
|
||||||
_girderUVs.AddRange(girderSegmentMesh.uv);
|
_girderUVs.AddRange(girderSegmentMesh.uv);
|
||||||
|
|
||||||
if (_girderHasTangents) _girderTangents.AddRange(girderSegmentMesh.tangents);
|
if (_girderHasTangents) _girderTangents.AddRange(girderSegmentMesh.tangents);
|
||||||
if (_girderHasColors) _girderColors.AddRange(girderSegmentMesh.colors32);
|
if (_girderHasColors) _girderColors.AddRange(girderSegmentMesh.colors32);
|
||||||
|
|
||||||
@ -137,20 +137,16 @@ namespace Restock
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.Log("shortening to: " + length);
|
|
||||||
var startIndex = length * _girderVertCount;
|
var startIndex = length * _girderVertCount;
|
||||||
var count = (_girderSegments - length) * _girderVertCount;
|
var count = (_girderSegments - length) * _girderVertCount;
|
||||||
Debug.Log("removing verts");
|
|
||||||
_girderVerts.RemoveRange(startIndex, count);
|
_girderVerts.RemoveRange(startIndex, count);
|
||||||
_girderNormals.RemoveRange(startIndex, count);
|
_girderNormals.RemoveRange(startIndex, count);
|
||||||
_girderUVs.RemoveRange(startIndex, count);
|
_girderUVs.RemoveRange(startIndex, count);
|
||||||
if (_girderHasTangents) _girderTangents.RemoveRange(startIndex, count);
|
if (_girderHasTangents) _girderTangents.RemoveRange(startIndex, count);
|
||||||
if (_girderHasColors) _girderColors.RemoveRange(startIndex, count);
|
if (_girderHasColors) _girderColors.RemoveRange(startIndex, count);
|
||||||
|
|
||||||
Debug.Log("removing tris");
|
|
||||||
_girderTris.RemoveRange(length * _girderTriCount, (_girderSegments - length) * _girderTriCount);
|
_girderTris.RemoveRange(length * _girderTriCount, (_girderSegments - length) * _girderTriCount);
|
||||||
}
|
}
|
||||||
Debug.Log("vertex count: "+ _girderVerts.Count);
|
|
||||||
|
|
||||||
girderMesh.Clear();
|
girderMesh.Clear();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user