Skip to content

Fix the function aiGetMaterialColor when the flag ASSIMP_DOUBLE_PRECISION is enabled - #6090

Merged
kimkulling merged 7 commits into
assimp:masterfrom
Riv1s-sSsA01:Fix-ai_real-aiGetMaterialColor
Jun 8, 2025
Merged

kimkulling merged 7 commits into
assimp:masterfrom
Riv1s-sSsA01:Fix-ai_real-aiGetMaterialColor

Conversation

@Riv1s-sSsA01

@Riv1s-sSsA01 Riv1s-sSsA01 commented Apr 11, 2025 •

Copy link
Copy Markdown
Contributor

fixed problem

The function aiGetMaterialColor has been failed when the flag ASSIMP_DOUBLE_PRECISION is enabled.

the problem cause

The floating-point type macro ai_real indicates double when the flag is enabled.
On the other hand, the members' type of aiColor4D is always float.

related issue & PR

#5701
#5902

@sonarqubecloud

Copy link
Copy Markdown

@tellypresence tellypresence added the Materials Bugs related to the material data label Apr 24, 2025

@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.

Looks fine.

@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2025

Copy link
Copy Markdown

@kimkulling
kimkulling merged commit a95addf into assimp:master Jun 8, 2025
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for your contributions.

@Riv1s-sSsA01
Riv1s-sSsA01 deleted the Fix-ai_real-aiGetMaterialColor branch June 25, 2025 05:35
kimkulling added a commit that referenced this pull request Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Materials Bugs related to the material data

Projects

Development

Successfully merging this pull request may close these issues.

3 participants