| 276 | } |
| 277 | |
| 278 | void MapExporter::finishScene() |
| 279 | { |
| 280 | // Emit the post-export event to give subscribers a chance to cleanup the scene |
| 281 | GlobalMapResourceManager().signal_onResourceExported().emit(_root); |
| 282 | |
| 283 | // stgatilov: Hack to disable recalculateBrushWindings for hot-reload diffs |
| 284 | if (registry::getValue<std::string>("MapExporter_IgnoreBrushes") != "yes") |
| 285 | { |
| 286 | scene::addOriginToChildPrimitives(_root); |
| 287 | |
| 288 | // Re-evaluate all brushes, to update the Winding calculations |
| 289 | recalculateBrushWindings(); |
| 290 | } |
| 291 | |
| 292 | if (_sendProgressMessages) |
| 293 | { |
| 294 | FileOperation finishedMsg(FileOperation::Type::Export, FileOperation::Finished, _totalNodeCount > 0); |
| 295 | GlobalRadiantCore().getMessageBus().sendMessage(finishedMsg); |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | void MapExporter::recalculateBrushWindings() |
| 300 | { |
nothing calls this directly
no test coverage detected