Optimize callable's stringify text.
This commit is contained in:
1 parent
1f47e4c4e3
commit
614a51f293
3 files changed
+17
-6
No files matched your search
@@ -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