danBhentschel / CGSpunk

CG enhancement toolset
15 stars 7 forks source link

Should only add buttons to the IDE if not already there #24

Closed danBhentschel closed 8 years ago

danBhentschel commented 8 years ago

Not sure if this is just an issue when debugging the extension or if it can happen in regular use, but I sometimes have multiple copies of the added buttons (SWAP, RUN_BATCH). The code should check for existence and only add if not already there.

danBhentschel commented 8 years ago

I think I've figured out what's going on here. If I go into a non-multiplayer IDE, it starts a background loop that is waiting for the agent selection area. If I then go into a multiplayer IDE, it starts a second loop, and they both end up adding buttons two (or more) times.