Skip to content

Commit bb2e5f1

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.3] [ShaderGraph] Fix swizzle mask regression plus some other minor issues
1 parent c97cfc9 commit bb2e5f1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Packages/com.unity.shadergraph/Editor/Data/Nodes/Channel/SwizzleNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public sealed override void UpdateNodeAfterDeserialization()
102102

103103
int outputLength = _maskInput.Length;
104104
int inputLength = 1;
105-
foreach(var c in _maskInput)
105+
foreach(var c in _maskInput.ToLowerInvariant())
106106
{
107107
switch (c)
108108
{

Packages/com.unity.shadergraph/Editor/Drawing/Inspector/PropertyDrawers/ShaderInputPropertyDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1957,7 +1957,7 @@ void KeywordAddCallbacks()
19571957
else if (int.TryParse(displayName, out int intVal) || float.TryParse(displayName, out float floatVal))
19581958
Debug.LogWarning("Invalid display name. Display names cannot be valid integer or floating point numbers.");
19591959
else
1960-
keyword.entries[index] = new KeywordEntry(GetFirstUnusedKeywordID(), displayName, referenceName);
1960+
keyword.entries[index] = new KeywordEntry(entry.id, displayName, referenceName);
19611961

19621962
this._postChangeValueCallback(true);
19631963
}

Packages/com.unity.shadergraph/Editor/Resources/Styles/Controls/ChannelEnumControlView.uss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ChannelEnumControlView > Label {
1414
max-width: 100px;
1515
width: 50px;
1616
margin-left: 8px;
17-
margin-right: 8px;
17+
margin-right: 12px;
1818
-unity-text-align : middle-left;
1919
flex-grow: 1;
2020
}

0 commit comments

Comments
 (0)