Просмотр исходного кода

fix tile set editor crash when drawing polygon shapes

Liangdi 7 лет назад
Родитель
Сommit
5116c009c9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      editor/plugins/tile_set_editor_plugin.cpp

+ 1 - 1
editor/plugins/tile_set_editor_plugin.cpp

@@ -958,7 +958,7 @@ void TileSetEditor::_on_workspace_input(const Ref<InputEvent> &p_ie) {
 	Ref<InputEventMouseMotion> mm = p_ie;
 
 	if (mb.is_valid()) {
-		if (mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT) {
+		if (mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT && !creating_shape) {
 			if (!current_tile_region.has_point(mb->get_position())) {
 				List<int> *tiles = new List<int>();
 				tileset->get_tile_list(tiles);