* fix automatic target/names resolving after doing map 'Save as' or unnamed map 'Save'

original graph was kept in the namespace and new graph had 0 namespace
This commit is contained in:
Garux 2024-01-13 03:16:16 +06:00
parent 6dab1291bd
commit f8d622409f

View File

@ -1178,8 +1178,12 @@ void Map_RenameAbsolute( const char* absolute ){
}
g_map.m_resource->detach( g_map );
g_map.m_resource->flush(); /* wipe map from cache to not spoil namespace */
GlobalReferenceCache().release( g_map.m_name.c_str() );
Map_gatherNamespaced( clone );
Map_mergeClonedNames( false ); // set default namespace
g_map.m_resource = resource;
g_map.m_name = absolute;