You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Optimize callable's stringify text.
This commit is contained in:
@@ -178,12 +178,12 @@ uint32_t GDScriptLambdaSelfCallable::hash() const {
|
||||
|
||||
String GDScriptLambdaSelfCallable::get_as_text() const {
|
||||
if (function == nullptr) {
|
||||
return "<invalid lambda>";
|
||||
return "<invalid self lambda>";
|
||||
}
|
||||
if (function->get_name() != StringName()) {
|
||||
return function->get_name().operator String() + "(lambda)";
|
||||
return function->get_name().operator String() + "(self lambda)";
|
||||
}
|
||||
return "(anonymous lambda)";
|
||||
return "(anonymous self lambda)";
|
||||
}
|
||||
|
||||
CallableCustom::CompareEqualFunc GDScriptLambdaSelfCallable::get_compare_equal_func() const {
|
||||
|
||||
Reference in New Issue
Block a user