morse-simulator / morse

The Modular OpenRobots Simulation Engine
http://morse-simulator.github.io/
Other
351 stars 155 forks source link

component_config.py overwrites custom blender script #760

Closed nicolaje closed 6 years ago

nicolaje commented 7 years ago

In a custom .blend environment with a lot of python scripts included with logic blocks, the script whose name is the last according to descending alphabetic order gets overwritten by "component_config.py"

Things needed to reproduce the bug:

After a bit of digging, it seems that in "abstractcomponent.py", in write_config, bpymorse.get_last_text() does not return the last component created, but the last component sorted alphabetically.