You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Some code changed with Clang-Tidy
This commit is contained in:
@@ -511,9 +511,7 @@ void AnimationTreePlayerEditor::_draw_node(const StringName &p_node) {
|
||||
font->draw_halign(ci, ofs + ascofs, HALIGN_CENTER, w, p_node, font_color);
|
||||
ofs.y += h;
|
||||
|
||||
int count = 2; // title and name
|
||||
int inputs = anim_tree->node_get_input_count(p_node);
|
||||
count += inputs ? inputs : 1;
|
||||
|
||||
float icon_h_ofs = Math::floor((font->get_height() - slot_icon->get_height()) / 2.0) + 1;
|
||||
|
||||
@@ -618,7 +616,7 @@ AnimationTreePlayerEditor::ClickType AnimationTreePlayerEditor::_locate_click(co
|
||||
|
||||
for (const List<StringName>::Element *E = order.back(); E; E = E->prev()) {
|
||||
|
||||
StringName node = E->get();
|
||||
const StringName &node = E->get();
|
||||
|
||||
AnimationTreePlayer::NodeType type = anim_tree->node_get_type(node);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user