editor: transform tool fix

This commit is contained in:
Turánszki János
2022-07-13 15:46:15 +02:00
parent 778c0e5af7
commit edbbbe7e61
+5
View File
@@ -1057,6 +1057,11 @@ void Translator::PreTranslate()
{
Scene& scene = wi::scene::GetScene();
if (!dragging)
{
transform.ClearTransform();
}
// Find the center of all the entities that are selected:
XMVECTOR centerV = XMVectorSet(0, 0, 0, 0);
float count = 0;