summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2019-03-06 09:24:59 -0300
committerJuan Linietsky <juan@godotengine.org>2019-03-06 09:25:19 -0300
commit4dd99701b087fd41a1563fb4722c61b067ef374b (patch)
tree2b2c822b206a4d9cf7fc636061e216f3dc10c82e
parent3916a5352250e004504cf97d1eb9df5305c50bbc (diff)
Fix how settings change, closes #26692
-rw-r--r--editor/editor_inspector.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 1a08977f9c..a0b4a67d94 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -82,7 +82,10 @@ Size2 EditorProperty::get_minimum_size() const {
void EditorProperty::emit_changed(const StringName &p_property, const Variant &p_value, const StringName &p_field, bool p_changing) {
- emit_signal("property_changed", p_property, p_value, p_field, p_changing);
+ Variant args[4] = { p_property, p_value, p_field, p_changing };
+ const Variant *argptrs[4] = { &args[0], &args[1], &args[2], &args[3] };
+
+ emit_signal("property_changed", (const Variant **)argptrs, 4);
}
void EditorProperty::_notification(int p_what) {