Skip to content

Commit

Permalink
Make sure downsampled point cloud material properties change with pri…
Browse files Browse the repository at this point in the history
…mary pcd (#3528)
  • Loading branch information
errissa authored Jun 1, 2021
1 parent ab20923 commit a1c2225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/open3d/visualization/visualizer/O3DVisualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1240,11 +1240,11 @@ struct O3DVisualizer::Impl {
// unlit mode so that we can keep the wide lines.
if (shader == Shader::STANDARD ||
(shader == Shader::UNLIT && is_lines)) {
scene->GetScene()->OverrideMaterial(name, original_material);
scene->ModifyGeometryMaterial(name, original_material);
} else {
Material m = original_material;
m.shader = GetShaderString(shader);
scene->GetScene()->OverrideMaterial(name, m);
scene->ModifyGeometryMaterial(name, m);
}
}

Expand Down

0 comments on commit a1c2225

Please sign in to comment.