+ fix bug in cone where also a radius of 0 must be allowed
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5231 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
69cec966d6
commit
b9e1a370e7
|
@ -418,9 +418,9 @@ short Cone::mustExecute() const
|
|||
|
||||
App::DocumentObjectExecReturn *Cone::execute(void)
|
||||
{
|
||||
if (Radius1.getValue() < Precision::Confusion())
|
||||
if (Radius1.getValue() < 0)
|
||||
return new App::DocumentObjectExecReturn("Radius of cone too small");
|
||||
if (Radius2.getValue() < Precision::Confusion())
|
||||
if (Radius2.getValue() < 0)
|
||||
return new App::DocumentObjectExecReturn("Radius of cone too small");
|
||||
if (Height.getValue() < Precision::Confusion())
|
||||
return new App::DocumentObjectExecReturn("Height of cone too small");
|
||||
|
|
Loading…
Reference in New Issue
Block a user