Wings 3D Development Forum

Full Version: [Fixed] Octotoad makes crash when to set Height 0.0 less.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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}]}]
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.
I see, Thank you for your quick fix.