Skip to content

The problem of ImGui::Dragfloat3() in for-loop #5884

@Wayne693

Description

@Wayne693

Version/Branch of Dear ImGui:

Version: v1.89
Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl2.cpp
Operating System: Windows10

My Issue/Question:

Hi, I'm having an issue after using DragFloat3 in the for-loop. In my soft raster project I have a lot of models, and I want to control the translation, rotation, and scaling of the model through the UI panel, so that I can iterate through all the models with a for-loop and modify the properties of the model through DragFloat3. Unfortunately, there is a bug here, when I drag the properties of model one, the properties corresponding to the other models will also change, and I hope that the operation for them is separate. Now I don't know what's wrong, can you help me?

Screenshots/Video

This is part of my code :
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions