summaryrefslogtreecommitdiffstats
path: root/script/gdscript/gd_compiler.cpp
diff options
context:
space:
mode:
authorTrevor Davenport <trevor.davenport@gmail.com>2024-11-26 20:44:39 -0700
committerTrevor Davenport <trevor.davenport@gmail.com>2024-11-26 20:51:08 -0700
commit70a55540b7091758b851b075b968789a16e74261 (patch)
treec010f9ce3671e1b673d0753a776a771695d1706c /script/gdscript/gd_compiler.cpp
parentbbc54692c05ff6a85a6aeefbf5b9c87de91983d8 (diff)
downloadredot-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_compiler.cpp')
0 files changed, 0 insertions, 0 deletions