Skip to content

Commit

Permalink
Bring BrushDescriptor.cs in line with PT's version
Browse files Browse the repository at this point in the history
Change-Id: Ie090128ffce3de26892a8cca2be5b96eb324b575
  • Loading branch information
dubois committed Dec 4, 2017
1 parent db6c358 commit dc9d1cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion UnitySDK/Assets/TiltBrush/Scripts/BrushDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ public enum Semantic {
Unspecified,
Position,
Vector,
ZIsDistance,
XyIsUvZIsDistance,
UnitlessVector,
XyIsUv,
}

public Material Material { get { return m_Material; } }
public SerializableGuid m_Guid;
[Tooltip("A human readable name that cannot change, but is not guaranteed to be unique.")]
public string m_DurableName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static int GetUvsetSize(BrushDescriptor desc, int uvSet) {
void FixupHypercolorTexcoord(BrushDescriptor desc, Mesh mesh) {
int uvSet = 0;
var semantic = GetUvsetSemantic(desc, uvSet);
if (semantic != BrushDescriptor.Semantic.ZIsDistance ||
if (semantic != BrushDescriptor.Semantic.XyIsUvZIsDistance ||
GetUvsetSize(desc, uvSet) != 3) {
LogWarningWithContext("Not hypercolor?");
}
Expand Down

0 comments on commit dc9d1cd

Please sign in to comment.