Changing to await able create methods
issue: MatterHackers/MCCentral#4966 async Rebuild calls must be awaited in Create methods
This commit is contained in:
parent
457e31ef10
commit
a055192700
18 changed files with 88 additions and 86 deletions
|
|
@ -43,11 +43,11 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
Color = Operations.Object3DExtensions.PrimitiveColors["Wedge"];
|
||||
}
|
||||
|
||||
public static WedgeObject3D Create()
|
||||
public static async Task<WedgeObject3D> Create()
|
||||
{
|
||||
var item = new WedgeObject3D();
|
||||
|
||||
item.Rebuild();
|
||||
await item.Rebuild();
|
||||
return item;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue