[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2831] trunk/py/scripts/addons/ io_anim_bvh/import_bvh.py: remove unneeded check for parent
Campbell Barton
ideasman42 at gmail.com
Sat Dec 31 06:40:58 CET 2011
Revision: 2831
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2831
Author: campbellbarton
Date: 2011-12-31 05:40:45 +0000 (Sat, 31 Dec 2011)
Log Message:
-----------
remove unneeded check for parent
Modified Paths:
--------------
trunk/py/scripts/addons/io_anim_bvh/import_bvh.py
Modified: trunk/py/scripts/addons/io_anim_bvh/import_bvh.py
===================================================================
--- trunk/py/scripts/addons/io_anim_bvh/import_bvh.py 2011-12-31 05:31:45 UTC (rev 2830)
+++ trunk/py/scripts/addons/io_anim_bvh/import_bvh.py 2011-12-31 05:40:45 UTC (rev 2831)
@@ -409,10 +409,10 @@
bvh_node.temp.parent = bvh_node.parent.temp
# Set the connection state
- if not bvh_node.has_loc and\
- bvh_node.parent and\
- bvh_node.parent.temp.name not in ZERO_AREA_BONES and\
- bvh_node.parent.rest_tail_local == bvh_node.rest_head_local:
+ if((not bvh_node.has_loc) and
+ (bvh_node.parent.temp.name not in ZERO_AREA_BONES) and
+ (bvh_node.parent.rest_tail_local == bvh_node.rest_head_local)):
+
bvh_node.temp.use_connect = True
# Replace the editbone with the editbone name,
More information about the Bf-extensions-cvs
mailing list