提交 75ad506d 编写于 作者: M Mr.doob

Editor: Removed Geometry.fromBufferGeometry.

上级 c730ba1d
......@@ -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 () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册