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
c8a799d6
Commit
c8a799d6
authored
May 28, 2018
by
Rémi Verschelde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MethodInfo for EditorInspectorPlugin.can_handle
parent
fac01205
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
EditorInspectorPlugin.xml
doc/classes/EditorInspectorPlugin.xml
+1
-1
editor_inspector.cpp
editor/editor_inspector.cpp
+3
-1
No files found.
doc/classes/EditorInspectorPlugin.xml
View file @
c8a799d6
...
...
@@ -40,7 +40,7 @@
</description>
</method>
<method
name=
"can_handle"
qualifiers=
"virtual"
>
<return
type=
"
void
"
>
<return
type=
"
bool
"
>
</return>
<argument
index=
"0"
name=
"object"
type=
"Object"
>
</argument>
...
...
editor/editor_inspector.cpp
View file @
c8a799d6
...
...
@@ -842,9 +842,11 @@ void EditorInspectorPlugin::_bind_methods() {
MethodInfo
vm
;
vm
.
name
=
"can_handle"
;
vm
.
return_val
.
type
=
Variant
::
BOOL
;
vm
.
arguments
.
push_back
(
PropertyInfo
(
Variant
::
OBJECT
,
"object"
));
BIND_VMETHOD
(
vm
);
vm
.
name
=
"parse_begin"
;
vm
.
return_val
.
type
=
Variant
::
NIL
;
BIND_VMETHOD
(
vm
);
vm
.
name
=
"parse_category"
;
vm
.
arguments
.
push_back
(
PropertyInfo
(
Variant
::
STRING
,
"category"
));
...
...
@@ -859,8 +861,8 @@ void EditorInspectorPlugin::_bind_methods() {
vm
.
arguments
.
push_back
(
PropertyInfo
(
Variant
::
INT
,
"usage"
));
BIND_VMETHOD
(
vm
);
vm
.
arguments
.
clear
();
vm
.
return_val
.
type
=
Variant
::
NIL
;
vm
.
name
=
"parse_end"
;
vm
.
return_val
.
type
=
Variant
::
NIL
;
BIND_VMETHOD
(
vm
);
}
...
...
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