constructor( editor, object = null ) {

		super( editor );

		this.type = 'AddObjectCommand';

		this.object = object;

		if ( object !== null ) {

			this.name = editor.strings.getKey( 'command/AddObject' ) + ': ' + object.name;

		}

	}
@param {Editor} editor
@param {THREE.Object3D|null} [object=null]
@constructor