MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / finishScene

Method finishScene

radiantcore/map/algorithm/MapExporter.cpp:278–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278void 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
299void MapExporter::recalculateBrushWindings()
300{

Callers

nothing calls this directly

Calls 2

sendMessageMethod · 0.80

Tested by

no test coverage detected