Merge pull request #47709 from KoBeWi/node_that_changes_everything

Expose edit_node() for editor plugins
This commit is contained in:
Rémi Verschelde 2021-04-12 09:11:33 +02:00 committed by GitHub
commit 184abce192
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View file

@ -10,6 +10,15 @@
<tutorials>
</tutorials>
<methods>
<method name="edit_node">
<return type="void">
</return>
<argument index="0" name="node" type="Node">
</argument>
<description>
Edits the given [Node]. The node will be also selected if it's inside the scene tree.
</description>
</method>
<method name="edit_resource">
<return type="void">
</return>

View file

@ -17,6 +17,7 @@
</argument>
<description>
Adds a node to the selection.
[b]Note:[/b] The newly selected node will not be automatically edited in the inspector. If you want to edit a node, use [method EditorInterface.edit_node].
</description>
</method>
<method name="clear">