From 0f8c303b2e060d5b454f33b9cf3d82e65997e55f Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Fri, 8 Jan 2010 01:40:47 -0800 Subject: [PATCH] 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] --- mouse.cpp | 4 ++++ wishlist.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/mouse.cpp b/mouse.cpp index 8939a74..6c87ae7 100644 --- a/mouse.cpp +++ b/mouse.cpp @@ -1103,6 +1103,10 @@ void GraphicsWindow::MouseLeftDoubleClick(double mx, double my) { ClearSuper(); Constraint *c = SK.GetConstraint(constraintBeingEdited); + if(!c->HasLabel()) { + // Not meaningful to edit a constraint without a dimension + return; + } if(c->reference) { // Not meaningful to edit a reference dimension return; diff --git a/wishlist.txt b/wishlist.txt index 339bf0d..9b8387e 100644 --- a/wishlist.txt +++ b/wishlist.txt @@ -1,5 +1,6 @@ ----- +better level of detail associative entities from solid model, as a special group some kind of import faster triangulation