mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Reworked signal connection system, added support for Callable and Signal objects and made them default.
This commit is contained in:
parent
1a4be2cd8f
commit
69c95f4b4c
275 changed files with 3831 additions and 2948 deletions
|
@ -42,7 +42,7 @@ Variant ArrayPropertyEdit::get_array() const {
|
|||
return Array();
|
||||
Variant arr = o->get(property);
|
||||
if (!arr.is_array()) {
|
||||
Variant::CallError ce;
|
||||
Callable::CallError ce;
|
||||
arr = Variant::construct(default_type, NULL, 0, ce);
|
||||
}
|
||||
return arr;
|
||||
|
@ -104,7 +104,7 @@ bool ArrayPropertyEdit::_set(const StringName &p_name, const Variant &p_value) {
|
|||
} else if (newsize > size) {
|
||||
|
||||
Variant init;
|
||||
Variant::CallError ce;
|
||||
Callable::CallError ce;
|
||||
Variant::Type new_type = subtype;
|
||||
if (new_type == Variant::NIL && size) {
|
||||
new_type = arr.get(size - 1).get_type();
|
||||
|
@ -139,7 +139,7 @@ bool ArrayPropertyEdit::_set(const StringName &p_name, const Variant &p_value) {
|
|||
|
||||
Variant value = arr.get(idx);
|
||||
if (value.get_type() != type && type >= 0 && type < Variant::VARIANT_MAX) {
|
||||
Variant::CallError ce;
|
||||
Callable::CallError ce;
|
||||
Variant new_value = Variant::construct(Variant::Type(type), NULL, 0, ce);
|
||||
UndoRedo *ur = EditorNode::get_undo_redo();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue