Hey!
I have a problem when I load a map in the editor,it crashes the editor at: (SceneComponent.cpp line 842)
#if WITH_EDITORONLY_DATA
// If we are in the middle of a transaction it isn't entirely unexpected that an AttachParent/AttachChildren pairing is wrong
if (!ensure(GIsTransacting))
#endif
It looks like it is crashing when it tries to clear the old map and load the new one.
I think that the problem comes from a few AttachTo that I make:
AAICharacter::AAICharacter(const FObjectInitializer &ObjectInitializer)
{
//Initialize components
mainRoot = ObjectInitializer.CreateDefaultSubobject<USceneComponent>(this ,TEXT("MainRoot"));
weaponHolder = ObjectInitializer.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("WeaponHolder"));
mainWeapon = ObjectInitializer.CreateDefaultSubobject<UWeapon>(this,TEXT("MainWeapon"));
mainWeapon->AttachTo(weaponHolder);
weaponHolder->AttachTo(mainRoot);
mainRoot->AttachTo(RootComponent);
}
What could be the issue?
Im using Unreal 4.11.2 and I´m launching the project from visual studio.
.