-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Scripting : Make MapEditor|TilesetEditor.currentWangSet and MapEditor|TilesetEditor.currentWangColorIndex writeable #4105
Conversation
The error message is from I don't recall now what this sort-filter-model is used for (I couldn't immediately find a reason for it to exist in the current code). The easiest thing to do for now is to call Hmm, in fact, you could likely adjust Just note that there's an assert in |
Thanks, I think I implemented what you suggested. It's working without errors now. tiled_wangset._color.mp4 |
There's one remaining issue with this change, which is that the docs for the Rather than just fixing the docs change, it would probably be worth looking into making the properties also writable for the |
Oh whoops. Sorry about that, I'll take a look. |
Added and seems to work for me locally in the Tileset editor as well. |
I guess this is enough.
Fix #4101
currentWangSet setter: seems to be working:
Currently crashing, I'm doing something wrong setting the currentWangColorIndexEdit: working :I didn't see an existing public method to change the selection so I tried to make one based on reading the rest of the code in wangdock.cpp . Maybe I missed something existing or just have a logic error in my setter. Visually at least, it seems to change the color selection though.
Causes crash:
TODO (@dogboydog )