Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev分支下的ImGuizmo代码 #7

Open
hebohang opened this issue May 12, 2022 · 0 comments
Open

dev分支下的ImGuizmo代码 #7

hebohang opened this issue May 12, 2022 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@hebohang
Copy link

在 EditorLayer.cpp 中的第 507 行:

		  if (ImGui::ImageButton((void*)m_TransTexture->GetRendererID(), ImVec2(m_PlayBarTexture->GetWidth(), m_PlayBarTexture->GetHeight()), ImVec2(0, 1), ImVec2(1, 0), 0.0f, ImVec4(0.0f, 0.0f, 0.0f, 0.0f), m_GizmoType == 0 ? ImVec4(1.0f, 1.0f, 0.0f, 0.9f) : ImVec4(1.0f, 1.0f, 0.0f, 0.5f)))
		  {
			m_GizmoType = 0;
		  }	 

m_GizmoType = 0 应该改换成 ImGuizmo::OPERATION::TRANSLATE,否则更高版本的 ImGuizmo 会有问题。

@Holy-YxY Holy-YxY added the Bug Something isn't working label May 13, 2022
@Holy-YxY Holy-YxY self-assigned this May 13, 2022
@Holy-YxY Holy-YxY pinned this issue May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants