CDPR-Modding-Documentation / CDPR-Modding-Documentation/REDkit-bugtracker

(Blender plugin) Trajectory 5

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Blender plugin
Dominant language
No language data
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
After import to Blender, some animations have Trajectory moved by 5 units (usually in first frame but not always)

**To Reproduce**
export `swim_fast_f` from `animations\man\movement\man_geralt_swimming.w2anims`, import .re to blender
in Blender first frame's Trajectory will be moved by 5 units

this code from `import_anims.py` is the cause:
```python
if pos.length < CommonData.compensation_scale:
pos = AnimHelper.get_forward_unit_vec(self.is_mimic_animation)
else:
pos *= CommonData.compensation_scale
```

Temp fix, tested for several thousand animations:
```python
pos *= CommonData.compensation_scale
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.