editor: instance placer fix

This commit is contained in:
Turanszki Janos
2020-03-12 22:20:02 +00:00
parent 63646f5c1f
commit abca7dbfeb
+2 -1
View File
@@ -1412,7 +1412,8 @@ void EditorComponent::Update(float dt)
if (clipboard.IsOpen() && hovered.subsetIndex >= 0 && wiInput::Down(wiInput::KEYBOARD_BUTTON_LSHIFT) && wiInput::Press(wiInput::MOUSE_BUTTON_LEFT))
{
TransformComponent parent_transform;
parent_transform.world = hovered.orientation;
parent_transform.MatrixTransform(hovered.orientation);
parent_transform.UpdateTransform();
clipboard.SetReadModeAndResetPos(true);
size_t count;