예제 #1
0
 public ChiselModel GetOrCreateDefaultModel()
 {
     if (!DefaultModel)
     {
         DefaultModel = null;
         if (Scene.IsValid() &&
             Scene.isLoaded)
         {
             DefaultModel = ChiselGeneratedComponentManager.CreateDefaultModel(this);
         }
     }
     return(DefaultModel);
 }
예제 #2
0
 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);
 }