diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-09 00:36:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-09 00:36:44 +0300 |
commit | c05f4813b650b8b4d45c172c549947e562bf71aa (patch) | |
tree | 6f9a4887882a35da09fe6998bbcb318426cb4877 /io_import_scene_unreal_psk.py | |
parent | cf8e2d201c86bfd6e8dc5817c8b6748787fd2182 (diff) |
incorrectly switched mesh.update() --> mesh.update_tag(),
update_tag() tags for depsgraph update only, update() executes normal recalculation and creates edge data.
Diffstat (limited to 'io_import_scene_unreal_psk.py')
-rw-r--r-- | io_import_scene_unreal_psk.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/io_import_scene_unreal_psk.py b/io_import_scene_unreal_psk.py index 63013ea4..d6686fc2 100644 --- a/io_import_scene_unreal_psk.py +++ b/io_import_scene_unreal_psk.py @@ -396,8 +396,8 @@ def pskimport(infile,importmesh,importbone,bDebugLogPSK): newbone.parent = parentbone rotmatrix = bone.bindmat.to_matrix().to_4x4().to_3x3() # XXX, redundant matrix conversion? - #parent_head = parentbone.head * parentbone.matrix.to_quaternion().inverse() - #parent_tail = parentbone.tail * parentbone.matrix.to_quaternion().inverse() + #parent_head = parentbone.head * parentbone.matrix.to_quaternion().inverted() + #parent_tail = parentbone.tail * parentbone.matrix.to_quaternion().inverted() #location=Vector(pos_x,pos_y,pos_z) #set_position = (parent_tail - parent_head) + location #print("tmp head:",set_position) @@ -467,7 +467,7 @@ def pskimport(infile,importmesh,importbone,bDebugLogPSK): #RWghts fields = PntIdx|BoneIdx|Weight RWghts.sort() printlog( "len(RWghts)=" + str(len(RWghts)) + "\n") - #Tmsh.update_tag() + #Tmsh.update() #set the Vertex Colors of the faces #face.v[n] = RWghts[0] @@ -503,7 +503,7 @@ def pskimport(infile,importmesh,importbone,bDebugLogPSK): me_ob.faces.foreach_set("vertices_raw", faces) me_ob.faces.foreach_set("use_smooth", [False] * len(me_ob.faces)) - me_ob.update_tag() + me_ob.update() #=================================================================================================== #UV Setup |