public void Generate(IChiselGenerator generator) { if (!generator.Generate(ref brushContainer)) { brushContainer.Reset(); } CalculatePlanes(); SetDirty(); ChiselBrushContainerAssetManager.NotifyContentsModified(this); }
public bool Generate(IChiselGenerator generator) { Profiler.BeginSample("Generate"); try { if (!generator.Generate(ref brushContainer)) { Profiler.BeginSample("Reset"); brushContainer.Reset(); Profiler.EndSample(); return(false); } } finally { Profiler.EndSample(); } Profiler.BeginSample("CalculatePlanes"); CalculatePlanes(); Profiler.EndSample(); SetDirty(); Profiler.BeginSample("NotifyContentsModified"); ChiselBrushContainerAssetManager.NotifyContentsModified(this); Profiler.EndSample(); return(true); }