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

added --show-layer option #2858

Merged
merged 1 commit into from
Jul 14, 2020
Merged

added --show-layer option #2858

merged 1 commit into from
Jul 14, 2020

Conversation

varnholt
Copy link
Contributor

No description provided.

@varnholt varnholt closed this Jul 13, 2020
@varnholt varnholt reopened this Jul 13, 2020
@varnholt
Copy link
Contributor Author

@bjorn There you go

@@ -132,6 +132,11 @@ bool TmxRasterizer::shouldDrawLayer(const Layer *layer) const
if (mLayersToHide.contains(layer->name(), Qt::CaseInsensitive))
return false;

if (!mLayersToShow.empty()) {
if (!mLayersToShow.contains(layer->name(), Qt::CaseInsensitive))
Copy link
Member

@bjorn bjorn Jul 14, 2020

Choose a reason for hiding this comment

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

I wonder if it would make sense to handle group layers, in that naming a group layer should show all its child layers. I think it does, but that should then also apply to the hiding of layers and should be in a different change.

@bjorn bjorn merged commit a41b332 into mapeditor:master Jul 14, 2020
@bjorn
Copy link
Member

bjorn commented Jul 14, 2020

Thanks a lot!

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