Commit 7b91198
authored
Treat checkbox-driven uniforms as bool in Viewer (AcademySoftwareFoundation#2437) (AcademySoftwareFoundation#2463)
This PR seeks to address AcademySoftwareFoundation#2437, wherein toggling a checkbox off and on in the Property Editor causes the corresponding uniform to stop updating, remaining in the "off" state indefinitely thereafter. The proposed fix is to pass the value of the checkbox to shaders as a bool rather than a float.
Tested in MaterialXView on macOS 15.5 (OpenGL and Metal rendering paths).1 parent 9754e6a commit 7b91198
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
0 commit comments