Skip to content

#5946 Fix excessive 'allowed to terraform' warning#5949

Merged
akleshchev merged 1 commit into
developfrom
andreyk/viewer_5946
Jun 24, 2026
Merged

#5946 Fix excessive 'allowed to terraform' warning#5949
akleshchev merged 1 commit into
developfrom
andreyk/viewer_5946

Conversation

@akleshchev

Copy link
Copy Markdown
Contributor

canTerraformParcel appears to only be used for gating alertNoTerraformParcel so this should be safe. PF_ALLOW_TERRAFORM flag is deprecated, but there are still sims with this setting and it should be respected.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the land brush terraforming permission check to better respect parcel-level “allow terraform” settings, preventing spurious “not allowed to terraform” notifications while editing terrain.

Changes:

  • Update LLToolBrushLand::canTerraformParcel() to treat LLParcel::getAllowTerraform() as sufficient to allow terraforming (for purposes of suppressing the warning).
  • Reformat the permission expression for readability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread indra/newview/lltoolbrush.cpp Outdated
@akleshchev akleshchev merged commit 7d8e9d9 into develop Jun 24, 2026
15 checks passed
@akleshchev akleshchev deleted the andreyk/viewer_5946 branch June 24, 2026 13:36
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Viewer triggers "You are not allowed to terraform parcel [PARCEL_NAME]" alert when terraforming on Edit Terrain: Everyone parcels

3 participants