Fix not using hardcoded order for showing Actor main properties in editor

This commit is contained in:
Wojtek Figat
2021-01-13 15:35:53 +01:00
parent af692605ab
commit b2a2652b56
5 changed files with 26 additions and 62 deletions

View File

@@ -597,6 +597,11 @@ void Actor::SetDirection(const Vector3& value)
SetOrientation(orientation);
}
void Actor::ResetLocalTransform()
{
SetLocalTransform(Transform::Identity);
}
void Actor::SetLocalTransform(const Transform& value)
{
CHECK(!value.IsNanOrInfinity());
@@ -1258,6 +1263,11 @@ Script* Actor::GetScriptByPrefabObjectId(const Guid& prefabObjectId) const
return result;
}
bool Actor::IsPrefabRoot() const
{
return _isPrefabRoot != 0;
}
Actor* Actor::FindActor(const StringView& name) const
{
Actor* result = nullptr;