diff --git a/launcher/control.py b/launcher/control.py index 53114f9..aa3497f 100644 --- a/launcher/control.py +++ b/launcher/control.py @@ -420,8 +420,10 @@ def on_asset_changed(self, index): # TODO(marcus): These are going to be accessible # from database, not from the environment. asset = io.find_one({"_id": frame["asset"]}) - if "hierarchy" in asset["data"]: - api.Session["AVALON_HIERARCHY"] = asset["data"]["hierarchy"] + if "parents" in asset["data"]: + api.Session["AVALON_HIERARCHY"] = "/".join( + asset["data"]["parents"] + ) frame.update(asset) frame["environment"].update({ "asset_%s" % key: value