Skip to content

Commit b29602f

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

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

14691469
this._postChangeValueCallback(true);
14701470
}

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)