Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions remix_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,19 @@ def ingest_texture(self, pbr_type, texture_file_path, project_output_dir_abs):

output_paths = []
data = res.get("data", {})
if "completed_schemas" in data:
for schema in data["completed_schemas"]:
plugin_results = [schema.get("context_plugin", {})] + schema.get("check_plugins", [])
for pr in plugin_results:
for flow in pr.get("data", {}).get("data_flows", []):
if flow.get("channel") == "ingestion_output":
output_paths.extend(flow.get("output_data", []))
schemas = data.get("completed_schemas")
if schemas:
for schema in schemas:
Comment on lines +463 to +465
cp = schema.get("context_plugin")
if cp and "data" in cp and "data_flows" in cp["data"]:
Comment on lines +463 to +467
for flow in cp["data"]["data_flows"]:
if flow.get("channel") == "ingestion_output" and "output_data" in flow:
output_paths.extend(flow["output_data"])
Comment on lines +466 to +470
for pr in schema.get("check_plugins", ()):
if "data" in pr and "data_flows" in pr["data"]:
for flow in pr["data"]["data_flows"]:
if flow.get("channel") == "ingestion_output" and "output_data" in flow:
output_paths.extend(flow["output_data"])

if not output_paths and "content" in data:
output_paths.extend(data["content"])
Expand Down
Loading