Actually focus the group instead of following it. Patch by trompetin17. Fixes #2972.

This was SVN commit r16083.
This commit is contained in:
leper 2014-12-29 20:40:37 +00:00
parent 53023b7efc
commit f337905f14

View File

@ -1568,7 +1568,11 @@ function performGroup(action, groupId)
g_Selection.addList(toSelect);
if (action == "snap" && toSelect.length)
Engine.CameraFollow(toSelect[0]);
{
var position = GetEntityState(toSelect[0]).position;
if (position)
Engine.CameraMoveTo(position.x, position.z);
}
break;
case "save":
case "breakUp":