Skip to content
1 change: 1 addition & 0 deletions com.unity.visualeffectgraph/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Unexpected compilation error while modifying ShaderGraph exposed properties [Case 1361601](https://issuetracker.unity3d.com/product/unity/issues/guid/1361601/)
- Compilation issue while using new SG integration and SampleTexture/SampleMesh [Case 1359391](https://issuetracker.unity3d.com/product/unity/issues/guid/1359391/)
- Prevent VFX Graph compilation each time a property's min/max value is changed
- Prevent vfx re-compilation in some cases when a value has not changed

## [12.0.0] - 2021-01-11
### Added
Expand Down
2 changes: 1 addition & 1 deletion com.unity.visualeffectgraph/Editor/Models/VFXModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ private bool SetSettingValueAndReturnIfChanged(string name, object value)
}

var currentValue = setting.value;
if (currentValue != value)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variables are of type object which leads to reference comparison instead of value comparison.

if (!currentValue?.Equals(value) ?? value != null)
{
setting.field.SetValue(setting.instance, value);
OnSettingModified(setting);
Expand Down