1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +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

@@ -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) {