diff options
author | Juan Linietsky <reduzio@gmail.com> | 2021-07-15 14:04:04 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 14:04:04 -0300 |
commit | 28ee24b9719f739abb442d0849cd621059d47cb3 (patch) | |
tree | 9b78894777c83f6149e4f726cddb6f67f72293c5 /core/object/object.h | |
parent | 296b713ee81153527851e5c71f8e86b0690b18b6 (diff) | |
parent | b5d5d13f562864dda790c310bad300ea4f3f76dc (diff) |
Merge pull request #50484 from reduz/fix-instance-set-binding-on-create
Add ability to set object instance binding on creation
Diffstat (limited to 'core/object/object.h')
-rw-r--r-- | core/object/object.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/object/object.h b/core/object/object.h index 33d9b627f6..89385b81a3 100644 --- a/core/object/object.h +++ b/core/object/object.h @@ -804,8 +804,10 @@ public: #endif - //used by script languages to store binding data + // Used by script languages to store binding data. void *get_instance_binding(void *p_token, const GDNativeInstanceBindingCallbacks *p_callbacks); + // Used on creation by binding only. + void set_instance_binding(void *p_token, void *p_binding, const GDNativeInstanceBindingCallbacks *p_callbacks); void clear_internal_resource_paths(); |