diff options
author | Ruslan Mustakov <r.mustakov@gmail.com> | 2017-08-19 19:41:11 +0700 |
---|---|---|
committer | Ruslan Mustakov <r.mustakov@gmail.com> | 2017-09-14 19:40:36 +0700 |
commit | f08bc0df7c16a6d12292628ec8cc2e015047c450 (patch) | |
tree | 73b9bdaf5441798340bcbddcd96edc2430a9ccd0 /core/math/math_funcs.h | |
parent | 9ac940677c9febc5f1c52782a717df61b0224344 (diff) |
Construct Variants from Reference properly in GDNative
Previously godot_variant_new_object constructed Variant without
accounting for the fact that the Object can be a Reference, so refcount
was not increased and References were destructed prematurely.
Also, Reference::init_ref did not propagate refcount increment to the
script instance, which led to desync of refcount info on the script
side and Godot side.
Diffstat (limited to 'core/math/math_funcs.h')
0 files changed, 0 insertions, 0 deletions