瀏覽代碼

Merge pull request #7831 from bmolyneaux/master-1

Add a note about tool script inheritance
Max Hilbrunner 1 年之前
父節點
當前提交
4011dc55a6
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tutorials/plugins/running_code_in_the_editor.rst

+ 7 - 0
tutorials/plugins/running_code_in_the_editor.rst

@@ -111,6 +111,13 @@ Here is how a ``_process()`` function might look for you:
     case, when we remove the script, the node will keep its rotation. Be careful
     case, when we remove the script, the node will keep its rotation. Be careful
     to avoid making unwanted modifications.
     to avoid making unwanted modifications.
 
 
+.. note::
+
+    Extending a ``@tool`` script does not automatically make the extending script
+    a ``@tool``. Omitting ``@tool`` from the extending script will disable tool
+    behavior from the super class. Therefore the extending script should also
+    specify the ``@tool`` annotation.
+
 Try it out
 Try it out
 -----------
 -----------