ImGuizmo icon indicating copy to clipboard operation
ImGuizmo copied to clipboard

Add Push/Pop ID to replace SetID

Open Sayama3 opened this issue 10 months ago • 1 comments

I've changed the system a bit to support push/pop ID as I needed it to use in a project I'm making.

I've reused the functions and the way IDs are handled in ImGui so that the workflow is similar.

I've tried to keep the SetID but marked it as deprecated as I don't think it fit the idea of ImGui.

Here is an example achieved using the IDs :

the gizmo at the center of the object don't have an ID (to keep this functionality working) and the 4 other point have IDs stacking in the following order ObjectID -> ComponentID -> IndexOfThePointInArray

Gizmos_Tests

I thought it might be a useful feature, so I'm doing a Pull Request.

Sayama3 avatar Mar 28 '24 15:03 Sayama3

This looks interesting/ Thanks for the contribution. Let me add a Github Action for PRs, I don't have much time for testing. I want to be sure it at least builds everywhere :)

CedricGuillemet avatar Mar 29 '24 08:03 CedricGuillemet