armory3d / armory3d/armory

Object is shown at unexpected place if has keyframe and be set as child.

Open
#2,208 3 comments 3 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
3.3k
Forks
353
Avg merge
3d 16h
Merged PRs (30d)
1

Description

**Description**
Object is shown at unexpected place if has keyframe and be set as child.

**To Reproduce**
I created simple objects.

![1bf30d61e15343fe8872d1ef626ef1a5](https://user-images.githubusercontent.com/1837402/119120949-24492480-ba2d-11eb-99f2-973519420762.png)

Set keyframe at frame on 1 and execute Armory.
It is no problem.

![40a1d05e86f641a6805bde1f00e2a300](https://user-images.githubusercontent.com/1837402/119120976-2b703280-ba2d-11eb-9406-ac4b81a4ba38.png)

Then set parent after slect Sphere and Cube.
(cube is parent, sphere is child.)
And executes Armory.
For some reason, the display position of the object is wrong...

![5307ea9021c24a0cad4f597532a4be21](https://user-images.githubusercontent.com/1837402/119120991-2f9c5000-ba2d-11eb-8cbb-b76a426ca070.png)

Why does sphere float on the air?
I check animation on Blender, (press space) then no problem(sphere does not float.)

This problem occurs when:
1. Set parent/child
2. Set keyframe on child object
3. Check on Armory (press F5)

then child object floats.

**Expected behavior**
Sphere mesh' position must be shown as with 3D view on blender.

**System**
Blender: 2.83
Armory: ArmorySDK-2021-5
OS: Linux Mint 20

[test.blend.zip](https://github.com/armory3d/armory/files/6522396/test.blend.zip)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with test.blend.zip in Blender 2.83, then run the scene in Armory with F5 and compare the child object's position during playback. Trace the animation and parent/child transform handling; done means the sphere stays in the same position in Armory as in Blender when the child has a keyframe.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender, cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.