The code looks a bit strange to me. AFAICT it should merge layers with the same "Base" label. F.e. "MyLayer001" should be merged with "MyLayer".
I imagine that this tool will primarily be used after using Std_MergeProjects. But when you merge projects you also end up with two layer containers. Which this tool does not seem to handle.
Code: Select all
OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.25220 (Git)
Build type: Release
Branch: master
Hash: 46282db7c8c65d1205a4cd03499d4beadb1573c6
Python version: 3.8.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Dutch/Netherlands (nl_NL)