fix void character collision when layer is not specified
This commit is contained in:
@@ -5401,6 +5401,13 @@ namespace wi::scene
|
||||
LayerComponent* layercomponent = layers.GetComponent(entity);
|
||||
if (layercomponent != nullptr)
|
||||
{
|
||||
if (layercomponent->GetLayerMask() == ~0u)
|
||||
{
|
||||
// Note: character cannot occupy all layers because then it will collide with itself
|
||||
// In case when all layers are set (for example when user forgot to specify)
|
||||
// then only the first layer will be used instead
|
||||
layercomponent->layerMask = 1;
|
||||
}
|
||||
layer = layercomponent->GetLayerMask();
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace wi::version
|
||||
// minor features, major updates, breaking compatibility changes
|
||||
const int minor = 71;
|
||||
// minor bug fixes, alterations, refactors, updates
|
||||
const int revision = 719;
|
||||
const int revision = 720;
|
||||
|
||||
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user