Skip to content

Commit

Permalink
Support the case material's name is empty string (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
buster84 authored Sep 8, 2020
1 parent 393db31 commit b39bf03
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 b39bf03

Please sign in to comment.