Skip to content
Snippets Groups Projects
Unverified Commit 9a919af6 authored by TheJackiMonster's avatar TheJackiMonster
Browse files

Fix for color picker consistency

parent de23330a
No related branches found
No related tags found
1 merge request!106Created initial firework project
...@@ -969,7 +969,12 @@ int main(int argc, const char **argv) { ...@@ -969,7 +969,12 @@ int main(int argc, const char **argv) {
bool nested = ImGui::Selectable("Nested Firework"); bool nested = ImGui::Selectable("Nested Firework");
ImGui::EndListBox(); ImGui::EndListBox();
bool resetTime = ImGui::Button("Reset"); bool resetTime = ImGui::Button("Reset");
glm::vec3 color = glm::vec3(0.0f); auto color = glm::vec3(0.0f);
if (!events.empty()) {
color = events[0].color;
}
bool colorChanged = ImGui::ColorPicker3("Color", (float*) & color); bool colorChanged = ImGui::ColorPicker3("Color", (float*) & color);
ImGui::End(); ImGui::End();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment