Browse Source

Merge pull request #4897 from assimp/kimkulling/ensure_initializer_exists

Ensure initializer exists
Kim Kulling 2 năm trước cách đây
mục cha
commit
bf57eef8f2
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      code/PostProcessing/LimitBoneWeightsProcess.cpp

+ 5 - 0
code/PostProcessing/LimitBoneWeightsProcess.cpp

@@ -46,6 +46,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 namespace Assimp {
 
+// Make sure this value is set.
+#ifndef AI_LMW_MAX_WEIGHTS
+#   define AI_LMW_MAX_WEIGHTS 16
+#endif
+
 // ------------------------------------------------------------------------------------------------
 // Constructor to be privately used by Importer
 LimitBoneWeightsProcess::LimitBoneWeightsProcess() : mMaxWeights(AI_LMW_MAX_WEIGHTS) {}