From 3cfde671834200447f7172fb21c96e582057be36 Mon Sep 17 00:00:00 2001 From: Cal Stephens Date: Tue, 1 Feb 2022 13:39:10 -0800 Subject: [PATCH] Fixed GroupNode empty transform issue (#1372, #1510) Default empty transform should match `ShapeTransform.swift`default empty state Co-authored-by: sroik --- .../NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Private/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift b/Sources/Private/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift index 741ba2570d..2009dc3994 100644 --- a/Sources/Private/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift +++ b/Sources/Private/NodeRenderSystem/Nodes/RenderContainers/GroupNode.swift @@ -28,9 +28,9 @@ final class GroupNodeProperties: NodePropertyMap, KeypathSearchable { /// Transform node missing. Default to empty transform. anchor = NodeProperty(provider: SingleValueProvider(Vector3D(x: CGFloat(0), y: CGFloat(0), z: CGFloat(0)))) position = NodeProperty(provider: SingleValueProvider(Vector3D(x: CGFloat(0), y: CGFloat(0), z: CGFloat(0)))) - scale = NodeProperty(provider: SingleValueProvider(Vector3D(x: CGFloat(1), y: CGFloat(1), z: CGFloat(1)))) + scale = NodeProperty(provider: SingleValueProvider(Vector3D(x: CGFloat(100), y: CGFloat(100), z: CGFloat(100)))) rotation = NodeProperty(provider: SingleValueProvider(Vector1D(0))) - opacity = NodeProperty(provider: SingleValueProvider(Vector1D(1))) + opacity = NodeProperty(provider: SingleValueProvider(Vector1D(100))) skew = NodeProperty(provider: SingleValueProvider(Vector1D(0))) skewAxis = NodeProperty(provider: SingleValueProvider(Vector1D(0))) }