Improving Plus operation to be more efficient when building dynamic content
Added a rebuild to ImageObject3D
This commit is contained in:
parent
a32451635c
commit
5786db9417
3 changed files with 38 additions and 12 deletions
|
|
@ -30,6 +30,7 @@ either expressed or implied, of the FreeBSD Project.
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MatterHackers.Agg;
|
||||
using MatterHackers.Agg.Image;
|
||||
using MatterHackers.Agg.ImageProcessing;
|
||||
|
|
@ -172,6 +173,13 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
|
||||
public double ScaleMmPerPixels { get; private set; }
|
||||
|
||||
public override Task Rebuild()
|
||||
{
|
||||
InitMesh();
|
||||
|
||||
return base.Rebuild();
|
||||
}
|
||||
|
||||
private Mesh InitMesh()
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(this.AssetPath))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue