You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Fixed a typo in csg module
This commit is contained in:
@@ -408,7 +408,7 @@ void CSGBrushOperation::merge_brushes(Operation p_operation, const CSGBrush &p_b
|
|||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case OPERATION_SUBSTRACTION: {
|
case OPERATION_SUBTRACTION: {
|
||||||
int face_count = 0;
|
int face_count = 0;
|
||||||
|
|
||||||
for (int i = 0; i < mesh_merge.faces.size(); i++) {
|
for (int i = 0; i < mesh_merge.faces.size(); i++) {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ struct CSGBrushOperation {
|
|||||||
enum Operation {
|
enum Operation {
|
||||||
OPERATION_UNION,
|
OPERATION_UNION,
|
||||||
OPERATION_INTERSECTION,
|
OPERATION_INTERSECTION,
|
||||||
OPERATION_SUBSTRACTION,
|
OPERATION_SUBTRACTION,
|
||||||
};
|
};
|
||||||
|
|
||||||
void merge_brushes(Operation p_operation, const CSGBrush &p_brush_a, const CSGBrush &p_brush_b, CSGBrush &r_merged_brush, float p_vertex_snap);
|
void merge_brushes(Operation p_operation, const CSGBrush &p_brush_a, const CSGBrush &p_brush_b, CSGBrush &r_merged_brush, float p_vertex_snap);
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ CSGBrush *CSGShape::_get_brush() {
|
|||||||
bop.merge_brushes(CSGBrushOperation::OPERATION_INTERSECTION, *n, *nn2, *nn, snap);
|
bop.merge_brushes(CSGBrushOperation::OPERATION_INTERSECTION, *n, *nn2, *nn, snap);
|
||||||
break;
|
break;
|
||||||
case CSGShape::OPERATION_SUBTRACTION:
|
case CSGShape::OPERATION_SUBTRACTION:
|
||||||
bop.merge_brushes(CSGBrushOperation::OPERATION_SUBSTRACTION, *n, *nn2, *nn, snap);
|
bop.merge_brushes(CSGBrushOperation::OPERATION_SUBTRACTION, *n, *nn2, *nn, snap);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
memdelete(n);
|
memdelete(n);
|
||||||
|
|||||||
Reference in New Issue
Block a user