message: show selected material, basic material replacement
diff: @@ -2230,9 +2230,25 @@ void MainWindow::buildWindowMaterialEditor()
  if (materialNodes.empty()) {
  ImGui::Text("No materials found");
  } else {
  + ImGui::Separator();
  + static sg::NodePtr selectedMaterial;
  if (listWidget.buildUI("Materials##advanced",
  &currentMaterial,
  materialNodes)) {
  + selectedMaterial = materialNodes.at(currentMaterial);
  + }
  + if (selectedMaterial) {
  + selectedMaterial->traverse<sg::GenerateImGuiWidgets>(
  + sg::TreeState::ROOTOPEN);
  + ImGui::Text("Replace material");
  + static int currentMatType = 0;
  + const char *matTypes[] = {"principled", "carPaint", "obj"};
  + ImGui::Combo("Material types", &currentMatType, matTypes, 3);
  + if (ImGui::Button("Replace##material")) {
  + auto newMaterial = sg::createNode(
  + selectedMaterial->name(), matTypes[currentMatType]);
  + selectedMaterial = newMaterial;
  + }
  }
  }
  ImGui::EndTabItem();
  