You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use base Color() constructors instead of Color::html()
This results in slightly smaller binaries (-17 KB for an editor binary) as no strings need to be allocated.
This commit is contained in:
@@ -365,10 +365,10 @@ void VisualShaderEditor::_update_graph() {
|
||||
}
|
||||
|
||||
static const Color type_color[4] = {
|
||||
Color::html("#61daf4"), // scalar
|
||||
Color::html("#d67dee"), // vector
|
||||
Color::html("#8da6f0"), // boolean
|
||||
Color::html("#f6a86e") // transform
|
||||
Color(0.38, 0.85, 0.96), // scalar
|
||||
Color(0.84, 0.49, 0.93), // vector
|
||||
Color(0.55, 0.65, 0.94), // boolean
|
||||
Color(0.96, 0.66, 0.43) // transform
|
||||
};
|
||||
|
||||
List<VisualShader::Connection> connections;
|
||||
|
||||
Reference in New Issue
Block a user