| 224 | } |
| 225 | |
| 226 | bool ScriptCreateDialog::_validate_parent(const String &p_string) { |
| 227 | if (p_string.length() == 0) { |
| 228 | return false; |
| 229 | } |
| 230 | |
| 231 | if (can_inherit_from_file && p_string.is_quoted()) { |
| 232 | String p = p_string.substr(1, p_string.length() - 2); |
| 233 | if (_validate_path(p, true).is_empty()) { |
| 234 | return true; |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | return EditorNode::get_editor_data().is_type_recognized(p_string); |
| 239 | } |
| 240 | |
| 241 | String ScriptCreateDialog::_validate_path(const String &p_path, bool p_file_must_exist, bool *r_path_valid) { |
| 242 | String p = p_path.strip_edges(); |
nothing calls this directly
no test coverage detected