Skip to content

Commit c80b1a0

Browse files
authored
Merge pull request #524 from TackYs/develop
int cast in add_dummy_markers to comply with blender python 3.1+
2 parents 67e0f92 + d8becf1 commit c80b1a0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

io_scene_niftools/modules/nif_export/animation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,4 +201,4 @@ def add_dummy_markers(self, b_action):
201201
NifLog.info("Defining default action pose markers.")
202202
for frame, text in zip(b_action.frame_range, ("Idle: Start/Idle: Loop Start", "Idle: Loop Stop/Idle: Stop")):
203203
marker = b_action.pose_markers.new(text)
204-
marker.frame = frame
204+
marker.frame = int(frame)

io_scene_niftools/modules/nif_import/animation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self):
5858
@staticmethod
5959
def get_controller_data(ctrl):
6060
"""Return data for ctrl, look in interpolator (for newer games) or directly on ctrl"""
61-
if ctrl.interpolator:
61+
if hasattr(ctrl, 'interpolator') and ctrl.interpolator:
6262
data = ctrl.interpolator.data
6363
else:
6464
data = ctrl.data

0 commit comments

Comments
 (0)