mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 01:03:46 +01:00
B3D: Fix get_animated_bone_properties
This commit is contained in:
parent
48e5508322
commit
df4711bb4f
1
b3d.lua
1
b3d.lua
@ -352,6 +352,7 @@ function get_animated_bone_properties(self, keyframe, interpolate)
|
|||||||
for _, property in pairs{"position", "rotation", "scale"} do
|
for _, property in pairs{"position", "rotation", "scale"} do
|
||||||
properties[property] = properties[property] or modlib.table.copy(node[property])
|
properties[property] = properties[property] or modlib.table.copy(node[property])
|
||||||
end
|
end
|
||||||
|
properties.rotation = modlib.quaternion.compose(node.rotation, properties.rotation)
|
||||||
if node.bone then
|
if node.bone then
|
||||||
properties.bone_name = node.name
|
properties.bone_name = node.name
|
||||||
table.insert(bone_properties, properties)
|
table.insert(bone_properties, properties)
|
||||||
|
Loading…
Reference in New Issue
Block a user