Wings 3D Development Forum
[Fixed] Octotoad makes crash when to set Height 0.0 less. - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: [Fixed] Octotoad makes crash when to set Height 0.0 less. (/showthread.php?tid=2213)



[Fixed] Octotoad makes crash when to set Height 0.0 less. - tkbd - 11-07-2016

On Wings3D v2.1.2, I test set 0.0 value for all Primitives in their dialog.
Octotoad only crashed when set Height to 0.0 or negative value.

The crash log is here.
Quote:Dump written 2016-11-7_22-6
Version: 2.1.2
Window: geom
Reason: badarith

Short stack trace:
[]

Long stack trace:
[{wings_shapes,'-octotoad/2-lc$^0/1-0-',2,
[{file,"wings_shapes.erl"},{line,172}]},
{wings_shapes,octotoad,2,[{file,"wings_shapes.erl"},{line,172}]},
{wings,command_1,2,[{file,"wings.erl"},{line,734}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,79}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,617}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,935}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,901}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,807}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,709}]},
{wings_wm,get_and_dispatch,0,[{file,"wings_wm.erl"},{line,630}]},
{wings,init,1,[{file,"wings.erl"},{line,143}]}]



RE: [Fixed] Octotoad makes crash when to set Height 0.0 less. - dgud - 11-09-2016

Hmm the height parameter was backwards as well.
Instead of Scale*Pos it was Pos/Scale, so a higher height caused it to be smaller.
And a height of zero became a division by zero.

Fixed.


RE: [Fixed] Octotoad makes crash when to set Height 0.0 less. - tkbd - 11-11-2016

I see, Thank you for your quick fix.