Bug - association update (#5932)

* Fixed crash when typing asset name and clicking browse (#5495)

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>

* Fixed issue where associated control disappears after clicking Save

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>

Co-authored-by: AMZN-AlexOteiza <82234181+AMZN-AlexOteiza@users.noreply.github.com>
Co-authored-by: Tobias Alexander Franke <tobias.alexander.franke@huawei.com>
This commit is contained in:
tjmgd
2021-12-02 18:55:05 +00:00
committed by GitHub
parent 11357fbf9f
commit ba9ae77023
@@ -322,6 +322,10 @@ namespace AudioControls
connection->m_value = value;
return connection;
}
case EACEControlType::eACET_ENVIRONMENT:
{
return AZStd::make_shared<IAudioConnection>(control->GetId());
}
}
}
else
@@ -575,7 +579,7 @@ namespace AudioControls
case eACET_SWITCH_STATE:
return (eWCT_WWISE_SWITCH | eWCT_WWISE_GAME_STATE | eWCT_WWISE_RTPC);
case eACET_ENVIRONMENT:
return (eWCT_WWISE_AUX_BUS | eWCT_WWISE_SWITCH | eWCT_WWISE_GAME_STATE | eWCT_WWISE_RTPC);
return (eWCT_WWISE_AUX_BUS | eWCT_WWISE_RTPC);
case eACET_PRELOAD:
return eWCT_WWISE_SOUND_BANK;
}