mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-23 18:25:17 +00:00
simplify formatting scripts, add a clang-tidy script, and run clang-tidy
This commit is contained in:
@@ -300,8 +300,9 @@ Node3D *Node3D::get_parent_node_3d() const {
|
||||
}
|
||||
|
||||
Transform3D Node3D::get_relative_transform(const Node *p_parent) const {
|
||||
if (p_parent == this)
|
||||
if (p_parent == this) {
|
||||
return Transform3D();
|
||||
}
|
||||
|
||||
ERR_FAIL_COND_V(!data.parent, Transform3D());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user