FBX IO: Speed up transformation animation import #104870
@ -621,7 +621,7 @@ def _transformation_curves_gen(item, values_arrays, channel_keys):
|
|||||||
|
|
||||||
# Pre-compute combined post-matrix
|
# Pre-compute combined post-matrix
|
||||||
# Compensate for changes in the local matrix during processing
|
# Compensate for changes in the local matrix during processing
|
||||||
combined_post_matrix = item.anim_compensation_matrix if item.anim_compensation_matrix else Matrix()
|
combined_post_matrix = item.anim_compensation_matrix.copy() if item.anim_compensation_matrix else Matrix()
|
||||||
# item.post_matrix will contain any correction for lights, camera and bone orientation
|
# item.post_matrix will contain any correction for lights, camera and bone orientation
|
||||||
if item.post_matrix:
|
if item.post_matrix:
|
||||||
combined_post_matrix @= item.post_matrix
|
combined_post_matrix @= item.post_matrix
|
||||||
|
Loading…
Reference in New Issue
Block a user