Facepunch / sbox-issues

180 stars 12 forks source link

Exception when adding a component to a game object #7517

Closed badandbest closed 3 days ago

badandbest commented 5 days ago

Describe the bug

Every time I add a component to a game object I get this assert.

OnAwake on SkinnedModelRenderer on (Object) failed from Create: Assert: AreEqual Calling awake on SkinnedModelRenderer on (Object) but active scene is GameObject:Scene, not GameObject:minimal
System.Exception: Assert: AreEqual Calling awake on SkinnedModelRenderer on (Object) but active scene is GameObject:Scene, not GameObject:minimal
   at Sandbox.Diagnostics.Assert.AreEqual[T](T a, T b, String message) in C:\build\_work\sbox\sbox\engine\Sandbox.System\Assert.cs:line 70
   at Sandbox.Component.InternalOnAwake() in C:\build\_work\sbox\sbox\engine\Sandbox.Game\Scene\Components\Component.cs:line 137
   at Sandbox.CallbackBatch.Group.Execute(CallbackBatch parent) in C:\build\_work\sbox\sbox\engine\Sandbox.Game\Scene\GameObject\CallbackBatch.cs:line 45

To Reproduce

project.zip

Expected behavior

No error when adding components.

Media/Files

https://github.com/user-attachments/assets/f0c5fcdd-89f8-44bb-a2f9-aab3477f00cd

Additional context

I've verified my files.

badandbest commented 3 days ago

I completely reinstalled the game and that seems to have fixed it.

Metapyziks commented 3 days ago

I'm getting this too actually.