yoship1639 / Player2VRM

クラフトピアでプレイヤーモデルを任意のVRMモデルに差し替えるMOD
MIT License
101 stars 10 forks source link

[BUG] ModelScale not precise - bad float approximation #33

Open LoneDev6 opened 3 years ago

LoneDev6 commented 3 years ago

Hello! Seems that ModelScale gets rounded to first 2 digits. For example a value of 0.15 won't work, only 0.1 will.

ModelScale code: https://github.com/yoship1639/Player2VRM/blob/90aa950b3e681e6e25b86135d12fb0f976047538/Player2VRM/Player2VRM.cs#L348

Float conversion: https://github.com/yoship1639/Player2VRM/blob/01133dc562c167639fcfd6bd76775c3265e92004/Player2VRM/Settings.cs#L46

Thanks!