Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extern/softbody/src/admmpd_bvh.h')
-rw-r--r--extern/softbody/src/admmpd_bvh.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/extern/softbody/src/admmpd_bvh.h b/extern/softbody/src/admmpd_bvh.h
index 20b810ac7be..88ff5393dc4 100644
--- a/extern/softbody/src/admmpd_bvh.h
+++ b/extern/softbody/src/admmpd_bvh.h
@@ -58,9 +58,13 @@ public:
}
};
+ // Return ptr to the root node
+ // Becomes invalidated after init()
+ std::shared_ptr<Node> root() { return m_root; }
+
protected:
- std::shared_ptr<Node> root;
+ std::shared_ptr<Node> m_root;
void create_children(
Node *node,