Skip to content

Commit

Permalink
Fix crash selecting Prefab instance after deleting the first Prefab i…
Browse files Browse the repository at this point in the history
…nstance because the Prefab scene keept an unnecessary Ref to the PrefabResource
  • Loading branch information
Benualdo committed Oct 1, 2024
1 parent 0306c90 commit c0bb375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/Resource/BaseScene/Prefab/PrefabResource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace vg::engine
PrefabScene * prefabScene = VG_SAFE_STATIC_CAST(PrefabScene, factory->CreateObject("PrefabScene"));
if (nullptr != prefabScene)
{
prefabScene->SetParent(this);
prefabScene->SetParent(nullptr/* this*/);
prefabScene->SetName(io::getFileName(_path));

if (factory->LoadFromXML(prefabScene, _path))
Expand Down

0 comments on commit c0bb375

Please sign in to comment.