Correctly position sceneItem in z

This commit is contained in:
John Lewin 2017-07-19 16:27:43 -07:00
parent e429f168e2
commit 3d0f541db0
2 changed files with 3 additions and 3 deletions

View file

@ -101,7 +101,7 @@ namespace MatterHackers.MatterControl
sceneItem.Mesh = loadedItem.Mesh;
sceneItem.Children = loadedItem.Children;
sceneItem.Matrix *= Matrix4X4.CreateTranslation(-aabb.Center.x, -aabb.Center.y, -aabb.minXYZ.z);
sceneItem.Matrix *= Matrix4X4.CreateTranslation(-aabb.Center.x, -aabb.Center.y, -sceneItem.GetAxisAlignedBoundingBox(Matrix4X4.Identity).minXYZ.z);
// Notification should force invalidate and redraw
progressReporter?.Invoke(1, "");
@ -110,7 +110,7 @@ namespace MatterHackers.MatterControl
};
}
// TODO: Trying out an 8 MB mesh max for thumnbnail generation
// TODO: Trying out an 8 MB mesh max for thumbnail generation
long MaxFileSizeForTracing = 8 * 1000 * 1000;
public async Task GetThumbnail(ILibraryItem item, int width, int height, Action<ImageBuffer> imageCallback)