From a80ddc450b7223e0ee64ccdc03f2eeaf8e4b964a Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Tue, 23 Apr 2019 01:28:51 +0100 Subject: [PATCH] Make OP_ADD the default in VoxelIsoSurfaceTool --- voxel_isosurface_tool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voxel_isosurface_tool.cpp b/voxel_isosurface_tool.cpp index 90b5574..b2d4a94 100644 --- a/voxel_isosurface_tool.cpp +++ b/voxel_isosurface_tool.cpp @@ -131,9 +131,9 @@ void VoxelIsoSurfaceTool::_bind_methods() { ClassDB::bind_method(D_METHOD("set_offset", "offset"), &VoxelIsoSurfaceTool::set_offset); ClassDB::bind_method(D_METHOD("get_offset"), &VoxelIsoSurfaceTool::get_offset); - ClassDB::bind_method(D_METHOD("do_sphere", "center", "radius", "op"), &VoxelIsoSurfaceTool::do_sphere); - ClassDB::bind_method(D_METHOD("do_plane", "plane", "op"), &VoxelIsoSurfaceTool::do_plane); - ClassDB::bind_method(D_METHOD("do_cube", "transform", "extents", "op"), &VoxelIsoSurfaceTool::do_cube); + ClassDB::bind_method(D_METHOD("do_sphere", "center", "radius", "op"), &VoxelIsoSurfaceTool::do_sphere, DEFVAL(OP_ADD)); + ClassDB::bind_method(D_METHOD("do_plane", "plane", "op"), &VoxelIsoSurfaceTool::do_plane, DEFVAL(OP_ADD)); + ClassDB::bind_method(D_METHOD("do_cube", "transform", "extents", "op"), &VoxelIsoSurfaceTool::do_cube, DEFVAL(OP_ADD)); BIND_ENUM_CONSTANT(OP_ADD); BIND_ENUM_CONSTANT(OP_SUBTRACT);