You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Style: Set clang-format Standard to c++14
This commit is contained in:
@@ -495,7 +495,7 @@ ObjectID SpatialEditorViewport::_select_ray(const Point2 &p_pos, bool p_append,
|
||||
Vector2 shrinked_pos = p_pos / viewport_container->get_stretch_shrink();
|
||||
|
||||
Vector<ObjectID> instances = VisualServer::get_singleton()->instances_cull_ray(pos, ray, get_tree()->get_root()->get_world()->get_scenario());
|
||||
Set<Ref<EditorSpatialGizmo> > found_gizmos;
|
||||
Set<Ref<EditorSpatialGizmo>> found_gizmos;
|
||||
|
||||
Node *edited_scene = get_tree()->get_edited_scene_root();
|
||||
ObjectID closest = 0;
|
||||
@@ -561,7 +561,7 @@ void SpatialEditorViewport::_find_items_at_pos(const Point2 &p_pos, bool &r_incl
|
||||
Vector3 pos = _get_ray_pos(p_pos);
|
||||
|
||||
Vector<ObjectID> instances = VisualServer::get_singleton()->instances_cull_ray(pos, ray, get_tree()->get_root()->get_world()->get_scenario());
|
||||
Set<Ref<EditorSpatialGizmo> > found_gizmos;
|
||||
Set<Ref<EditorSpatialGizmo>> found_gizmos;
|
||||
|
||||
r_includes_current = false;
|
||||
|
||||
@@ -3512,7 +3512,7 @@ Vector3 SpatialEditorViewport::_get_instance_position(const Point2 &p_pos) const
|
||||
Vector3 world_pos = _get_ray_pos(p_pos);
|
||||
|
||||
Vector<ObjectID> instances = VisualServer::get_singleton()->instances_cull_ray(world_pos, world_ray, get_tree()->get_root()->get_world()->get_scenario());
|
||||
Set<Ref<EditorSpatialGizmo> > found_gizmos;
|
||||
Set<Ref<EditorSpatialGizmo>> found_gizmos;
|
||||
|
||||
float closest_dist = MAX_DISTANCE;
|
||||
|
||||
@@ -6794,7 +6794,7 @@ void EditorSpatialGizmoPlugin::create_material(const String &p_name, const Color
|
||||
|
||||
Color instanced_color = EDITOR_DEF("editors/3d_gizmos/gizmo_colors/instanced", Color(0.7, 0.7, 0.7, 0.6));
|
||||
|
||||
Vector<Ref<SpatialMaterial> > mats;
|
||||
Vector<Ref<SpatialMaterial>> mats;
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
bool selected = i % 2 == 1;
|
||||
@@ -6836,7 +6836,7 @@ void EditorSpatialGizmoPlugin::create_icon_material(const String &p_name, const
|
||||
|
||||
Color instanced_color = EDITOR_DEF("editors/3d_gizmos/gizmo_colors/instanced", Color(0.7, 0.7, 0.7, 0.6));
|
||||
|
||||
Vector<Ref<SpatialMaterial> > icons;
|
||||
Vector<Ref<SpatialMaterial>> icons;
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
bool selected = i % 2 == 1;
|
||||
@@ -6891,12 +6891,12 @@ void EditorSpatialGizmoPlugin::create_handle_material(const String &p_name, bool
|
||||
handle_material->set_on_top_of_alpha();
|
||||
}
|
||||
|
||||
materials[p_name] = Vector<Ref<SpatialMaterial> >();
|
||||
materials[p_name] = Vector<Ref<SpatialMaterial>>();
|
||||
materials[p_name].push_back(handle_material);
|
||||
}
|
||||
|
||||
void EditorSpatialGizmoPlugin::add_material(const String &p_name, Ref<SpatialMaterial> p_material) {
|
||||
materials[p_name] = Vector<Ref<SpatialMaterial> >();
|
||||
materials[p_name] = Vector<Ref<SpatialMaterial>>();
|
||||
materials[p_name].push_back(p_material);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user