mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
Add comment to static StringBuilder
This commit is contained in:
parent
ac3ee5979a
commit
055cb6e832
@ -512,6 +512,7 @@ void SceneTreeEditor::_queue_update_node_tooltip(Node *p_node, TreeItem *p_item)
|
||||
}
|
||||
|
||||
void SceneTreeEditor::_update_node_tooltip(Node *p_node, TreeItem *p_item) {
|
||||
// Use static StringBuilder to reuse inner buffer, avoiding memory allocation.
|
||||
static StringBuilder tooltip;
|
||||
tooltip.clear();
|
||||
// Display the node name in all tooltips so that long node names can be previewed
|
||||
|
Loading…
Reference in New Issue
Block a user