call __mg_sync_special_nodes for new layer

This commit is contained in:
Vincent Wei
2021-03-24 19:22:05 +08:00
parent a966689e88
commit 30147e9e01
2 changed files with 321 additions and 184 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -705,6 +705,8 @@ MG_Layer* GUIAPI ServerCreateLayer (const char* layer_name,
new_layer->next = mgLayers;
mgLayers = new_layer;
__mg_sync_special_nodes (__mg_def_zorder_info, new_layer->zorder_info);
/* Notify that a new layer created. */
if (OnChangeLayer)
OnChangeLayer (LCO_NEW_LAYER, new_layer, NULL);