From 06ce2e339e80048ae0b5076dbdd69577630bfaef Mon Sep 17 00:00:00 2001 From: Chaosus Date: Fri, 10 Nov 2017 19:00:36 +0300 Subject: Added size to QuadMesh --- scene/resources/primitive_meshes.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scene/resources/primitive_meshes.h') diff --git a/scene/resources/primitive_meshes.h b/scene/resources/primitive_meshes.h index 38a5695883..f0c8935261 100644 --- a/scene/resources/primitive_meshes.h +++ b/scene/resources/primitive_meshes.h @@ -263,7 +263,7 @@ class QuadMesh : public PrimitiveMesh { GDCLASS(QuadMesh, PrimitiveMesh) private: - // nothing? really? Maybe add size some day atleast... :) + Size2 size; protected: static void _bind_methods(); @@ -271,6 +271,9 @@ protected: public: QuadMesh(); + + void set_size(const Size2 &p_size); + Size2 get_size() const; }; /** -- cgit v1.2.3