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

Make Cloned() handle None. #249

Merged
merged 1 commit into from
Dec 18, 2015
Merged

Make Cloned() handle None. #249

merged 1 commit into from
Dec 18, 2015

Conversation

psigen
Copy link
Member

@psigen psigen commented Dec 16, 2015

Currently, Cloned(None) will throw the exception that "None is not in the cloned environment". This is a bit annoying in cases where you to clone an optional object reference, such as a variable that is either a KinBody or None.

This change adds logic to make Cloned(None) = None.

Currently, `Cloned(None)` will throw the exception that "`None` is not in the cloned environment".  This is a bit annoying in cases where you to clone an optional object reference, such as a variable that is either a KinBody or `None`.

This change adds logic to make `Cloned(None) = None`.
mkoval added a commit that referenced this pull request Dec 18, 2015
@mkoval mkoval merged commit 574bd9e into master Dec 18, 2015
@mkoval mkoval deleted the bugfix/clone_none branch December 18, 2015 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants