summaryrefslogtreecommitdiff
path: root/scene/resources/primitive_meshes.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-13 22:42:32 +0100
committerGitHub <noreply@github.com>2017-11-13 22:42:32 +0100
commitf3d812e3a0549e1235184713c8ebe0c6b26c9fde (patch)
treedbf2c4aa963ae21d724d2a7486cff4bf99b4e836 /scene/resources/primitive_meshes.h
parent4755bc9e2b45d0ed79a54e847e175c4692fabb39 (diff)
parent06ce2e339e80048ae0b5076dbdd69577630bfaef (diff)
Merge pull request #12811 from Chaosus/quadsize
Add size to QuadMesh
Diffstat (limited to 'scene/resources/primitive_meshes.h')
-rw-r--r--scene/resources/primitive_meshes.h5
1 files changed, 4 insertions, 1 deletions
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;
};
/**