Skip to content

Commit 35723ee

Browse files
PaulDemeulenaerejulienf-unity
authored andcommitted
Fix Sample installation in URP #122
1 parent c17d31d commit 35723ee

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3131
- Fix [Case 1268354](https://fogbugz.unity3d.com/f/cases/1268354/)
3232
- Forbid creation of context in VisualEffectSubgraphBlock through edge dropping. No context should be allowed.
3333
- Fix [Case 1281861](https://issuetracker.unity3d.com/product/unity/issues/guid/1281861/)
34+
- Unexpected exception while installing samples inside an URP project [Case 1280065](https://issuetracker.unity3d.com/product/unity/issues/guid/1280065/)
3435

3536
## [8.2.0] - 2020-07-08
3637

com.unity.visualeffectgraph/Editor/Models/Contexts/VFXSubgraphContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ public void RecreateCopy()
190190
var graph = resource.GetOrCreateGraph();
191191
HashSet<ScriptableObject> dependencies = new HashSet<ScriptableObject>();
192192
graph.CollectDependencies(dependencies);
193+
dependencies.RemoveWhere(o => o == null); //script is missing should be removed from the list before copy.
193194

194195
var duplicated = VFXMemorySerializer.DuplicateObjects(dependencies.ToArray());
195196
m_SubChildren = duplicated.OfType<VFXModel>().Where(t => t is VFXContext || t is VFXOperator || t is VFXParameter).ToArray();

0 commit comments

Comments
 (0)