mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
@@ -31,14 +31,12 @@
|
||||
#include "multimesh_instance_3d.h"
|
||||
|
||||
void MultiMeshInstance3D::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_multimesh", "multimesh"), &MultiMeshInstance3D::set_multimesh);
|
||||
ClassDB::bind_method(D_METHOD("get_multimesh"), &MultiMeshInstance3D::get_multimesh);
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "multimesh", PROPERTY_HINT_RESOURCE_TYPE, "MultiMesh"), "set_multimesh", "get_multimesh");
|
||||
}
|
||||
|
||||
void MultiMeshInstance3D::set_multimesh(const Ref<MultiMesh> &p_multimesh) {
|
||||
|
||||
multimesh = p_multimesh;
|
||||
if (multimesh.is_valid())
|
||||
set_base(multimesh->get_rid());
|
||||
@@ -47,17 +45,14 @@ void MultiMeshInstance3D::set_multimesh(const Ref<MultiMesh> &p_multimesh) {
|
||||
}
|
||||
|
||||
Ref<MultiMesh> MultiMeshInstance3D::get_multimesh() const {
|
||||
|
||||
return multimesh;
|
||||
}
|
||||
|
||||
Vector<Face3> MultiMeshInstance3D::get_faces(uint32_t p_usage_flags) const {
|
||||
|
||||
return Vector<Face3>();
|
||||
}
|
||||
|
||||
AABB MultiMeshInstance3D::get_aabb() const {
|
||||
|
||||
if (multimesh.is_null())
|
||||
return AABB();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user