Skip to content

Conversation

@lucykowal
Copy link

As a user of DaisySP, it was unclear what integers were valid inputs and outputs from AdEnv::SetTime and AdEnv::GetCurrentSegment.

I've added @see AdEnvSegment comments to AdEnv documentation. This should help future developers quickly find the enumeration through the documentation.

FYI: This is my first PR on GitHub & first contribution to DaisySP! I've read the contribution guides, but let me know if I'm missing anything. Thanks!

@beserge
Copy link
Contributor

beserge commented Dec 11, 2023

Nice catch! My preference is actually to change it so that
AdEnvSegment would be a member of AdEnv, and then the seg argument would be of type AdEnvSegment
i.e. SetTime(AdEnvSegment seg, float time)

I would think that would also fix the documentation issue automatically, though I will check that to make sure.
I'm going to make that change and close this PR soon (we're saving any breaking changes for a little while).

Thanks again for the catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants