diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-06-13 18:49:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 18:49:35 +0200 |
commit | 8efbe9ed3dc51e89d032cc2464cfe96fa9e4ea78 (patch) | |
tree | eefcc77509fe5e5167207b5ea7e95d9045147b62 /scene/3d/sprite_3d.h | |
parent | 1651dbb54df30dd189658b9cf9cd84f650be6bdc (diff) | |
parent | 9cd1c20f6aae87e34b45471271062127d385871e (diff) |
Merge pull request #19487 from JFonS/better_3d_select
Improve 3D selection
Diffstat (limited to 'scene/3d/sprite_3d.h')
-rw-r--r-- | scene/3d/sprite_3d.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<TriangleMesh> triangle_mesh; //cached + public: enum DrawFlags { FLAG_TRANSPARENT, @@ -133,6 +135,7 @@ public: virtual AABB get_aabb() const; virtual PoolVector<Face3> get_faces(uint32_t p_usage_flags) const; + Ref<TriangleMesh> generate_triangle_mesh() const; SpriteBase3D(); ~SpriteBase3D(); @@ -192,7 +195,6 @@ class AnimatedSprite3D : public SpriteBase3D { int frame; bool centered; - Point2 offset; float timeout; |