You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Use List Initializations for Vectors.
This commit is contained in:
@@ -488,10 +488,11 @@ void AnimationNodeBlendSpace2DEditor::_blend_space_draw() {
|
||||
color.a *= 0.2;
|
||||
}
|
||||
|
||||
Vector<Color> colors;
|
||||
colors.push_back(color);
|
||||
colors.push_back(color);
|
||||
colors.push_back(color);
|
||||
Vector<Color> colors = {
|
||||
color,
|
||||
color,
|
||||
color
|
||||
};
|
||||
blend_space_draw->draw_primitive(points, colors, Vector<Vector2>());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user