Don't count point-coincident constraints towards the limit (when
the software is unlicensed), and change the limit to 25. [git-p4: depot-paths = "//depot/solvespace/": change = 1985]
This commit is contained in:
parent
7eefb79127
commit
314227ead7
|
@ -103,10 +103,15 @@ void Constraint::ConstrainCoincident(hEntity ptA, hEntity ptB) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Constraint::MenuConstrain(int id) {
|
void Constraint::MenuConstrain(int id) {
|
||||||
if(SK.constraint.n > 30) {
|
int nt = 0;
|
||||||
|
Constraint *ct;
|
||||||
|
for(ct = SK.constraint.First(); ct; ct = SK.constraint.NextAfter(ct)) {
|
||||||
|
if(ct->type != POINTS_COINCIDENT) nt++;
|
||||||
|
}
|
||||||
|
if(nt > 25) {
|
||||||
if((!SS.license.licensed) && SS.license.trialDaysRemaining <= 0) {
|
if((!SS.license.licensed) && SS.license.trialDaysRemaining <= 0) {
|
||||||
Error("The 90-day trial of SolveSpace has expired, and the light "
|
Error("The 90-day trial of SolveSpace has expired, and the light "
|
||||||
"version does not support more than 30 constraints in a "
|
"version does not support more than 25 constraints in a "
|
||||||
"single file.\r\n\r\n"
|
"single file.\r\n\r\n"
|
||||||
"Choose Help -> Website / Manual to purchase a license.");
|
"Choose Help -> Website / Manual to purchase a license.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user