mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 04:04:24 +00:00
Style: Set clang-format Standard to Cpp11
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
This commit is contained in:
parent
c5d76139dc
commit
cb282c6ef0
247 changed files with 794 additions and 794 deletions
|
|
@ -447,7 +447,7 @@ bool GridMap::_octant_update(const OctantKey &p_key) {
|
|||
* and set said multimesh bounding box to one containing all cells which have this item
|
||||
*/
|
||||
|
||||
Map<int, List<Pair<Transform, IndexKey> > > multimesh_items;
|
||||
Map<int, List<Pair<Transform, IndexKey>>> multimesh_items;
|
||||
|
||||
for (Set<IndexKey>::Element *E = g.cells.front(); E; E = E->next()) {
|
||||
|
||||
|
|
@ -468,7 +468,7 @@ bool GridMap::_octant_update(const OctantKey &p_key) {
|
|||
if (baked_meshes.size() == 0) {
|
||||
if (mesh_library->get_item_mesh(c.item).is_valid()) {
|
||||
if (!multimesh_items.has(c.item)) {
|
||||
multimesh_items[c.item] = List<Pair<Transform, IndexKey> >();
|
||||
multimesh_items[c.item] = List<Pair<Transform, IndexKey>>();
|
||||
}
|
||||
|
||||
Pair<Transform, IndexKey> p;
|
||||
|
|
@ -510,7 +510,7 @@ bool GridMap::_octant_update(const OctantKey &p_key) {
|
|||
//update multimeshes, only if not baked
|
||||
if (baked_meshes.size() == 0) {
|
||||
|
||||
for (Map<int, List<Pair<Transform, IndexKey> > >::Element *E = multimesh_items.front(); E; E = E->next()) {
|
||||
for (Map<int, List<Pair<Transform, IndexKey>>>::Element *E = multimesh_items.front(); E; E = E->next()) {
|
||||
Octant::MultimeshInstance mmi;
|
||||
|
||||
RID mm = VS::get_singleton()->multimesh_create();
|
||||
|
|
@ -518,7 +518,7 @@ bool GridMap::_octant_update(const OctantKey &p_key) {
|
|||
VS::get_singleton()->multimesh_set_mesh(mm, mesh_library->get_item_mesh(E->key())->get_rid());
|
||||
|
||||
int idx = 0;
|
||||
for (List<Pair<Transform, IndexKey> >::Element *F = E->get().front(); F; F = F->next()) {
|
||||
for (List<Pair<Transform, IndexKey>>::Element *F = E->get().front(); F; F = F->next()) {
|
||||
VS::get_singleton()->multimesh_instance_set_transform(mm, idx, F->get().first);
|
||||
#ifdef TOOLS_ENABLED
|
||||
|
||||
|
|
@ -988,7 +988,7 @@ void GridMap::make_baked_meshes(bool p_gen_lightmap_uv, float p_lightmap_uv_texe
|
|||
return;
|
||||
|
||||
//generate
|
||||
Map<OctantKey, Map<Ref<Material>, Ref<SurfaceTool> > > surface_map;
|
||||
Map<OctantKey, Map<Ref<Material>, Ref<SurfaceTool>>> surface_map;
|
||||
|
||||
for (Map<IndexKey, Cell>::Element *E = cell_map.front(); E; E = E->next()) {
|
||||
|
||||
|
|
@ -1017,10 +1017,10 @@ void GridMap::make_baked_meshes(bool p_gen_lightmap_uv, float p_lightmap_uv_texe
|
|||
ok.z = key.z / octant_size;
|
||||
|
||||
if (!surface_map.has(ok)) {
|
||||
surface_map[ok] = Map<Ref<Material>, Ref<SurfaceTool> >();
|
||||
surface_map[ok] = Map<Ref<Material>, Ref<SurfaceTool>>();
|
||||
}
|
||||
|
||||
Map<Ref<Material>, Ref<SurfaceTool> > &mat_map = surface_map[ok];
|
||||
Map<Ref<Material>, Ref<SurfaceTool>> &mat_map = surface_map[ok];
|
||||
|
||||
for (int i = 0; i < mesh->get_surface_count(); i++) {
|
||||
|
||||
|
|
@ -1040,11 +1040,11 @@ void GridMap::make_baked_meshes(bool p_gen_lightmap_uv, float p_lightmap_uv_texe
|
|||
}
|
||||
}
|
||||
|
||||
for (Map<OctantKey, Map<Ref<Material>, Ref<SurfaceTool> > >::Element *E = surface_map.front(); E; E = E->next()) {
|
||||
for (Map<OctantKey, Map<Ref<Material>, Ref<SurfaceTool>>>::Element *E = surface_map.front(); E; E = E->next()) {
|
||||
|
||||
Ref<ArrayMesh> mesh;
|
||||
mesh.instance();
|
||||
for (Map<Ref<Material>, Ref<SurfaceTool> >::Element *F = E->get().front(); F; F = F->next()) {
|
||||
for (Map<Ref<Material>, Ref<SurfaceTool>>::Element *F = E->get().front(); F; F = F->next()) {
|
||||
F->get()->commit(mesh);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue