Elevate child nodes +1 over the parent

This commit is contained in:
peterkogo
2025-06-24 10:59:23 +02:00
parent 04ff28dddc
commit cf5597b845

View File

@@ -232,7 +232,7 @@ function calculateChildXYZ<NodeType extends NodeBase>(
return {
x: absolutePosition.x,
y: absolutePosition.y,
z: parentZ > childZ ? parentZ : childZ,
z: parentZ >= childZ ? parentZ + 1 : childZ,
};
}