Oops, it was possible to edit the dimension for any constraint, not

just those that actually have associated dimensions. Amazing how
long that bug's been sitting there.

[git-p4: depot-paths = "//depot/solvespace/": change = 2099]
This commit is contained in:
Jonathan Westhues 2010-01-08 01:40:47 -08:00
parent ae5b297475
commit 0f8c303b2e
2 changed files with 5 additions and 0 deletions

View File

@ -1103,6 +1103,10 @@ void GraphicsWindow::MouseLeftDoubleClick(double mx, double my) {
ClearSuper(); ClearSuper();
Constraint *c = SK.GetConstraint(constraintBeingEdited); Constraint *c = SK.GetConstraint(constraintBeingEdited);
if(!c->HasLabel()) {
// Not meaningful to edit a constraint without a dimension
return;
}
if(c->reference) { if(c->reference) {
// Not meaningful to edit a reference dimension // Not meaningful to edit a reference dimension
return; return;

View File

@ -1,5 +1,6 @@
----- -----
better level of detail
associative entities from solid model, as a special group associative entities from solid model, as a special group
some kind of import some kind of import
faster triangulation faster triangulation