diff options
author | jmf <jmf@mesecons.net> | 2018-07-02 15:33:03 +0200 |
---|---|---|
committer | Jan-Michael Franz <jmf@mesecons.net> | 2018-08-28 14:41:41 -0300 |
commit | 11c90b0bb3a663887c0138501668950602189b4d (patch) | |
tree | d8dba54c012d07152599f04e8ebd7cd8ca981ea1 /modules/csg/csg_shape.cpp | |
parent | d42807371c667cc117460b01e9d1484f4418906f (diff) | |
download | redot-engine-11c90b0bb3a663887c0138501668950602189b4d.tar.gz |
Fix to make CSGBox the size that is entered in Width, Height and Depth instead of twice those lengths.
Diffstat (limited to 'modules/csg/csg_shape.cpp')
-rw-r--r-- | modules/csg/csg_shape.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 258c628d93..714be16db7 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -917,7 +917,7 @@ CSGBrush *CSGBox::_build_brush() { int face = 0; - Vector3 vertex_mul(width, height, depth); + Vector3 vertex_mul(width * 0.5, height * 0.5, depth * 0.5); { @@ -1051,9 +1051,9 @@ Ref<Material> CSGBox::get_material() const { CSGBox::CSGBox() { // defaults - width = 1.0; - height = 1.0; - depth = 1.0; + width = 2.0; + height = 2.0; + depth = 2.0; } /////////////// |