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

STCC-128 Deleted Uservariables are now created by the converter #62

Merged
merged 1 commit into from
Feb 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/scratchtocatrobat/converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,8 @@ def _convert_variable_block(self):
if user_variable is None:
# WORKAROUND: for generated variables added in preprocessing step
# must be generated user variable, otherwise the variable must have already been added at this stage!
assert(_is_generated(variable_name))
if not _is_generated(variable_name):
log.warning("UserVariable with name :'" + variable_name + "' does not exist. Creating it now.")
catrobat.add_user_variable(self.project, variable_name, self.sprite, self.sprite.getName())
user_variable = self.scene.getDataContainer().getUserVariable(self.sprite, variable_name)

Expand Down