소스 검색

Merge pull request #40919 from hoontee/master-2

Properly handle empty CSGCombiners
Rémi Verschelde 5 년 전
부모
커밋
920f8c86ec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/csg/csg_shape.cpp

+ 1 - 1
modules/csg/csg_shape.cpp

@@ -641,7 +641,7 @@ CSGShape3D::~CSGShape3D() {
 //////////////////////////////////
 
 CSGBrush *CSGCombiner3D::_build_brush() {
-	return nullptr; //does not build anything
+	return memnew(CSGBrush); //does not build anything
 }
 
 CSGCombiner3D::CSGCombiner3D() {