ar0551 / Wasp

Combinatorial Design with Grasshopper plug-in (LGPL) initiated by Andrea Rossi
https://linktr.ee/gh_wasp
GNU Lesser General Public License v3.0
54 stars 14 forks source link

Fix: Global Constraints do not work properly when mixing required and non-required #5

Closed ar0551 closed 2 years ago

ar0551 commented 2 years ago

The global constraints check function fails when mixing constraints which have the required options set to True with constraints which have it set to False. This happens because the constraints check function does not separate between the two, and adding a required constraint automatically makes all the optional constraints not considered.

ar0551 commented 2 years ago

Should be fixed in https://github.com/ar0551/Wasp/commit/2a08c9941feb81c24373063ff121e602ae804f5d Now testing, will be included in 0.5.005b release