Skip to content

Fix tree materials not being applied correctly - #257

Merged
ab9rf merged 1 commit into
DFHack:masterfrom
ctrlaltmilk:tree-fix
Jul 13, 2026
Merged

Fix tree materials not being applied correctly#257
ab9rf merged 1 commit into
DFHack:masterfrom
ctrlaltmilk:tree-fix

Conversation

@ctrlaltmilk

Copy link
Copy Markdown
Contributor

The two contributing issues were that std::assignable_from<> requires that the LHS is a lvalue reference when the RHS is a primitive type (like df::plant_tree_tile is), as well as the operator precedence for the downward check being incorrect.

@ab9rf
ab9rf merged commit db9263b into DFHack:master Jul 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants