Skip to content

Commit

Permalink
Added missing bus disconnects
Browse files Browse the repository at this point in the history
  • Loading branch information
Fireronin committed Aug 7, 2024
1 parent 787ba64 commit 65ea7a6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ namespace Pointcloud
{
AZ_Printf("PointcloudFeatureProcessor", "PointcloudFeatureProcessor Deactivated");
AZ::Data::AssetBus::Handler::BusDisconnect(m_shader->GetAssetId());
for(const auto& [assetId, _] : m_pointcloudAssets)
{
AZ::Data::AssetBus::Handler::BusDisconnect(assetId);
}
AZ::RPI::ViewportContextIdNotificationBus::Handler::BusDisconnect();
}

Expand Down Expand Up @@ -327,6 +331,8 @@ namespace Pointcloud
{
if (it->second.first == handle)
{
AZ::Data::AssetBus::Handler::BusDisconnect(it->first);
AZ::Data::AssetBus::Handler::BusDisconnect(it->first);
m_pointcloudAssets.erase(it);
break;
}
Expand Down

0 comments on commit 65ea7a6

Please sign in to comment.