Skip to content

Commit

Permalink
Editor: Removed Geometry.fromBufferGeometry.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 18, 2015
1 parent c730ba1 commit 75ad506
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions editor/js/Sidebar.Geometry.Modifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 75ad506

Please sign in to comment.