Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion io_scene_niftools/modules/nif_export/animation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,4 @@ def add_dummy_markers(self, b_action):
NifLog.info("Defining default action pose markers.")
for frame, text in zip(b_action.frame_range, ("Idle: Start/Idle: Loop Start", "Idle: Loop Stop/Idle: Stop")):
marker = b_action.pose_markers.new(text)
marker.frame = frame
marker.frame = int(frame)
2 changes: 1 addition & 1 deletion io_scene_niftools/modules/nif_import/animation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self):
@staticmethod
def get_controller_data(ctrl):
"""Return data for ctrl, look in interpolator (for newer games) or directly on ctrl"""
if ctrl.interpolator:
if hasattr(ctrl, 'interpolator') and ctrl.interpolator:
data = ctrl.interpolator.data
else:
data = ctrl.data
Expand Down