Fix #144599: Cycles OSL node with external script does not update

Some code got lost in the refactor for OSL cameras.

Pull Request: https://projects.blender.org/blender/blender/pulls/144808
This commit is contained in:
Brecht Van Lommel
2025-08-19 18:33:37 +02:00
committed by Brecht Van Lommel
parent 869fc2cf4e
commit b5606b5634

View File

@@ -248,6 +248,10 @@ def update_script_node(node, report):
if node.mode == 'EXTERNAL':
# compile external script file
ok, oso_path, oso_file_remove = update_external_script(report, node.filepath, node.id_data.library)
if ok:
# Clear old internal bytecode, and also trigger node update if it was already cleared.
node.bytecode = ""
node.bytecode_hash = ""
elif node.mode == 'INTERNAL' and node.script:
# internal script, we will store bytecode in the node