Skip to content

Commit aa47226

Browse files
committed
fix: random rotation in BlockPopupWindow when we set up block(s)
1 parent aa9bff0 commit aa47226

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/Code/LevelEditor/BlockPopupWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ private void DrawBlockList()
139139

140140
GUILayout.FlexibleSpace();
141141
if (GUILayout.Button("Set", GUILayout.Width(60)))
142+
{
143+
_onRotationSelected?.Invoke(0);
142144
_onBlockSelected?.Invoke(block);
145+
}
143146

144147
GUILayout.EndHorizontal();
145148
}

0 commit comments

Comments
 (0)