Browse Source

Merge pull request #21767 from volzhs/expand-collapse-all

Make expand/collapse all properties menu working
Rémi Verschelde 7 years ago
parent
commit
2f4912ec69
1 changed files with 6 additions and 0 deletions
  1. 6 0
      editor/inspector_dock.cpp

+ 6 - 0
editor/inspector_dock.cpp

@@ -36,6 +36,12 @@
 
 void InspectorDock::_menu_option(int p_option) {
 	switch (p_option) {
+		case EXPAND_ALL: {
+			_menu_expandall();
+		} break;
+		case COLLAPSE_ALL: {
+			_menu_collapseall();
+		} break;
 		case RESOURCE_MAKE_BUILT_IN: {
 			_unref_resource();
 		} break;