@mctwist @0xabad1dea Bug: if I have two layers, one named "layer" and another named "layer copy" and I try to copy "layer", this code will try to create "layer copy", which already exists
Solution: keep resolving until you have an unused name:
while layerExists(layer_name)
layer_name += " copy"
oxyte@mstdn.social
Posts
-
what every artist wants: -
#Meta only exists for two reasons:@stux Meta exists for 638 reasons
-
We all have heard about the Nobel Prize but did you know what Alfred Nobel was famous for before?@stux Did the recent Veritasium video inspire this post? :3
-
Instead of "enjoying" their massive "wealth", billionaires kept getting greedier and greedier to a point where the people had enough@stux A nice little "what the fuck" moment I had when perusing "Wealth of Nations," a seminal work by Adam Smith, essentially the founder of capitalism, was when I found out that Smith calls landlords basically cruel parasites who contribute nothing to society and collect rent that they do not deserve (It's in chapter 11). To see the founder of capitalism espouse a view that's nowadays commonly associated with far-left movements kinda woke me up.
-
I'm adding some fun abilities like@stux You inspire me to get into gamedev
But being a sworn embedded and systems dev, I'd probably do the game in pure C99
Might be a cool experience -
This is why we don’t need #US #cars in #Europe@stux At that point, making space for the tram with a sledgehammer should be allowed.