Fix segmentation/depth rendering.
PiperOrigin-RevId: 912674769 Change-Id: Iba525679630e7996bc27d916e61e5a265a147061
This commit is contained in:
committed by
Copybara-Service
parent
fa912dffa0
commit
b9a1fad99b
@@ -243,7 +243,7 @@ const mjrMaterial& Renderable::GetMaterial() const {
|
|||||||
|
|
||||||
void Renderable::SetDrawMode(mjrDrawMode mode) {
|
void Renderable::SetDrawMode(mjrDrawMode mode) {
|
||||||
// Only SceneObjects support non-color draw modes.
|
// Only SceneObjects support non-color draw modes.
|
||||||
if (!material_.decor_ux) {
|
if (material_.decor_ux) {
|
||||||
mode = mjDRAW_MODE_COLOR;
|
mode = mjDRAW_MODE_COLOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user