1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add a flag to make the connection automatically emit the source object.

Mainly used to improve the connection dialog.

Not implemented in `emit_signalp()`, append the source object when a PackScene is instantiated.
This commit is contained in:
Rindbee
2022-04-11 17:37:23 +08:00
committed by 风青山
parent 6c9765d87e
commit 5e2396e001
6 changed files with 95 additions and 21 deletions

View File

@@ -573,10 +573,11 @@ public:
enum ConnectFlags {
CONNECT_DEFERRED = 1,
CONNECT_PERSIST = 2, // hint for scene to save this connection
CONNECT_PERSIST = 2, // Hint for scene to save this connection.
CONNECT_ONE_SHOT = 4,
CONNECT_REFERENCE_COUNTED = 8,
CONNECT_INHERITED = 16, // Used in editor builds.
CONNECT_APPEND_SOURCE_OBJECT = 16,
CONNECT_INHERITED = 32, // Used in editor builds.
};
struct Connection {