FragmentManager.getData gets more data than expected with the Highlighter and/or guidsToModelIdMap
Describe the bug 📝
I get data when selection occurs and also by direct call from the guids of the entities.
So I use FragmentsManager.getData function and I give it a ModelIdMap as parameter;
However if there are some other modelId entries with zero (0) sized Sets exist in the map. The getData function returns all of the items for that modelIds which have zero (0) sets.
This is both true for outputs of these maps;
highlighter.selection.select and FragmentsManager.guidsToModelIdMap
For example, a ModelIdMap is here from guidsToModelIdMap for just 1 guid from Architectural model:
{Architectural: Set(1), Site: Set(0), Facades: Set(0), Electrical: Set(0), Plumbing: Set(0)}
That is ok but,
FragmentsManager.getData returns 1 item for Architectural and all of the other items for Site, Facades, Electricial, Plumbing models. (and if models are big, it hangs)
For now, I had to copy ModelIdMap without zero sized Set entries to overcome.
Expected Result: getData must not return any items for zero sized entries.
Reproduction ▶️
No response
Steps to reproduce 🔢
No response
System Info 💻
^3.1
Used Package Manager 📦
npm
Error Trace/Logs 📃
No response
Validations ✅
- [x] Read the docs.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
- [x] Check that this is a concrete bug. For Q&A join our Community.
- [x] The provided reproduction is a minimal reproducible example of the bug.