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:
committed by
Brecht Van Lommel
parent
869fc2cf4e
commit
b5606b5634
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user