mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
-remove unnecesary error report, fixes #3361
This commit is contained in:
parent
2cc640dbed
commit
de7fe2fced
3 changed files with 21 additions and 7 deletions
|
@ -3145,6 +3145,11 @@ Error GDParser::parse(const String& p_code, const String& p_base_path, bool p_ju
|
|||
return ret;
|
||||
}
|
||||
|
||||
bool GDParser::is_tool_script() const {
|
||||
|
||||
return (head && head->type==Node::TYPE_CLASS && static_cast<const ClassNode*>(head)->tool);
|
||||
}
|
||||
|
||||
const GDParser::Node *GDParser::get_parse_tree() const {
|
||||
|
||||
return head;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue