Moving to single transform matrix for MeshGroups
This commit is contained in:
parent
384fc25559
commit
abd480d9b9
11 changed files with 195 additions and 208 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue