Skip to content

Commit 55eaae6

Browse files
authored
Merge pull request #378 from Unity-Technologies/bugfix/1322032-create-shadowmesh-problem
Fixing 'Gen Shadow Obj' tool from ProBuilder window
2 parents 6a3bbeb + eb27c6c commit 55eaae6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Bug Fixes
1111

12+
- [case: 1322032] Fixing wrong ProBuilderMesh colors on domain reload when null.
1213
- [case: 1322150] Fixing torus and sphere UV generation when creating New Shape.
1314
- [case: 1320936] Fixing 'ProBuilderize' action creating empty submeshes.
1415

Runtime/Core/ProBuilderMesh.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ public IList<Color> colors
662662

663663
set
664664
{
665-
if (value == null)
665+
if (value == null || value.Count() == 0)
666666
m_Colors = null;
667667
else if (value.Count() != vertexCount)
668668
throw new ArgumentOutOfRangeException("value", "Array length must match vertex count.");

0 commit comments

Comments
 (0)