|
@@ -152,7 +152,7 @@ THREE.EdgeSplitModifier = function () {
|
|
|
|
|
|
this.modify = function ( geometry, cutOffAngle ) {
|
|
|
|
|
|
- const wasNotBufferGeometry = ! geometry.isBufferGeometry;
|
|
|
+ const wasNotBufferGeometry = geometry.isBufferGeometry === undefined;
|
|
|
if ( ! geometry.isBufferGeometry ) {
|
|
|
|
|
|
geometry = new THREE.BufferGeometry().fromGeometry( geometry );
|
|
@@ -165,7 +165,7 @@ THREE.EdgeSplitModifier = function () {
|
|
|
|
|
|
hadNormals = true;
|
|
|
|
|
|
- if ( ! wasNotBufferGeometry )
|
|
|
+ if ( wasNotBufferGeometry === false )
|
|
|
geometry = geometry.clone();
|
|
|
|
|
|
geometry.deleteAttribute( 'normal' );
|