Optimize callable's stringify text.
This commit is contained in:
parent
1f47e4c4e3
commit
614a51f293
3 changed files with 17 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue