Hi, I've made a script for work to help speed up the process for baking shadows ground plane. It works how I like apart from all of sudden, it keeps adding duplicates of the button to the shelf rather than just updating it. Would anyone mind looking at the script and telling me what is causing this? Feel free to provide…
What's causing this is that your proc for creating the button doesn't check to see if it already exists. :) Wrap it inside of an if like this. Also you're labeling it with an empty string in your script, so I just made one up here that we can query. edit: crap, this doesn't actually work, and according to this thread,…