godotengine / godotengine/godot-cpp

Custom reference class instantiation from within other GDNative classs stopped working

Open
#274 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
2.7k
Forks
809
Avg merge
1d 3h
Merged PRs (30d)
8

Description

This is related to #253!
It used to be possible to instantiate a Reference in the GDNative side using:

`return Ref::__internal_constructor(B::_new())`

now this doesn't working anymore (it compiles) but crashes when running in Godot 3.1 stable.

@karroffel (I talked with you about this some time ago.. and it was you that said to use this "snippet".. what do you suggest as alternative now?)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.