Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions com.unity.shadergraph/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
Version Updated
The version number for this package has increased due to a version update of a related graphics package.

### Fixed
- Fixed a validation error in ShaderGraph when using the SimpleNoise node both inside and outside a subgraph [1383046] (https://issuetracker.unity3d.com/issues/validation-error-is-usually-thrown-when-simple-noise-node-is-both-in-a-shadergraph-and-in-a-sub-graph)

## [12.1.2] - 2021-10-22

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion com.unity.shadergraph/Editor/Data/Util/FunctionRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ public void ProvideFunction(string name, GraphPrecision graphPrecision, Concrete
var startIndex = builder.length;
generator(builder);
var length = builder.length - startIndex;
var code = builder.ToString(startIndex, length);

// trim fixes mismatched whitespace issue when nodes come from subgraphs
var code = builder.ToString(startIndex, length).Trim();

// validate some assumptions around generics
bool isGenericName = name.Contains("$");
Expand Down