Skip to content

Commit

Permalink
use hardcoded bone count if replacement has no skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Hat-Kid committed Dec 1, 2024
1 parent 5ee0d90 commit e3d45d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion decompiler/level_extractor/merc_replacement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ void extract(const std::string& name,
tfrag3::MercEffect envmap_eff;
envmap_eff.has_envmap = false;
out.new_model.name = name;
out.new_model.max_bones = joints;
// if we have a skeleton, use that joint count, otherwise use a high default value since the model
// we replace can have more
out.new_model.max_bones = joints != 3 ? joints : 100;
out.new_model.max_draws = 0;

auto process_normal_draw = [&](tfrag3::MercEffect& eff, int mat_idx, const tfrag3::MercDraw& d_) {
Expand Down

0 comments on commit e3d45d4

Please sign in to comment.