| 259 | } |
| 260 | |
| 261 | bool GDScript::can_instantiate() const { |
| 262 | #ifdef TOOLS_ENABLED |
| 263 | return valid && (tool || ScriptServer::is_scripting_enabled()) && !Engine::get_singleton()->is_recovery_mode_hint(); |
| 264 | #else |
| 265 | return valid; |
| 266 | #endif |
| 267 | } |
| 268 | |
| 269 | Ref<Script> GDScript::get_base_script() const { |
| 270 | if (_base) { |
no test coverage detected