diff options
Diffstat (limited to 'scene/resources/primitive_meshes.h')
-rw-r--r-- | scene/resources/primitive_meshes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/primitive_meshes.h b/scene/resources/primitive_meshes.h index 91d1af2ee1..5e1387e864 100644 --- a/scene/resources/primitive_meshes.h +++ b/scene/resources/primitive_meshes.h @@ -51,6 +51,7 @@ private: Ref<Material> material; + bool first_mesh; bool cache_is_dirty; void _update(); @@ -60,7 +61,7 @@ protected: static void _bind_methods(); virtual void _create_mesh_array(Array &p_arr) = 0; - void _queue_update(); + void _queue_update(bool p_first_mesh = false); //pretty bad hack to have the mesh built firt time parameters are set without delay void set_aabb(Rect3 p_aabb); |