Fix segmentation/depth rendering.

PiperOrigin-RevId: 912674769
Change-Id: Iba525679630e7996bc27d916e61e5a265a147061
This commit is contained in:
Haroon Qureshi
2026-05-08 13:39:56 -07:00
committed by Copybara-Service
parent fa912dffa0
commit b9a1fad99b
@@ -243,7 +243,7 @@ const mjrMaterial& Renderable::GetMaterial() const {
void Renderable::SetDrawMode(mjrDrawMode mode) {
// Only SceneObjects support non-color draw modes.
if (!material_.decor_ux) {
if (material_.decor_ux) {
mode = mjDRAW_MODE_COLOR;
}