Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
bffe4abb
Commit
bffe4abb
authored
Aug 11, 2017
by
Ignacio Etcheverry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EditorPlugin: Renames virtual method hiding inherited method
parent
1a04917f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
editor_plugin.cpp
editor/editor_plugin.cpp
+3
-3
No files found.
editor/editor_plugin.cpp
View file @
bffe4abb
...
...
@@ -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"
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment