Official Codebase of 3DCodeVerse
Python
render_scene: the scene driver's GPU switch comes from Settings alone — no raw os.environ check beside it
gaoypeng3dd51c983017
diff --git a/harness/codeverse3d/spatial/render_scene.py b/harness/codeverse3d/spatial/render_scene.pyindex 3277aeff..288b9011 100644--- a/harness/codeverse3d/spatial/render_scene.py+++ b/harness/codeverse3d/spatial/render_scene.py@@ -16,7 +16,6 @@ from __future__ import annotationsimport jsonimport logging-import osfrom collections.abc import Sequencefrom pathlib import Pathfrom typing import Any@@ -74,7 +73,7 @@ def run_scene_script(script: str, args: Sequence[str], *, timeout_s: float, cwd:raise SceneRenderError(f"missing node driver {path}")env_extra: dict[str, str] = {}gpu = get_settings().render.gpu- if gpu and "C3D_RENDER_GPU" not in os.environ:+ if gpu: # Settings already folds the flat C3D_RENDER_GPU in; the driver reads only that spellingenv_extra["C3D_RENDER_GPU"] = gpuargv = [str(a) for a in args]