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
1 change: 1 addition & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed preview camera updating the skybox material triggering GI baking (case 1314361/1314373).
- The default LookDev volume profile is now copied and referened in the Asset folder instead of the package folder.
- Fixed SSS on console platforms.
- Assets going through the migration system are now dirtied.

### Changed
- Changed Window/Render Pipeline/HD Render Pipeline Wizard to Window/Rendering/HDRP Wizard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,16 @@ public bool Migrate(TTarget target)
}

#if UNITY_EDITOR
// Special in prefab case
if (target is UnityEngine.Object && UnityEditor.PrefabUtility.IsPartOfNonAssetPrefabInstance(target as UnityEngine.Object))
UnityEngine.Object targetObject = target as UnityEngine.Object;
if (targetObject != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this should never happens but yes better check this. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

same, the code was already checking for it and i was on the safe side :)

{
UnityEditor.PrefabUtility.RecordPrefabInstancePropertyModifications(target as UnityEngine.Object);
// Special in prefab case
if (UnityEditor.PrefabUtility.IsPartOfNonAssetPrefabInstance(targetObject))
{
UnityEditor.PrefabUtility.RecordPrefabInstancePropertyModifications(targetObject);
}

UnityEditor.EditorUtility.SetDirty(targetObject);
}
#endif
return true;
Expand Down