Skip to content

Commit

Permalink
reworked new code to use configs
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Aug 2, 2020
1 parent a71ee88 commit 95d4d58
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions glTFRevitExport/GlTFExportContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public class glTFExportConfigs {

public class glTFExportContext : IExportContext
{
private Document _doc;
private bool _skipElementFlag = false;

private glTFExportConfigs _cfgs = new glTFExportConfigs();

/// <summary>
Expand All @@ -48,8 +45,9 @@ public class glTFExportContext : IExportContext
/// <summary>
/// The directory for the .bin files.
/// </summary>
private string _directory;

private string _directory;

private bool _skipElementFlag = false;

private GLTFManager manager = new GLTFManager();
private Stack<Document> documentStack = new Stack<Document>();
Expand Down Expand Up @@ -78,7 +76,7 @@ public glTFExportContext(Document doc, string filename, string directory, glTFEx
public bool Start()
{
Debug.WriteLine("Starting...");
manager.Start(_exportProperties);
manager.Start(_cfgs.ExportProperties);
return true;
}

Expand Down

0 comments on commit 95d4d58

Please sign in to comment.