Commit 9aae5e8
authored
Minor improvements to OSO building (AcademySoftwareFoundation#2658)
- Initialize `_useOSLCmdStr` in the constructor for `OslRenderer`.
- Iterate over shared pointers by value for efficiency. (Iterating over shared pointers by `const &` requires the creation of an additional object copy.)
- Test the value of `MATERIALX_BUILD_OSOS` before including LibsToOso.cpp in a build.1 parent 32bdd68 commit 9aae5e8
File tree
3 files changed
+7
-16
lines changed- source
- MaterialXGenOsl
- MaterialXRenderOsl
3 files changed
+7
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
15 | 5 | | |
16 | 6 | | |
17 | 7 | | |
| |||
25 | 15 | | |
26 | 16 | | |
27 | 17 | | |
28 | | - | |
| 18 | + | |
29 | 19 | | |
30 | 20 | | |
31 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments