summaryrefslogtreecommitdiff
path: root/modules/csg
diff options
context:
space:
mode:
authorhoontee <5272529+hoontee@users.noreply.github.com>2020-07-31 10:11:26 -0500
committerGitHub <noreply@github.com>2020-07-31 10:11:26 -0500
commit001b6075cb148d2300cbbf1e65c6b7cae19b3b25 (patch)
tree3164c88f70cc620350eafe85541624a521e15291 /modules/csg
parent227494be59eca4f50604a9c90c3c36ed15e7ecc5 (diff)
Properly handle empty CSGCombiners
Diffstat (limited to 'modules/csg')
-rw-r--r--modules/csg/csg_shape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp
index cea006364f..6653849384 100644
--- a/modules/csg/csg_shape.cpp
+++ b/modules/csg/csg_shape.cpp
@@ -646,7 +646,7 @@ CSGShape3D::~CSGShape3D() {
//////////////////////////////////
CSGBrush *CSGCombiner3D::_build_brush() {
- return nullptr; //does not build anything
+ return memnew(CSGBrush); //does not build anything
}
CSGCombiner3D::CSGCombiner3D() {