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

tools: do not read from invalid Unit ID

Part-of: #181
Daniele Bartolini 1 год назад
Родитель
Сommit
48e6163e21
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tools/level_editor/properties_view.vala

+ 2 - 1
tools/level_editor/properties_view.vala

@@ -419,7 +419,8 @@ public class ActorPropertyGrid : PropertyGrid
 			}
 		}
 
-		update();
+		if (_id != GUID_ZERO)
+			update();
 	}
 
 	private void on_project_file_added_or_changed(string type, string name, uint64 size, uint64 mtime)