Merge pull request #12907 from YeldhamDev/indentation_connection

Fixed signal connection dialog ignoring indentation settings when creating a function
This commit is contained in:
Rémi Verschelde 2017-11-13 20:56:30 +01:00 committed by GitHub
commit 2a9e742c12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -365,7 +365,7 @@ String GDScriptLanguage::make_function(const String &p_class, const String &p_na
}
s += " ";
}
s += "):\n\tpass # replace with function body\n";
s += "):\n" + _get_indentation() + "pass # replace with function body\n";
return s;
}