1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00
Files
godot/scene/2d/mesh_instance_2d.cpp
Trevor Davenport 70a55540b7 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.
2024-11-26 20:51:08 -07:00

4.2 KiB