Add Node::SetScale(Vector2) to prevent a bug
This commit is contained in:
@@ -530,6 +530,12 @@ namespace Nz
|
||||
InvalidateNode();
|
||||
}
|
||||
|
||||
void Node::SetScale(const Vector2f& scale, CoordSys coordSys)
|
||||
{
|
||||
// Prevent Z scale at zero (can happen when using SetScale with a Vec2)
|
||||
SetScale(scale.x, scale.y, 1.f, coordSys);
|
||||
}
|
||||
|
||||
void Node::SetScale(const Vector3f& scale, CoordSys coordSys)
|
||||
{
|
||||
switch (coordSys)
|
||||
|
||||
Reference in New Issue
Block a user