From c16c064b21c7cd48c29040280960ba848551cf5d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 29 May 2024 13:52:02 +0200 Subject: [PATCH] fixed loading used model --- models.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/models.cpp b/models.cpp index 43b37d11..0796aa17 100644 --- a/models.cpp +++ b/models.cpp @@ -949,8 +949,10 @@ EX namespace models { dynamicval> ds(auto_restrict); auto_restrict = [&p] { return &vpconf == &p; }; - if(&p.model == &pmodel) - param_custom_int(pmodel, parameter_names(pp+"used_model", "projection|Poincare|Klein|half-plane|perspective"), menuitem_projection, '1'); + if(&p.model == &pmodel) { + auto par = param_custom_int(pmodel, parameter_names(pp+"used_model", "used model"), menuitem_projection, '1'); + par->help_text = "projection|Poincare|Klein|half-plane|perspective"; + } else param_enum(p.model, parameter_names(pp+"used_model", sp+"used model"), mdDisk); param_matrix(p.mori().v2, pp+"mori", 2)