Pārlūkot izejas kodu

Properly handle empty CSGCombiners

hoontee 5 gadi atpakaļ
vecāks
revīzija
001b6075cb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      modules/csg/csg_shape.cpp

+ 1 - 1
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() {