Commit 2aa5ed1
authored
Update to latest Magnum with more efficient glTF mesh import and various UX improvements (#2551)
* Update to latest Magnum.
* assets: contrary to the comment, this was mainly a workaround.
In some cases such as depth-only rendering it may be desirable to have
for example positions *not* interleaved with the remaining attributes,
and this would undo that optimization.
The code below however calls mutableIndices(), and without the
interleave it blows up because not all meshes have mutable index data,
apparently. So we need to expand that check there.
* assets: can use this nice helper also.
Could also resolve the TODO there because generateIndices() is a thing
that works, but don't feel like doing that now.
* Use arrayClear() instead of arrayResize(..., 0).
* Use the path() and filename() shorthands for Path::split().
* clang format wants to say something?!
The machine is so amazing, a human could never format it like this, it
would always have some silly slightly different opinion. Result? It
makes me *hate* the code I write because it's never good enough for the
machine, and I don't enjoy reading the formatted thing either.
We've achieved peak technology.1 parent 35cf4c7 commit 2aa5ed1
File tree
20 files changed
+53
-55
lines changed- src
- cmake
- deps
- esp
- assets
- core
- managedContainers
- gfx_batch
- gfx
- io
- metadata/managers
20 files changed
+53
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
Submodule magnum updated 1433 files
Submodule magnum-bindings updated 131 files
Submodule magnum-integration updated 129 files
0 commit comments