Merge pull request #60143 from Rindbee/better-connection-dialog
Add a flag to make the connection automatically emit the source object.
This commit is contained in:
@ -1924,6 +1924,7 @@ void Object::_bind_methods() {
|
||||
BIND_ENUM_CONSTANT(CONNECT_PERSIST);
|
||||
BIND_ENUM_CONSTANT(CONNECT_ONE_SHOT);
|
||||
BIND_ENUM_CONSTANT(CONNECT_REFERENCE_COUNTED);
|
||||
BIND_ENUM_CONSTANT(CONNECT_APPEND_SOURCE_OBJECT);
|
||||
}
|
||||
|
||||
void Object::set_deferred(const StringName &p_property, const Variant &p_value) {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user