|
@@ -6,6 +6,7 @@ import { Euler } from '../math/Euler.js';
|
|
|
import { Layers } from './Layers.js';
|
|
|
import { Matrix3 } from '../math/Matrix3.js';
|
|
|
import { _Math } from '../math/Math.js';
|
|
|
+import { TrianglesDrawMode } from '../constants.js';
|
|
|
|
|
|
/**
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
@@ -718,6 +719,10 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
|
|
|
if ( this.matrixAutoUpdate === false ) object.matrixAutoUpdate = false;
|
|
|
|
|
|
+ // object specific properties
|
|
|
+
|
|
|
+ if ( this.isMesh && this.drawMode !== TrianglesDrawMode ) object.drawMode = this.drawMode;
|
|
|
+
|
|
|
//
|
|
|
|
|
|
function serialize( library, element ) {
|