diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2019-10-04 00:01:12 +0300 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2020-04-30 18:30:04 +0300 |
commit | 7001d06f9d7e11e042147899acbdd01c13ad8983 (patch) | |
tree | 21854fa8d131dd66064afc35d6eef0038963ecd0 /servers/physics_2d | |
parent | f870118323f9f1e4cd7d3ea63e951a2214f63c48 (diff) |
Make `dict2inst` to work with arbitrary `_init` parameters
This is achieved by skipping initializer call while creating an instance
of a GDScript. This is implemented by passing -1 as an argument count
to `_new` and interpreting any value below 0 to mean that the initializer
should not be called during instantiation, because internal members of
an instance are going to be overridden afterwards.
Diffstat (limited to 'servers/physics_2d')
0 files changed, 0 insertions, 0 deletions