-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve WangBrush and TileLayerWangEdit behavior with empty color #3774
Commits on Jul 6, 2023
-
Improve WangBrush and TileLayerWangEdit behavior with empty color
Mostly removing the special handling for erasing and changing the way filling is implemented.
Configuration menu - View commit details
-
Copy full SHA for 745addc - Browse repository at this point
Copy the full SHA 745addcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09aaeff - Browse repository at this point
Copy the full SHA 09aaeffView commit details -
* Slightly simplified updateAdjacent (one less call to "oppositeIndex"). * In wangIdFromSurrounding, prefer colors over "no color". * In WangFiller::wangIdFromSurroundings, don't let tiles outside of a fixed map contribute to the WangId. * Don't require tiles on the border of the region to match their surroundings, but only prefer them to.
Configuration menu - View commit details
-
Copy full SHA for ccb1c66 - Browse repository at this point
Copy the full SHA ccb1c66View commit details -
Fixed WangBrush rotational symmetry mode
Also slightly optimized it based on WangId::mergeWith.
Configuration menu - View commit details
-
Copy full SHA for af82077 - Browse repository at this point
Copy the full SHA af82077View commit details -
Disabled placement of empty tiles by Stamp Brush in Terrain Fill mode
Also exposed the new TileLayerWangEdit.erasingEnabled property in the scripting API. Another change is that empty tiles no longer contribute to the desired WangId for the Terrain Fill mode (when corrections are disabled). Previously, only tiles outside of the map would not contribute to the desired WangId. This change yields nicer behavior when using the Wang Fill mode with the Stamp Brush, but it may need to be reconsidered for the Shape Fill tool or a later Terrain Fill tool.
Configuration menu - View commit details
-
Copy full SHA for 415e016 - Browse repository at this point
Copy the full SHA 415e016View commit details -
WangFiller: Don't try to make changes outside of a fixed map
This avoids the problem, that tiles set outside of the map by the algorithm will affect the tiles inside the map, which is not desirable. Also, explicitly set tiles that are outside of the map to empty. This seems like a good idea, since it means the preview will still highlight those areas, but it will not affect the map once applied.
Configuration menu - View commit details
-
Copy full SHA for cca4544 - Browse repository at this point
Copy the full SHA cca4544View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03b03cd - Browse repository at this point
Copy the full SHA 03b03cdView commit details -
Improved behavior on the edge of the region when corrections are disa…
…bled Don't let unset indices from the WangId based on surroundings override colors from currently present tiles.
Configuration menu - View commit details
-
Copy full SHA for 70c0ca0 - Browse repository at this point
Copy the full SHA 70c0ca0View commit details