Beta 4 Bug Report: 2 quick ones in Freehand

(This forum has been closed. Please use the General Moho Discussion forum.)

Moderators: Víctor Paredes, slowtiger

Locked
User avatar
7feet
Posts: 840
Joined: Wed Aug 04, 2004 5:45 am
Location: L.I., New Yawk.
Contact:

Beta 4 Bug Report: 2 quick ones in Freehand

Post by 7feet »

1 Got the noted error in this section. tapped the pen by mistake, looked like one point but got this error. It's happened 2 or 3 other times. Set to use pen pressure, taper start, and taper end.:

if ((not self.autoClose) and (self.taperStart or self.taperEnd)) then
-- taper the beginning and/or the end of the new line
local f = moho:NewShapeLineWidth()
local dist = 0
local prevV = LM.Vector2:new_local()
prevV:Set(mesh:Point(self.startingPoint).fPos) --M_Mesh:Point out of range - attempt to index a nil walue
for i = self.startingPoint + 1, mesh:CountPoints() - 1 do
local pt = mesh:Point(i)
if (pt.fWidth < 0) then
pt.fWidth = f
end
dist = dist + (pt.fPos - prevV):SquaredMag()
prevV:Set(pt.fPos)
end

2. I was wondering why freehand would Autoweld sometimes when the checkbox isn't filled. There are a few instances where you are using LM_TranslatePoints.autoWeld instead of LM_Freehand.autoWeld to do the check. Thought I should point that out.

--Brian
Locked