Various fixes:

- removal of entity crash
- play mode corrupt scene graph
- Added dither effect on selected entity
This commit is contained in:
antopilo
2021-08-30 21:46:19 -04:00
parent b27438c3e3
commit fb9751641f
11 changed files with 95 additions and 36 deletions

View File

@@ -54,7 +54,7 @@ namespace Nuake {
Vector3 globalScale = Vector3();
if (parent.HasParent)
{
ParentComponent& parentComponent = currentParent.GetComponent<ParentComponent>();
ParentComponent parentComponent = currentParent.GetComponent<ParentComponent>();
while (parentComponent.HasParent)
{
TransformComponent& transformComponent = parentComponent.Parent.GetComponent<TransformComponent>();
@@ -68,6 +68,7 @@ namespace Nuake {
transform.GlobalTranslation = globalPosition + transform.Translation;
transform.GlobalRotation = globalRotation + transform.Rotation;
transform.GlobalScale = globalScale * transform.Scale;
}
else
{