Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ArranTuna
Copy link
Collaborator

Some objects are double sided by default, so SetDoubleSided must be called for them if you want it to be false.

Fixes: multitheftauto/mtasa-resources#230

To reproduce:
start editor
Add object 3851
Make sure doublesided = false
Save the map
Open the map
Notice it now says doublesided = true

crun isElementDoubledSided(getElementsByType("object")[1]) -- returns true
srun isElementDoubledSided(getElementsByType("object")[1]) -- returns false

PR fixes this desync. I guess this object is doublesided by default, and the object sync would only set true, never false.

Some objects are double sided by default, so SetDoubleSided must be called for them if you want it to be false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MTA Map Editor Object Issue
1 participant