urdf-loader
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -7,2 +7,10 @@ # Changelog | ||
## [0.7.3] - 2019-11-08 | ||
### Fixed | ||
- Incorrect handling of empty "texture" tags that caused materials to display improperly. | ||
## [0.7.2] - 2019-09-29 | ||
### Changed | ||
- Caltech license copy. | ||
## [0.7.1] - 2019-06-29 | ||
@@ -9,0 +17,0 @@ ### Fixed |
{ | ||
"name": "urdf-loader", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "URDF Loader for THREE.js and webcomponent viewer", | ||
@@ -5,0 +5,0 @@ "main": "umd/URDFLoader.js", |
# javascript urdf-loader | ||
[![npm version](https://img.shields.io/npm/v/urdf-loader.svg?style=flat-square)](https://www.npmjs.com/package/urdf-loader) | ||
[![travis build](https://img.shields.io/travis/gkjohnson/urdf-loaders.svg?style=flat-square)](https://travis-ci.org/gkjohnson/urdf-loaders) | ||
[![travis build](https://img.shields.io/travis/gkjohnson/urdf-loaders.svg?style=flat-square)](https://travis-ci.com/gkjohnson/urdf-loaders) | ||
[![lgtm code quality](https://img.shields.io/lgtm/grade/javascript/g/gkjohnson/urdf-loaders.svg?style=flat-square&label=code-quality)](https://lgtm.com/projects/g/gkjohnson/urdf-loaders/) | ||
@@ -6,0 +6,0 @@ |
@@ -325,7 +325,13 @@ import * as THREE from 'three'; | ||
const loader = new THREE.TextureLoader(manager); | ||
// The URDF spec does not require that the <texture/> tag include | ||
// a filename attribute so skip loading the texture if not provided. | ||
const filename = n.getAttribute('filename'); | ||
const filePath = resolvePath(filename); | ||
material.map = loader.load(filePath); | ||
if (filename) { | ||
const loader = new THREE.TextureLoader(manager); | ||
const filePath = resolvePath(filename); | ||
material.map = loader.load(filePath); | ||
} | ||
} | ||
@@ -332,0 +338,0 @@ }); |
@@ -587,7 +587,13 @@ (function (global, factory) { | ||
const loader = new THREE.TextureLoader(manager); | ||
// The URDF spec does not require that the <texture/> tag include | ||
// a filename attribute so skip loading the texture if not provided. | ||
const filename = n.getAttribute('filename'); | ||
const filePath = resolvePath(filename); | ||
material.map = loader.load(filePath); | ||
if (filename) { | ||
const loader = new THREE.TextureLoader(manager); | ||
const filePath = resolvePath(filename); | ||
material.map = loader.load(filePath); | ||
} | ||
} | ||
@@ -594,0 +600,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249922
2838