Commit db18399
authored
ShadingSystem::convert_value, allow float[3] <--> triple conversion. (#754)
This utility is used by renderers for getattribute and other
renderer-to-OSL data copying, and is meant to facilitate the
obvious set of copy conversions between slightly mismatched yet
sensible types.
Adding a clause that lets you retrieve a triple (point, color, etc.)
even if it was declared on the renderer side as float[3], and vice
versa.1 parent 45a4d78 commit db18399
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
537 | 546 | | |
538 | 547 | | |
539 | 548 | | |
| |||
0 commit comments