public ChiselModel GetOrCreateDefaultModel() { if (!DefaultModel) { DefaultModel = null; if (Scene.IsValid() && Scene.isLoaded) { DefaultModel = ChiselGeneratedComponentManager.CreateDefaultModel(this); } } return(DefaultModel); }
public ChiselModel GetOrCreateDefaultModel(out bool created) { created = false; if (!DefaultModel) { DefaultModel = null; if (Scene.IsValid() && Scene.isLoaded) { DefaultModel = ChiselGeneratedComponentManager.CreateDefaultModel(this); created = true; } } return(DefaultModel); }