Skip to content

Commit

Permalink
Support the case material's name is empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasuki Okumura committed Sep 7, 2020
1 parent 393db31 commit 74d10a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urdf/UrdfModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function UrdfModel(options) {
for( var j=0; j<link.visuals.length; j++ )
{
var mat = link.visuals[j].material;
if ( mat !== null ) {
if ( mat !== null && mat.name ) {
if (this.materials[mat.name] !== void 0) {
link.visuals[j].material = this.materials[mat.name];
} else {
Expand Down

0 comments on commit 74d10a2

Please sign in to comment.