| 515 | } |
| 516 | |
| 517 | void ReplicationEditor::edit(MultiplayerSynchronizer *p_sync) { |
| 518 | if (current == p_sync) { |
| 519 | return; |
| 520 | } |
| 521 | current = p_sync; |
| 522 | if (current) { |
| 523 | config = current->get_replication_config(); |
| 524 | } else { |
| 525 | config.unref(); |
| 526 | } |
| 527 | _update_config(); |
| 528 | } |
| 529 | |
| 530 | Ref<Texture2D> ReplicationEditor::_get_class_icon(const Node *p_node) { |
| 531 | if (!p_node || !has_theme_icon(p_node->get_class(), EditorStringName(EditorIcons))) { |
no test coverage detected