We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
here is my code:
if mr.m_GameObject: gameobject = mr.m_GameObject.read() export_dir = os.path.join(dst_folder, gameobject.name) mr.export(export_dir)
just follow your doc example. it raises an exception local variable 'mesh' referenced before assignment at line mr.export(export_dir).
local variable 'mesh' referenced before assignment
mr.export(export_dir)
here is your code:
# MeshRendererExporter.py def export_mesh_renderer(obj: Renderer, export_dir: str) -> None: env = mesh.assets_file.enviroment env.fs.makedirs(export_dir, exist_ok=True)
i think it should be:
env = obj.assets_file.environment env.fs.makedirs(export_dir, exist_ok=True)
mesh is a field name mistake. and enviroment should be environment
mesh
enviroment
environment
The text was updated successfully, but these errors were encountered:
No branches or pull requests
here is my code:
just follow your doc example.
it raises an exception
local variable 'mesh' referenced before assignment
at linemr.export(export_dir)
.here is your code:
i think it should be:
mesh
is a field name mistake. andenviroment
should beenvironment
The text was updated successfully, but these errors were encountered: