Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-03-19 04:47:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-03-19 04:50:23 +0300
commit8c378c52c83757b9e78d5a98581bf240ed31a1ec (patch)
tree4a44a8e7fab77f9f812a8940713f14dceeec512c /io_import_scene_unreal_psa_psk.py
parent57f376e9465c6b79ebd4409bc30e0b5930dd4140 (diff)
Cleanup: identity for None comparison
Diffstat (limited to 'io_import_scene_unreal_psa_psk.py')
-rw-r--r--io_import_scene_unreal_psa_psk.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/io_import_scene_unreal_psa_psk.py b/io_import_scene_unreal_psa_psk.py
index 4eaa8a72..c210b771 100644
--- a/io_import_scene_unreal_psa_psk.py
+++ b/io_import_scene_unreal_psa_psk.py
@@ -594,7 +594,7 @@ def pskimport(infile,importmesh,importbone,bDebugLogPSK,importmultiuvtextures):
materials = []
for matcount in range(materialcount):
- #if texturedata != None:
+ #if texturedata is not None:
matdata = bpy.data.materials.new(materialname + str(matcount))
#mtex = matdata.texture_slots.new()
#mtex.texture = texture[matcount].data
@@ -946,7 +946,7 @@ def psaimport(filename,context):
_psa_bone = psa_bone()
_psa_bone.name = bone.name
_psa_bone.Transform = bone.matrix
- if bone.parent != None:
+ if bone.parent is not None:
_psa_bone.parent = psa_bones[bone.parent.name]
else:
_psa_bone.parent = None
@@ -975,7 +975,7 @@ def psaimport(filename,context):
quat = Raw_Key_List[raw_key_index][1]
mat = Matrix()
- if pbone.parent != None:
+ if pbone.parent is not None:
quat = quat.conjugated()
mat = Matrix.Translation(pos) * quat.to_matrix().to_4x4()
mat = pose_bones[bName].parent.matrix * mat
@@ -1025,7 +1025,7 @@ def psaimport(filename,context):
child.keyframe_insert("rotation_quaternion")
for bone in pose_bones:
- if bone.parent != None:
+ if bone.parent is not None:
whirlSingleBone(bone,Quaternion((0.707, 0, 0, -0.707)))
else:
bone.rotation_quaternion *= Quaternion((0.707, -0.707, 0, 0)) * Quaternion((0.707, 0, 0, -0.707))