Explorar o código

Editor: Removed Geometry.fromBufferGeometry.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
75ad506de8
Modificáronse 1 ficheiros con 1 adicións e 15 borrados
  1. 1 15
      editor/js/Sidebar.Geometry.Modifiers.js

+ 1 - 15
editor/js/Sidebar.Geometry.Modifiers.js

@@ -35,21 +35,7 @@ Sidebar.Geometry.Modifiers = function ( signals, object ) {
 
 	var isBufferGeometry = geometry instanceof THREE.BufferGeometry;
 
-	if ( geometry instanceof THREE.BufferGeometry ) {
-
-		var button = new UI.Button( 'Convert to Geometry' );
-		button.onClick( function () {
-
-			if ( confirm( 'Are you sure?' ) === false ) return;
-
-			object.geometry = new THREE.Geometry().fromBufferGeometry( object.geometry );
-
-			signals.geometryChanged.dispatch( object );
-
-		} );
-		container.add( button );
-
-	} else {
+	if ( geometry instanceof THREE.Geometry ) {
 
 		var button = new UI.Button( 'Convert to BufferGeometry' );
 		button.onClick( function () {