Explorar o código

Added EventDispatcher to Object3D.

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
e347fc04de
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/core/Object3D.js

+ 5 - 0
src/core/Object3D.js

@@ -50,6 +50,11 @@ THREE.Object3D.prototype = {
 
 	constructor: THREE.Object3D,
 
+	addEventListener: THREE.EventDispatcher.prototype.addEventListener,
+	hasEventListener: THREE.EventDispatcher.prototype.hasEventListener,
+	removeEventListener: THREE.EventDispatcher.prototype.removeEventListener,
+	dispatchEvent: THREE.EventDispatcher.prototype.dispatchEvent,
+
 	applyMatrix: function () {
 
 		var m1 = new THREE.Matrix4();