Changing to await able create methods

issue: MatterHackers/MCCentral#4966
async Rebuild calls must be awaited in Create methods
This commit is contained in:
Lars Brubaker 2019-03-04 14:00:52 -08:00
parent 457e31ef10
commit a055192700
18 changed files with 88 additions and 86 deletions

View file

@ -54,11 +54,11 @@ namespace MatterHackers.MatterControl.DesignTools
Rebuild();
}
public static SphereObject3D Create()
public static async Task<SphereObject3D> Create()
{
var item = new SphereObject3D();
item.Rebuild();
await item.Rebuild();
return item;
}