Fix crash during drag if user freed the drag preview

This commit is contained in:
Delf Neumärker
2021-02-27 10:08:51 +01:00
parent 9047e760d1
commit 7df977c3ed
3 changed files with 47 additions and 23 deletions

View File

@@ -693,7 +693,7 @@
<argument index="0" name="control" type="Control">
</argument>
<description>
Shows the given control at the mouse pointer. A good time to call this method is in [method get_drag_data]. The control must not be in the scene tree.
Shows the given control at the mouse pointer. A good time to call this method is in [method get_drag_data]. The control must not be in the scene tree. You should not free the control, and you should not keep a reference to the control beyond the duration of the drag. It will be deleted automatically after the drag has ended.
[codeblock]
export (Color, RGBA) var color = Color(1, 0, 0, 1)