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();
|
ImGui::PopTextWrapPos();
|
||||||
|
|
||||||
// icon (>) to open player
|
// icon (>) to open player
|
||||||
ImVec2 pos = ImGui::GetCursorPos();
|
if ( s.playable() ) {
|
||||||
ImGui::SameLine(0, 0);
|
ImVec2 pos = ImGui::GetCursorPos();
|
||||||
ImGui::SameLine(0, 10.f + ImGui::GetContentRegionAvail().x IMGUI_RIGHT_ALIGN);
|
ImGui::SameLine(0, 0);
|
||||||
if (ImGuiToolkit::IconButton(ICON_FA_PLAY_CIRCLE, "Open in Player"))
|
ImGui::SameLine(0, 10.f + ImGui::GetContentRegionAvail().x IMGUI_RIGHT_ALIGN);
|
||||||
UserInterface::manager().showSourceEditor(&s);
|
if (ImGuiToolkit::IconButton(ICON_FA_PLAY_CIRCLE, "Open in Player"))
|
||||||
ImGui::SetCursorPos(pos);
|
UserInterface::manager().showSourceEditor(&s);
|
||||||
|
ImGui::SetCursorPos(pos);
|
||||||
|
}
|
||||||
|
|
||||||
// link to origin source
|
// link to origin source
|
||||||
std::string label = std::string(s.origin()->initials()) + " - " + s.origin()->name();
|
std::string label = std::string(s.origin()->initials()) + " - " + s.origin()->name();
|
||||||
|
|||||||
@@ -1134,10 +1134,6 @@ void UserInterface::showSourceEditor(Source *s)
|
|||||||
outputcontrol.setVisible(true);
|
outputcontrol.setVisible(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// CloneSource *cs = dynamic_cast<CloneSource *>(s);
|
|
||||||
// if (cs != nullptr) {
|
|
||||||
// shadercontrol.setVisible( cs );
|
|
||||||
// }
|
|
||||||
if (s->playable()) {
|
if (s->playable()) {
|
||||||
sourcecontrol.setVisible(true);
|
sourcecontrol.setVisible(true);
|
||||||
sourcecontrol.resetActiveSelection();
|
sourcecontrol.resetActiveSelection();
|
||||||
|
|||||||
Reference in New Issue
Block a user