Merge pull request #66298 from Mickeon/3.x-language-stroke
This commit is contained in:
commit
2157c50d17
1 changed files with 3 additions and 2 deletions
|
@ -3595,8 +3595,9 @@ bool ScriptEditorPlugin::handles(Object *p_object) const {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Object::cast_to<Script>(p_object)) {
|
Script *script = Object::cast_to<Script>(p_object);
|
||||||
return true;
|
if (script) {
|
||||||
|
return script->get_language() != nullptr; // Could be a PluginScript with no language attached.
|
||||||
}
|
}
|
||||||
|
|
||||||
return p_object->is_class("Script");
|
return p_object->is_class("Script");
|
||||||
|
|
Loading…
Reference in a new issue