Browse Source

Merge pull request #15356 from damarindra/tileset-properties

prevent autotile properties out of bounds
Rémi Verschelde 7 years ago
parent
commit
30cd6643be
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/plugins/tile_set_editor_plugin.cpp

+ 1 - 0
editor/plugins/tile_set_editor_plugin.cpp

@@ -340,6 +340,7 @@ AutotileEditor::AutotileEditor(EditorNode *p_editor) {
 	property_editor = memnew(PropertyEditor);
 	property_editor = memnew(PropertyEditor);
 	property_editor->set_v_size_flags(SIZE_EXPAND_FILL);
 	property_editor->set_v_size_flags(SIZE_EXPAND_FILL);
 	property_editor->set_h_size_flags(SIZE_EXPAND_FILL);
 	property_editor->set_h_size_flags(SIZE_EXPAND_FILL);
+	property_editor->set_custom_minimum_size(Size2(10, 70));
 	split->add_child(property_editor);
 	split->add_child(property_editor);
 
 
 	helper = memnew(AutotileEditorHelper(this));
 	helper = memnew(AutotileEditorHelper(this));