Limit the max number to 1 when adding white box component or white box

collider component.

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>
This commit is contained in:
T.J. McGrath-Daly
2021-11-16 14:24:03 +08:00
parent bce5e36b53
commit bbbe28208d
2 changed files with 2 additions and 0 deletions
@@ -73,6 +73,7 @@ namespace WhiteBox
void EditorWhiteBoxColliderComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
{
incompatible.push_back(AZ_CRC_CE("NonUniformScaleService"));
incompatible.push_back(AZ_CRC_CE("WhiteBoxColliderService"));
}
void EditorWhiteBoxColliderComponent::Activate()
@@ -265,6 +265,7 @@ namespace WhiteBox
{
incompatible.push_back(AZ_CRC_CE("NonUniformScaleService"));
incompatible.push_back(AZ_CRC_CE("MeshService"));
incompatible.push_back(AZ_CRC_CE("WhiteBoxService"));
}
EditorWhiteBoxComponent::EditorWhiteBoxComponent() = default;