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

Blender Python scripts: Code formatting #2994

Merged
merged 1 commit into from
Nov 17, 2019

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Sep 12, 2019

I noticed that the Python files in src/blender/scripts were indented with tabs instead of spaces, and had other weird formatting issues, so I went through each of them and used Atom's Beautify tool (which mostly runs autopep8 on the file) to fix the formatting, then did a quick visual scan to make sure it didn't do anything too weird.

I noticed that the Python files in `src/blender/scripts` were
indented with _tabs_ instead of spaces, and had other weird
formatting issues, so I went through each of them and used
Atom's Beautify tool (which mostly runs `autopep8` on the file)
to fix the formatting, then did a quick visual scan to make sure
it didn't do anything too weird.
@jonoomph
Copy link
Member

Nice catch! LG

@jonoomph jonoomph merged commit b380279 into OpenShot:develop Nov 17, 2019
@ferdnyc ferdnyc deleted the blender-py-style branch November 19, 2019 02:42
'animation': True,
}

# INJECT_PARAMS_HERE
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops! Well, messed this one up. I didn't catch that my reformatting inserted a space here, which breaks this line of the Blender code:

# modify script variable
script_body = script_body.replace("#INJECT_PARAMS_HERE", user_params)

I'll merge a fix in a moment.

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