summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.h
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2023-06-24 03:07:22 +0200
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2023-08-30 00:15:55 +0200
commitc4705a590b5eb01d63afb907d6dad5c49d8f6fe1 (patch)
tree90dcb549205ed9c0d83ec77c3ab7b0cd473bb762 /modules/gdscript/gdscript.h
parent247c3548d810136ffe9c1694cd76db3236efaa90 (diff)
downloadredot-engine-c4705a590b5eb01d63afb907d6dad5c49d8f6fe1.tar.gz
Fix Object::notification order
Previously the `p_reversed` parameter didn't influence the order in a correct way. Also script overridden _notification functions were not called in the correct order. To fix this some `notification` functions had to add a `p_reversed` parameter. This made it necessary to adjust cpp-bindings. Co-authored-by: David Snopek <dsnopek@gmail.com>
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r--modules/gdscript/gdscript.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h
index ba21a90ce5..0ba007683c 100644
--- a/modules/gdscript/gdscript.h
+++ b/modules/gdscript/gdscript.h
@@ -332,7 +332,7 @@ public:
Variant debug_get_member_by_index(int p_idx) const { return members[p_idx]; }
- virtual void notification(int p_notification);
+ virtual void notification(int p_notification, bool p_reversed = false);
String to_string(bool *r_valid);
virtual Ref<Script> get_script() const;