* 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:
parent
6dab1291bd
commit
f8d622409f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user