Page MenuHome

Fix: Build failure due to type conversion
AbandonedPublic

Authored by Pratik Borhade (PratikPB2123) on Sat, Jan 14, 8:11 AM.

Details

Summary

In rB3a3d9488a163 CustomData_get_layer is marked as const
which results in build failure on windows due to type conversion at
BKE_mesh_validate_all_customdata() function call

Diff Detail

Repository
rB Blender

Event Timeline

Pratik Borhade (PratikPB2123) requested review of this revision.Sat, Jan 14, 8:11 AM
Pratik Borhade (PratikPB2123) created this revision.

Would it not be better to make BKE_mesh_validate_arrays() take a const MFace * ? A validate function doesn't need to write to the faces I'd guess.

Or is that impossible?

edit: looking at the comments on that _validate() function that's probably impossible...

In the chat @Hans Goudey (HooglyBoogly) mentioned this as the correct fix so I guess it could just be landed.