Browse Source

Editor: Fixed animation panel visibility.

Mr.doob 12 years ago
parent
commit
0048a17d05
3 changed files with 6 additions and 3 deletions
  1. 4 1
      editor/js/Sidebar.Animation.js
  2. 1 1
      editor/js/Sidebar.Geometry.js
  3. 1 1
      editor/js/Sidebar.Material.js

+ 4 - 1
editor/js/Sidebar.Animation.js

@@ -4,8 +4,9 @@ Sidebar.Animation = function ( signals ) {
 	var possibleAnimations = {};
 
 	var container = new UI.Panel();
-	container.setPadding( '10px' );
 	container.setBorderTop( '1px solid #ccc' );
+	container.setPadding( '10px' );
+	container.setDisplay( 'none' );
 
 	container.add( new UI.Text( 'Animation' ).setColor( '#666' ) );
 	container.add( new UI.Break(), new UI.Break() );
@@ -78,6 +79,8 @@ Sidebar.Animation = function ( signals ) {
 
 		if ( object.geometry && object.geometry.animation ) {
 
+			container.setDisplay( 'block' );
+
 		} else {
 
 			container.setDisplay( 'none' );

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

@@ -26,8 +26,8 @@ Sidebar.Geometry = function ( signals ) {
 
 	var container = new UI.Panel();
 	container.setBorderTop( '1px solid #ccc' );
-	container.setDisplay( 'none' );
 	container.setPadding( '10px' );
+	container.setDisplay( 'none' );
 
 	var objectType = new UI.Text().setColor( '#666' ).setTextTransform( 'uppercase' );
 	container.add( objectType );

+ 1 - 1
editor/js/Sidebar.Material.js

@@ -19,8 +19,8 @@ Sidebar.Material = function ( signals ) {
 
 	var container = new UI.Panel();
 	container.setBorderTop( '1px solid #ccc' );
-	container.setDisplay( 'none' );
 	container.setPadding( '10px' );
+	container.setDisplay( 'none' );
 
 	container.add( new UI.Text().setValue( 'MATERIAL' ).setColor( '#666' ) );
 	container.add( new UI.Break(), new UI.Break() );