-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
ImVec2 resetting to zero unsafely #83
Comments
Toast should be a ref object. import nimgl/imgui
type Toast = ref object
title*: string
content*: string
padding*: ImVec2
opacity*: float32
separator*: bool
var data: seq[Toast]
data.add(Toast(padding: ImVec2(x: 10, y: 10))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the current behaviour?
data[^1].padding
isImVec2(x: 0f, y: 0f)
.Please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behaviour?
data[^1].padding
to beImVec2(x: 10f, y: 10f)
,Please tell us about your environment
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, docs.gl, documentation etc)
The text was updated successfully, but these errors were encountered: