Fixed entities not being deselected when entering game mode in editor.
added protections around physx AZ::Events handlers that are connected/disconnected on selection events. jira: LYN-2998
This commit is contained in:
+4
-1
@@ -149,7 +149,10 @@ namespace PhysX
|
||||
{
|
||||
if (auto* physXSystem = GetPhysXSystem())
|
||||
{
|
||||
physXSystem->RegisterSystemConfigurationChangedEvent(m_physXConfigChangedHandler);
|
||||
if (!m_physXConfigChangedHandler.IsConnected())
|
||||
{
|
||||
physXSystem->RegisterSystemConfigurationChangedEvent(m_physXConfigChangedHandler);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user