summaryrefslogtreecommitdiff
path: root/scene/resources/bounds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/bounds.cpp')
-rw-r--r--scene/resources/bounds.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/scene/resources/bounds.cpp b/scene/resources/bounds.cpp
index 26bf6270e9..974ff76cd0 100644
--- a/scene/resources/bounds.cpp
+++ b/scene/resources/bounds.cpp
@@ -28,19 +28,17 @@
/*************************************************************************/
#include "bounds.h"
-
void Bounds::_bind_methods() {
- ClassDB::bind_method( D_METHOD("set_bsp_tree","bsp_tree"),&Bounds::set_bsp_tree);
- ClassDB::bind_method( D_METHOD("get_bsp_tree"),&Bounds::get_bsp_tree );
-
- ADD_PROPERTY( PropertyInfo( Variant::ARRAY, "bsp_tree" ), "set_bsp_tree", "get_bsp_tree");
+ ClassDB::bind_method(D_METHOD("set_bsp_tree", "bsp_tree"), &Bounds::set_bsp_tree);
+ ClassDB::bind_method(D_METHOD("get_bsp_tree"), &Bounds::get_bsp_tree);
+ ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "bsp_tree"), "set_bsp_tree", "get_bsp_tree");
}
-void Bounds::set_bsp_tree(const BSP_Tree& p_bsp_tree) {
+void Bounds::set_bsp_tree(const BSP_Tree &p_bsp_tree) {
- bsp_tree=p_bsp_tree;
+ bsp_tree = p_bsp_tree;
}
BSP_Tree Bounds::get_bsp_tree() const {
@@ -48,7 +46,5 @@ BSP_Tree Bounds::get_bsp_tree() const {
return bsp_tree;
}
-
-Bounds::Bounds()
-{
+Bounds::Bounds() {
}