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

Function prepareNamesForImport

radiantcore/map/algorithm/Import.cpp:259–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void prepareNamesForImport(const scene::IMapRootNodePtr& targetRoot, const scene::INodePtr& foreignRoot)
260{
261 const auto& nspace = targetRoot->getNamespace();
262
263 if (nspace)
264 {
265 // Prepare all names, but do not import them into the namespace. This
266 // will happen when nodes are added to the target root later by the caller.
267 nspace->ensureNoConflicts(foreignRoot);
268 }
269}
270
271MapFormatPtr determineMapFormat(std::istream& stream, const std::string& type)
272{

Callers 3

cloneSelectedFunction · 0.85
importMethod · 0.85
importFromStreamFunction · 0.85

Calls 2

ensureNoConflictsMethod · 0.80
getNamespaceMethod · 0.45

Tested by

no test coverage detected