Skip to content

Fix compiler error when double precision is selected, - #5902

Merged
kimkulling merged 2 commits into
assimp:masterfrom
hankarun:master
Nov 29, 2024
Merged

kimkulling merged 2 commits into
assimp:masterfrom
hankarun:master

Conversation

@hankarun

Copy link
Copy Markdown
Contributor

This commit fixes compiler error, when double precision flag is set in cmake. Some material functions expecting float causes compiler error, float parameters changed to ai_real. #5901

@kimkulling kimkulling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is fine. I guess the idea having not all of the material parameters is a failure. We do not have enough resources to change the underlying concept.

I will merge this one.

@sonarqubecloud

Copy link
Copy Markdown

@kimkulling
kimkulling merged commit 72c51a9 into assimp:master Nov 29, 2024
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contribution.

@hankarun

Copy link
Copy Markdown
Contributor Author

You are welcome. It was a simple change. As you said it is a little awkward that double precision affects material properties. I think material needs to revert from real to float for all functions and add another getPropertyDouble if there is none.

kimkulling added a commit that referenced this pull request Jul 1, 2026
Co-authored-by: ali turan <[email protected]>
Co-authored-by: Kim Kulling <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Bugs related to the public API Bug Global flag to mark a deviation from expected behaviour

Projects

Development

Successfully merging this pull request may close these issues.

2 participants