Various fixes:
- removal of entity crash - play mode corrupt scene graph - Added dither effect on selected entity
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user