From 4c254df9cc1e67c5c55666f329f14398a59fdaf5 Mon Sep 17 00:00:00 2001 From: Morteza Karimi <2769101+karimi@users.noreply.github.com> Date: Mon, 18 Mar 2024 16:32:52 -0700 Subject: [PATCH] Hack to point to rhino.geometry (#126) --- quasar_site/src/ViewModel.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/quasar_site/src/ViewModel.js b/quasar_site/src/ViewModel.js index 5c3a5677..3d7e6266 100644 --- a/quasar_site/src/ViewModel.js +++ b/quasar_site/src/ViewModel.js @@ -205,7 +205,15 @@ const ViewModel = { const typemap = {}; ApiInfo.forEach((type) => { if (type.dataType !== DataTypes.NAMESPACE) { - typemap[type.name] = type; + if (typemap[type.name]) { + let existing = typemap[type.name]; + if (existing.namespace != "Rhino.Geometry") { + //In some rare instances, classes have the same name, Rhino.Geometry should take precedence RH-80781 + typemap[type.name] = type; + } + } else { + typemap[type.name] = type; + } } }); _typemap = typemap;