trogluddite ·
Following a bug report about my Soopa Loopa schematic, I have discovered an anomaly in the behaviour of the 'grid to pixel' and 'pixel to grid' conversion primitives. Not sure if it is new to SM2 or not, but it is a relatively trivial problem once you know how to deal with it.
The grid size primitives will only update to the current default grid size when they receive a trigger. I have some lovely fixed background bitmaps and bitmao knobs on my GUI, but when loaded by users who have changed the default grid size from the usual 8px, the whole GUI got really mixed up. Turns out that the controls did get resized to fit the new grid (always plenty of triggers in controls), but the background elements stayed at their old size because there was no trigger to make the size update.
Simple work around is to use an 'On Load' at the px-to-grid/grid-to-px, to make sure that the zoom setting gets read upon load - though the graphics still won't update if the setting is changed in the middle of an editing session (you'd have to save/reload the schematic)
I've emailed Malc asking if it possible to make the primitives update dynamically.