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

Fix for `Destroying object multiple times. Don't use DestroyImmediate… #1221

Merged
merged 3 commits into from
Jan 5, 2019

Conversation

greglemonmapbox
Copy link
Contributor

@greglemonmapbox greglemonmapbox commented Jan 4, 2019

Description of changes

Fix for Destroying object multiple times. Don't use DestroyImmediate on the same object in OnDisable or OnDestroy., which passes the destroy immeidate code in an anonymous function to EditorApplication.delayCall.

QA checklists

  • Add relevant code comments. Every API class and method should have <summary> description as well as description of parameters.
  • Add tests for new/changed/updated classes and methods!!!
  • Check out conventions in CONTRIBUTING.md.
  • Check out conventions in CODING-STYLE.md
  • Update the changelog
  • Update documentation.

Reviewers

Tag your reviewer(s). Choose wisely.

… on the same object in OnDisable or OnDestroy.`, which passes the destroy immeidate code in an anonymous function to EditorApplication.delayCall.
greglemonmapbox and others added 2 commits January 4, 2019 14:38
…tractMap.DestroyTileProvider sets private _tileProvider = null after Destroy call; Added null check to AbstractMap.DisableEditorPreview { _mapVisualizer.ClearMap() }; removed DisableEditorPreview call from AbstractMap.OnDestroy(); added conditional DisableEditorPreview call to AbstractMap.Awake.
@abhishektrip abhishektrip merged commit 1a0bd3b into release/v2.0.1 Jan 5, 2019
@abhishektrip abhishektrip deleted the preview-to-play-destroy-immediate-fix branch October 15, 2019 23:34
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