function SwapAction(originalObject, newObject, moveChildren)
{
	Action.call(this);
	
	this.originalObject = originalObject;
	this.newObject = newObject;

	this.parent = this.originalObject.parent;
	this.index = -1;
	
	this.moveChildren = moveChildren !== undefined ? moveChildren : true;
}
Swap an object for another one.

The children of the original object can be moved to the new object.

@class SwapAction
@extends {Action}
@param {Object3D} originalObject Object originally in place, to be replaced.
@param {Object3D} newObject Object to take place of the old one.
@param {boolean} moveChildren If true move the children from the original object to the new.