Page 1 of 1
[21.7] Can not update code in OSL node
Posted: Sun May 10, 2020 6:57 pm
by grimm
Hi,
As I am working on some OSL code, and after I have done the initial load, you can no longer reload any new or changed code into the node. I have tried to delete the node and add a new one, but as long as the name doesn't change it will not update. The only way I have found to get around this is to quit and restart Blender, which is a pain.
Jason
Re: [21.7] Can not update code in OSL node
Posted: Mon May 11, 2020 12:11 pm
by linograndiotoy
Sounds odd. Can you please make a video showing the issue?
Re: [21.7] Can not update code in OSL node
Posted: Mon May 11, 2020 3:44 pm
by grimm
Unfortunately my system is not setup for a video. But it's very easy to test...
1) load an OSL script into the node (I used an external script).
2) make a change to the script, the easiest to see is if you make a change to an input pin name.
3) reload the script and/or recompile and the node will not change.
It's almost like the code is cached but the cache doesn't get updated?
Jason
Re: [21.7] Can not update code in OSL node
Posted: Mon May 11, 2020 4:48 pm
by linograndiotoy
It worked here.
Please check if that works for you in the next available build.
Re: [21.7] Can not update code in OSL node
Posted: Mon May 11, 2020 5:16 pm
by grimm
Thanks, but that is an internal script, which works. My problem is with external scripts, but it's good to have a workaround for now.
Jason
Re: [21.7] Can not update code in OSL node
Posted: Mon May 11, 2020 6:19 pm
by linograndiotoy
grimm wrote:Thanks, but that is an internal script, which works. My problem is with external scripts, but it's good to have a workaround for now.
Jason
Great then!