mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 11:19:58 +01:00
BugFix source editor if playable
This commit is contained in:
@@ -993,12 +993,14 @@ void ImGuiVisitor::visit (CloneSource& s)
|
||||
ImGui::PopTextWrapPos();
|
||||
|
||||
// icon (>) to open player
|
||||
if ( s.playable() ) {
|
||||
ImVec2 pos = ImGui::GetCursorPos();
|
||||
ImGui::SameLine(0, 0);
|
||||
ImGui::SameLine(0, 10.f + ImGui::GetContentRegionAvail().x IMGUI_RIGHT_ALIGN);
|
||||
if (ImGuiToolkit::IconButton(ICON_FA_PLAY_CIRCLE, "Open in Player"))
|
||||
UserInterface::manager().showSourceEditor(&s);
|
||||
ImGui::SetCursorPos(pos);
|
||||
}
|
||||
|
||||
// link to origin source
|
||||
std::string label = std::string(s.origin()->initials()) + " - " + s.origin()->name();
|
||||
|
||||
@@ -1134,10 +1134,6 @@ void UserInterface::showSourceEditor(Source *s)
|
||||
outputcontrol.setVisible(true);
|
||||
return;
|
||||
}
|
||||
// CloneSource *cs = dynamic_cast<CloneSource *>(s);
|
||||
// if (cs != nullptr) {
|
||||
// shadercontrol.setVisible( cs );
|
||||
// }
|
||||
if (s->playable()) {
|
||||
sourcecontrol.setVisible(true);
|
||||
sourcecontrol.resetActiveSelection();
|
||||
|
||||
Reference in New Issue
Block a user