EditorPlugin: Renames virtual method hiding inherited method
This commit is contained in:
parent
1a04917fea
commit
bffe4abb4d
@ -249,8 +249,8 @@ bool EditorPlugin::forward_spatial_gui_input(Camera *p_camera, const Ref<InputEv
|
||||
}
|
||||
String EditorPlugin::get_name() const {
|
||||
|
||||
if (get_script_instance() && get_script_instance()->has_method("get_name")) {
|
||||
return get_script_instance()->call("get_name");
|
||||
if (get_script_instance() && get_script_instance()->has_method("get_plugin_name")) {
|
||||
return get_script_instance()->call("get_plugin_name");
|
||||
}
|
||||
|
||||
return String();
|
||||
@ -450,7 +450,7 @@ void EditorPlugin::_bind_methods() {
|
||||
gizmo.return_val.hint = PROPERTY_HINT_RESOURCE_TYPE;
|
||||
gizmo.return_val.hint_string = "EditorSpatialGizmo";
|
||||
ClassDB::add_virtual_method(get_class_static(), gizmo);
|
||||
ClassDB::add_virtual_method(get_class_static(), MethodInfo(Variant::STRING, "get_name"));
|
||||
ClassDB::add_virtual_method(get_class_static(), MethodInfo(Variant::STRING, "get_plugin_name"));
|
||||
ClassDB::add_virtual_method(get_class_static(), MethodInfo(Variant::BOOL, "has_main_screen"));
|
||||
ClassDB::add_virtual_method(get_class_static(), MethodInfo("make_visible", PropertyInfo(Variant::BOOL, "visible")));
|
||||
ClassDB::add_virtual_method(get_class_static(), MethodInfo("edit", PropertyInfo(Variant::OBJECT, "object")));
|
||||
|
Loading…
Reference in New Issue
Block a user