coderespawn / prefabricator-ue4

Prefabricator - Prefab plugin for Unreal Engine 4 https://prefabricator.dev
MIT License
317 stars 76 forks source link

Prefabricator is totally broken #14

Closed dkoding closed 5 years ago

dkoding commented 5 years ago

After creating prefabs and prefab collections, after restarting editor every prefab collection is broken. When I drag new prefabs (nested prefab collections) into the editor window the prefabs are completely empty. Existing prefabs already in the level won't randomize anymore.

Try this:

In PrefabricatorAsset.cpp, line 99:

        if (PrefabAssetPtr.IsNull()) {
            PrefabAssetPtr = Prefabs.Last().PrefabAsset;
        }
    }
    if (!PrefabAssetPtr.IsNull()) {
        return PrefabAssetPtr.LoadSynchronous();
    }
    return nullptr;
coderespawn commented 5 years ago

@dkoding Thank you for the bug report. This has been fixed in the latest release