From 9cd1c20f6aae87e34b45471271062127d385871e Mon Sep 17 00:00:00 2001 From: JFonS Date: Sun, 6 May 2018 20:49:22 +0200 Subject: Polished 3D selection --- scene/3d/sprite_3d.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scene/3d/sprite_3d.h') diff --git a/scene/3d/sprite_3d.h b/scene/3d/sprite_3d.h index 23e1d96b4b..a4705a8970 100644 --- a/scene/3d/sprite_3d.h +++ b/scene/3d/sprite_3d.h @@ -38,6 +38,8 @@ class SpriteBase3D : public GeometryInstance { GDCLASS(SpriteBase3D, GeometryInstance); + mutable Ref triangle_mesh; //cached + public: enum DrawFlags { FLAG_TRANSPARENT, @@ -133,6 +135,7 @@ public: virtual AABB get_aabb() const; virtual PoolVector get_faces(uint32_t p_usage_flags) const; + Ref generate_triangle_mesh() const; SpriteBase3D(); ~SpriteBase3D(); @@ -192,7 +195,6 @@ class AnimatedSprite3D : public SpriteBase3D { int frame; bool centered; - Point2 offset; float timeout; -- cgit v1.2.3