diff options
author | Trevor Davenport <trevor.davenport@gmail.com> | 2024-11-26 20:44:39 -0700 |
---|---|---|
committer | Trevor Davenport <trevor.davenport@gmail.com> | 2024-11-26 20:51:08 -0700 |
commit | 70a55540b7091758b851b075b968789a16e74261 (patch) | |
tree | c010f9ce3671e1b673d0753a776a771695d1706c /script/gdscript/gd_tokenizer.cpp | |
parent | bbc54692c05ff6a85a6aeefbf5b9c87de91983d8 (diff) | |
download | redot-engine-70a55540b7091758b851b075b968789a16e74261.tar.gz |
Ensure primitive meshes are created before connected to changed signal.
Primitive meshes are special in that they aren't created until calling
one of their methods which cause it to actually create the mesh
resources. If this is not done early enough, a changed signal can be
triggered from an unexpected thread resulting in a threading warning.
This follows the pattern of mesh_instance_3d which also does this before
connecting to the change signal. Future cleanup could provide a better
means to populate the meshes.
Diffstat (limited to 'script/gdscript/gd_tokenizer.cpp')
0 files changed, 0 insertions, 0 deletions