-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Clear out GeometryTileWorker::layers during redoLayout #7648
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,6 +215,8 @@ void GeometryTileWorker::redoLayout() { | |
BucketParameters parameters { id, obsolete, *featureIndex, mode }; | ||
|
||
std::vector<std::vector<std::unique_ptr<Layer>>> groups = groupByLayout(std::move(*layers)); | ||
layers = nullopt; | ||
|
||
for (auto& group : groups) { | ||
if (obsolete) { | ||
return; | ||
|
@@ -280,7 +282,7 @@ bool GeometryTileWorker::hasPendingSymbolDependencies() const { | |
} | ||
|
||
void GeometryTileWorker::attemptPlacement() { | ||
if (!data || !layers || !placementConfig) { | ||
if (!placementConfig) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need access to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a feeling at least one of these guards was needed to ensure that the body of |
||
return; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reset the
optional