Skip to content

Commit

Permalink
change vector * matrix (no longer allowed) to matrix * vector
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence D'Oliveiro committed Nov 12, 2011
1 parent 028df26 commit d3e015c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions treadtiler.py
Expand Up @@ -25,7 +25,7 @@
{
"name" : "Tread Tiler",
"author" : "Lawrence D'Oliveiro <ldo@geek-central.gen.nz>",
"version" : (0, 5, 6),
"version" : (0, 5, 7),
"blender" : (2, 5, 6),
"api" : 32411,
"location" : "View 3D > Edit Mode > Tool Shelf",
Expand Down Expand Up @@ -478,7 +478,7 @@ def action_common(self, context, redoing) :
+
VertexOffset * ThisSin * ReplicationUnitVector
)
ThisVertex = (ThisVertex + VertexOffset) * ThisXForm
ThisVertex = ThisXForm * (ThisVertex + VertexOffset)
if VertIndex in MergedWithVertex :
# compute merger of vertex in TileLine1 in this copy with
# TileLine2 in previous copy
Expand All @@ -499,8 +499,6 @@ def action_common(self, context, redoing) :
)
ThatVertex = \
(
(ThatVertex + VertexOffset)
*
(
mathutils.Matrix.Translation(RotationCenter)
*
Expand All @@ -520,6 +518,8 @@ def action_common(self, context, redoing) :
*
mathutils.Matrix.Translation(- RotationCenter)
)
*
(ThatVertex + VertexOffset)
)
ThisVertex = (ThisVertex + ThatVertex) / 2
#end if
Expand Down

0 comments on commit d3e015c

Please sign in to comment.