Search Issue Tracker

Fixed in 2019.3.X

Votes

0

Found in

2018.3.0f1

2018.3.0f2

Issue ID

1108375

Regression

Yes

[Improved prefabs] "Assertion failed" exception thrown when a prefab is created of deleted instance with a child override

Scene Management

-

"Assertion failed on expression" exception thrown on creating a prefab of GameObject with child override whose prefab instance is missing

Steps to reproduce:
1) Create new project
2) Create an empty GameObject prefab A
3) Add an empty child GameObject to A > Apply to prefab A
4) Delete prefab A from project
5) Press hotkey "Ctrl+Z" and hierarchy shows override option for child gameObject.
6) Drag gameObject A to hierarchy and in dialogue box, click button "original prefab".

Actual result: "Assertion failed on expression" exception is thrown

Expected result: No exception is thrown.

Occurring with: 2018.3.0f2, 2018.3.0f1

Working fine in: 2019.1.0a11, 2018.3.0b12

Environment: Windows and Mac

Stack trace:
Assertion failed on expression: 'originalRootGameObjectPrefab != NULL'
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag()
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.