| 98 | } |
| 99 | |
| 100 | void Builder::Build(Scene* scene, float timeoutMs) |
| 101 | { |
| 102 | if (scene == nullptr) |
| 103 | return; |
| 104 | |
| 105 | #if USE_EDITOR |
| 106 | // Disable building during play mode |
| 107 | if (Editor::IsPlayMode) |
| 108 | return; |
| 109 | #endif |
| 110 | |
| 111 | // Register building |
| 112 | if (!ScenesToRebuild.Contains(scene)) |
| 113 | { |
| 114 | ScenesToRebuild.Add(scene); |
| 115 | } |
| 116 | scene->CSGData.BuildTime = DateTime::NowUTC() + TimeSpan::FromMilliseconds(timeoutMs); |
| 117 | } |
| 118 | |
| 119 | namespace CSG |
| 120 | { |
no test coverage detected