Skip to content

Commit e9b652c

Browse files
autopep8 action fixes (#268)
Co-authored-by: Tarcontar <Tarcontar@users.noreply.github.com>
1 parent 2de8402 commit e9b652c

4 files changed

Lines changed: 22 additions & 21 deletions

File tree

io_mesh_w3d/common/utils/animation_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def set_rotation(bone, frame, value):
5858

5959
def set_visibility(context, bone, frame, value):
6060
if isinstance(bone, bpy.types.Bone):
61-
if bpy.app.version != (4, 4, 3): #TODO fix 4.4.3
61+
if bpy.app.version != (4, 4, 3): # TODO fix 4.4.3
6262
bone.visibility = value
6363
bone.keyframe_insert(data_path='visibility', frame=frame, options=creation_options)
6464
else:

tests/common/cases/structs/test_animation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# <pep8 compliant>
22
# Written by Stephan Vedder and Michael Schnabel
33

4-
import io, bpy
4+
import io
5+
import bpy
56
from tests.common.helpers.animation import *
67
from tests.utils import TestCase
78
from unittest.mock import patch, call

tests/common/cases/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ def test_roundtrip_only_needed_keyframes(self):
702702
create_data(self, [], None, hierarchy, [], None, animation)
703703

704704
time_codes = [TimeCodedDatum(time_code=0, value=3.0),
705-
TimeCodedDatum(time_code=4, value=3.0)]
706-
705+
TimeCodedDatum(time_code=4, value=3.0)]
706+
707707
if bpy.app.version >= (4, 2, 0):
708708
time_codes = [TimeCodedDatum(time_code=0, value=3.0)]
709709

tests/common/helpers/animation.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,25 @@ def compare_animation_bit_channels(self, expected, actual):
100100

101101
def get_animation(hierarchy_name='TestHierarchy', xml=False):
102102
channels = [
103-
get_animation_channel(type=0, pivot=0),
104-
get_animation_channel(type=1, pivot=1),
105-
get_animation_channel(type=2, pivot=1),
106-
107-
get_animation_channel(type=0, pivot=2),
108-
get_animation_channel(type=1, pivot=2),
109-
get_animation_channel(type=2, pivot=2),
110-
get_animation_channel(type=6, pivot=2),
111-
112-
get_animation_channel(type=0, pivot=3),
113-
get_animation_channel(type=1, pivot=3),
114-
get_animation_channel(type=2, pivot=3),
115-
get_animation_channel(type=6, pivot=3),
116-
]
117-
118-
if bpy.app.version != (4, 4, 3): #TODO fix 4.4.3
103+
get_animation_channel(type=0, pivot=0),
104+
get_animation_channel(type=1, pivot=1),
105+
get_animation_channel(type=2, pivot=1),
106+
107+
get_animation_channel(type=0, pivot=2),
108+
get_animation_channel(type=1, pivot=2),
109+
get_animation_channel(type=2, pivot=2),
110+
get_animation_channel(type=6, pivot=2),
111+
112+
get_animation_channel(type=0, pivot=3),
113+
get_animation_channel(type=1, pivot=3),
114+
get_animation_channel(type=2, pivot=3),
115+
get_animation_channel(type=6, pivot=3),
116+
]
117+
118+
if bpy.app.version != (4, 4, 3): # TODO fix 4.4.3
119119
channels.append(get_animation_bit_channel(pivot=6, xml=xml))
120120
channels.append(get_animation_bit_channel(pivot=7))
121-
121+
122122
return Animation(
123123
header=get_animation_header(hierarchy_name),
124124
channels=channels)

0 commit comments

Comments
 (0)