aboutsummaryrefslogtreecommitdiff
path: root/scene/3d/visual_instance.cpp
diff options
context:
space:
mode:
authorKarroffel2017-06-20 21:38:21 +0200
committerKarroffel2017-06-20 21:38:21 +0200
commit40bb90fabdbb98af9235b224d2172e4c1aeeacc9 (patch)
tree7b4777bc5612089789eb741f30efc333a40069de /scene/3d/visual_instance.cpp
parenta22b9ce8aca9ff6580308b43bfaef92200f9aaa5 (diff)
downloadgodot-40bb90fabdbb98af9235b224d2172e4c1aeeacc9.tar.gz
godot-40bb90fabdbb98af9235b224d2172e4c1aeeacc9.tar.zst
godot-40bb90fabdbb98af9235b224d2172e4c1aeeacc9.zip
fixed ptrcall cast for const Ref<T>
Some methods require a const Ref<T> argument, the ptrcall method wrappers cast `void *` to the apropriate types. The problem is that there is no `Ref(const T *)` constructor, but since Ref modifies the refcount of a Reference anyway there's no point in a const version. The problem is that with a `const T *` constructor call, the argument gets converted to Variant first and loses all the reference information, resulting in a null reference as the argument to the constructor.
Diffstat (limited to 'scene/3d/visual_instance.cpp')
0 files changed, 0 insertions, 0 deletions