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:
authorBastien Montagne <montagne29@wanadoo.fr>2014-10-03 14:58:10 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-10-03 15:00:57 +0400
commit5be03a4071edc59968e2cd58ab241c0e2e79ba52 (patch)
tree6c17149968f97b77c33c7c8c2b3f1ca44e408c20
parent34998c87c0baf8c502c34ff5526d72c57f8821a9 (diff)
FBX export: fix a strange bug where 'return a_list and a_bool' could return a_list instead of a bool?!
-rw-r--r--io_scene_fbx/fbx_utils.py2
-rw-r--r--io_scene_fbx_experimental/fbx_utils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index df215f9d..6264f90f 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -671,7 +671,7 @@ class AnimationCurveNodeWrapper:
def __bool__(self):
# We are 'True' if we do have some validated keyframes...
- return self._keys and True in ((True in k[2]) for k in self._keys)
+ return bool(self._keys) and (True in ((True in k[2]) for k in self._keys))
def add_group(self, elem_key, fbx_group, fbx_gname, fbx_props):
"""
diff --git a/io_scene_fbx_experimental/fbx_utils.py b/io_scene_fbx_experimental/fbx_utils.py
index a15b1e14..9cd55039 100644
--- a/io_scene_fbx_experimental/fbx_utils.py
+++ b/io_scene_fbx_experimental/fbx_utils.py
@@ -671,7 +671,7 @@ class AnimationCurveNodeWrapper:
def __bool__(self):
# We are 'True' if we do have some validated keyframes...
- return self._keys and True in ((True in k[2]) for k in self._keys)
+ return bool(self._keys) and (True in ((True in k[2]) for k in self._keys))
def add_group(self, elem_key, fbx_group, fbx_gname, fbx_props):
"""