Commit 11dfd0ef authored by Georgios Dagkakis's avatar Georgios Dagkakis

Globals.findObjectFromId extended to find objects of all categories

parent 530ee417
......@@ -167,7 +167,7 @@ def getClassFromName(dotted_name):
# method finding objects by ID
# =======================================================================
def findObjectById(id):
for obj in G.ObjList:
for obj in G.ObjList + G.ModelResourceList + G.EntityList + G.ObjectInterruptionList:
if obj.id==id:
return obj
return None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment