mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Centralizing and unifying the generator of object identifiers.
This commit is contained in:
@@ -44,6 +44,8 @@ void ImGuiVisitor::visit(Group &n)
|
||||
// {
|
||||
// MODEL VIEW
|
||||
|
||||
ImGui::PushID(n.id());
|
||||
|
||||
if (ImGuiToolkit::ButtonIcon(1, 16)) {
|
||||
n.translation_.x = 0.f;
|
||||
n.translation_.y = 0.f;
|
||||
@@ -86,6 +88,8 @@ void ImGuiVisitor::visit(Group &n)
|
||||
n.scale_.y = CLAMP_SCALE(scale[1]);
|
||||
}
|
||||
|
||||
ImGui::PopID();
|
||||
|
||||
// // loop over members of a group
|
||||
// for (NodeSet::iterator node = n.begin(); node != n.end(); node++) {
|
||||
// (*node)->accept(*this);
|
||||
@@ -269,6 +273,7 @@ void ImGuiVisitor::visit(ImageProcessingShader &n)
|
||||
|
||||
void ImGuiVisitor::visit (Source& s)
|
||||
{
|
||||
ImGui::PushID(s.id());
|
||||
// blending
|
||||
s.blendingShader()->accept(*this);
|
||||
|
||||
@@ -294,6 +299,7 @@ void ImGuiVisitor::visit (Source& s)
|
||||
// geometry direct control
|
||||
s.groupNode(View::GEOMETRY)->accept(*this);
|
||||
|
||||
ImGui::PopID();
|
||||
}
|
||||
|
||||
void ImGuiVisitor::visit (MediaSource& s)
|
||||
|
||||
Reference in New Issue
Block a user