Merge branch 'master' of github.com:supertuxkart/stk-code
This commit is contained in:
commit
2275dc7744
@ -1507,15 +1507,17 @@ void CSkinnedMesh::convertForSkinning()
|
||||
this_influence.push_back(influence);
|
||||
}
|
||||
float total_weight = 0.0f;
|
||||
for (u32 j = 0; j < reported_weight.size(); j++)
|
||||
const unsigned max_weight =
|
||||
reported_weight.size() > 4 ? 4 : reported_weight.size();
|
||||
for (u32 j = 0; j < max_weight; j++)
|
||||
{
|
||||
total_weight += reported_weight[j].weight;
|
||||
this_influence[j].joint_idx = reported_weight[j].joint_idx;
|
||||
this_influence[j].weight = reported_weight[j].weight;
|
||||
}
|
||||
if (!reported_weight.empty())
|
||||
if (total_weight != 0.0f)
|
||||
{
|
||||
for (u32 j = 0; j < reported_weight.size(); j++)
|
||||
for (u32 j = 0; j < max_weight; j++)
|
||||
{
|
||||
this_influence[j].weight =
|
||||
this_influence[j].weight / total_weight;
|
||||
|
@ -82,7 +82,7 @@ PluralForms::from_string(const std::string& str)
|
||||
plural_forms["Plural-Forms:nplurals=3;plural=(n%10==1&&n%100!=11?0:n!=0?1:2);"] = PluralForms(3, plural3_lv);
|
||||
plural_forms["Plural-Forms:nplurals=3;plural=(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2);"] = PluralForms(3, plural3_lt);
|
||||
plural_forms["Plural-Forms:nplurals=3;plural=(n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);"] = PluralForms(3, plural3_pl);
|
||||
plural_forms["Plural-Forms:nplurals=4;plural=(n==1?0:(n%10>=2&&n%10<=4)&&(n%100<12||n%100>14)?1:n!=1&&(n%10>=0&&n%10<=1)||(n%10>=5&&n%10<=9)||(n%100>=12&&n%100<=14)?2:3);"] = PluralForms(3, plural3_pl);
|
||||
plural_forms["Plural-Forms:nplurals=4;plural=(n==1?0:(n%10>=2&&n%10<=4)&&(n%100<12||n%100>14)?1:n!=1&&(n%10>=0&&n%10<=1)||(n%10>=5&&n%10<=9)||(n%100>=12&&n%100<=14)?2:3);"] = PluralForms(4, plural3_pl);
|
||||
plural_forms["Plural-Forms:nplurals=3;plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));"] = PluralForms(3, plural3_ro);
|
||||
plural_forms["Plural-Forms:nplurals=3;plural=(n==1)?0:(n>=2&&n<=4)?1:2;"] = PluralForms(3, plural3_sk);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user