Moving to single transform matrix for MeshGroups

This commit is contained in:
Lars Brubaker 2016-02-26 14:19:52 -08:00
parent 384fc25559
commit abd480d9b9
11 changed files with 195 additions and 208 deletions

View file

@ -66,12 +66,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
return;
}
// offset them to the centor of the bed
// offset them to the center of the bed
for (int i = 0; i < asyncMeshGroups.Count; i++)
{
ScaleRotateTranslate translate = asyncMeshGroupTransforms[i];
translate.translation *= Matrix4X4.CreateTranslation(new Vector3(ActiveSliceSettings.Instance.BedCenter, 0));
asyncMeshGroupTransforms[i] = translate;
asyncMeshGroupTransforms[i] *= Matrix4X4.CreateTranslation(new Vector3(ActiveSliceSettings.Instance.BedCenter, 0));
}
UnlockEditControls();