You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Style: Apply clang-tidy to current code, add readability-redundant-member-init
This commit is contained in:
@@ -38,10 +38,7 @@ void CollisionPolygon2DEditor::_set_node(Node *p_polygon) {
|
||||
node = Object::cast_to<CollisionPolygon2D>(p_polygon);
|
||||
}
|
||||
|
||||
CollisionPolygon2DEditor::CollisionPolygon2DEditor() :
|
||||
AbstractPolygon2DEditor() {
|
||||
node = nullptr;
|
||||
}
|
||||
CollisionPolygon2DEditor::CollisionPolygon2DEditor() {}
|
||||
|
||||
CollisionPolygon2DEditorPlugin::CollisionPolygon2DEditorPlugin() :
|
||||
AbstractPolygon2DEditorPlugin(memnew(CollisionPolygon2DEditor), "CollisionPolygon2D") {
|
||||
|
||||
@@ -102,10 +102,7 @@ void LightOccluder2DEditor::_create_resource() {
|
||||
_menu_option(MODE_CREATE);
|
||||
}
|
||||
|
||||
LightOccluder2DEditor::LightOccluder2DEditor() :
|
||||
AbstractPolygon2DEditor() {
|
||||
node = nullptr;
|
||||
}
|
||||
LightOccluder2DEditor::LightOccluder2DEditor() {}
|
||||
|
||||
LightOccluder2DEditorPlugin::LightOccluder2DEditorPlugin() :
|
||||
AbstractPolygon2DEditorPlugin(memnew(LightOccluder2DEditor), "LightOccluder2D") {
|
||||
|
||||
@@ -56,10 +56,7 @@ void Line2DEditor::_action_set_polygon(int p_idx, const Variant &p_previous, con
|
||||
undo_redo->add_undo_method(node, "set_points", p_previous);
|
||||
}
|
||||
|
||||
Line2DEditor::Line2DEditor() :
|
||||
AbstractPolygon2DEditor() {
|
||||
node = nullptr;
|
||||
}
|
||||
Line2DEditor::Line2DEditor() {}
|
||||
|
||||
Line2DEditorPlugin::Line2DEditorPlugin() :
|
||||
AbstractPolygon2DEditorPlugin(memnew(Line2DEditor), "Line2D") {
|
||||
|
||||
@@ -112,10 +112,7 @@ void NavigationPolygonEditor::_create_resource() {
|
||||
_menu_option(MODE_CREATE);
|
||||
}
|
||||
|
||||
NavigationPolygonEditor::NavigationPolygonEditor() :
|
||||
AbstractPolygon2DEditor() {
|
||||
node = nullptr;
|
||||
}
|
||||
NavigationPolygonEditor::NavigationPolygonEditor() {}
|
||||
|
||||
NavigationPolygonEditorPlugin::NavigationPolygonEditorPlugin() :
|
||||
AbstractPolygon2DEditorPlugin(memnew(NavigationPolygonEditor), "NavigationRegion2D") {
|
||||
|
||||
@@ -82,8 +82,7 @@ void PhysicalBone3DEditor::show() {
|
||||
spatial_editor_hb->show();
|
||||
}
|
||||
|
||||
PhysicalBone3DEditorPlugin::PhysicalBone3DEditorPlugin() :
|
||||
physical_bone_editor() {}
|
||||
PhysicalBone3DEditorPlugin::PhysicalBone3DEditorPlugin() {}
|
||||
|
||||
void PhysicalBone3DEditorPlugin::make_visible(bool p_visible) {
|
||||
if (p_visible) {
|
||||
|
||||
@@ -1228,9 +1228,7 @@ Vector2 Polygon2DEditor::snap_point(Vector2 p_target) const {
|
||||
return p_target;
|
||||
}
|
||||
|
||||
Polygon2DEditor::Polygon2DEditor() :
|
||||
AbstractPolygon2DEditor() {
|
||||
node = nullptr;
|
||||
Polygon2DEditor::Polygon2DEditor() {
|
||||
snap_offset = EditorSettings::get_singleton()->get_project_metadata("polygon_2d_uv_editor", "snap_offset", Vector2());
|
||||
snap_step = EditorSettings::get_singleton()->get_project_metadata("polygon_2d_uv_editor", "snap_step", Vector2(10, 10));
|
||||
use_snap = EditorSettings::get_singleton()->get_project_metadata("polygon_2d_uv_editor", "snap_enabled", false);
|
||||
|
||||
Reference in New Issue
Block a user