Skip to content
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

ProtoModel improvements #77

Merged
merged 9 commits into from
Dec 8, 2019
Merged

ProtoModel improvements #77

merged 9 commits into from
Dec 8, 2019

Conversation

JoshDreamland
Copy link
Member

Successor to #76. Fixes some issues with ProtoModels, and adds new functionality.

fundies and others added 9 commits November 22, 2019 18:12
…ance to prevent crash on dbl click, force the room editor to constantly redraw
…ance to prevent crash on dbl click, force the room editor to constantly redraw
This stops various views of the model from shitting all over the data while the removal is under way.
<string>Room</string>
</property>
<property name="windowIcon">
<iconset resource="../../RGM_/images.qrc">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish we could refer to this folder any way other than ../../RGM_...

bkg = bkg->GetSubModel(TreeNode::kBackgroundFieldNumber);
if (!bkg) continue;

int x = sortedTiles->data(sortedTiles->index(row, Room::Tile::kXFieldNumber)).toInt();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I... wouldn't do this. I'd add int_data() to the model that just asks the proto for an int32 directly. This is probably a big part of why the room editor spins up my fan so bad.

@JoshDreamland JoshDreamland merged commit 1897c16 into master Dec 8, 2019
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