FBX IO: Speed up animation simplification using NumPy #104904
@ -1368,7 +1368,7 @@ class AnimationCurveNodeWrapper:
|
||||
p_enabled_idx_in_sampled_values = np.arange(1, len(sampled_values))
|
||||
# Replace the indices of all disabled values with 0 in preparation of filling them in with the index of the
|
||||
# nearest previous enabled value. We choose to replace with 0 so that if there is no nearest previous
|
||||
# enabled value, we instead default to `values[0]`.
|
||||
# enabled value, we instead default to `sampled_values[0]`.
|
||||
c_val_disabled_mask = ~c_enabled_mask_view
|
||||
# Let `c_val_disabled_mask` be:
|
||||
# [F, F, T, F, F, T, T, T]
|
||||
|
Loading…
Reference in New Issue
Block a user