-
Notifications
You must be signed in to change notification settings - Fork 114
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 Add Motor Operator #348
base: master
Are you sure you want to change the base?
Fix Add Motor Operator #348
Conversation
Previously a link had to be the active object for the operator to be enabled. Now a link has to be in the selection and the operator will be applied to all links in the selection
Add feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except the indentation the rest looks fine to me.
How has this been tested?
phobos/blender/operators/editing.py
Outdated
@@ -1758,7 +1758,7 @@ def poll(cls, context): | |||
|
|||
class AddMotorOperator(Operator): | |||
"""Add a motor to the selected joint. | |||
It is possible to add motors to multiple joints at the same time""" | |||
It is possible to add motors to multiple joints at the same time""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indentation change is faulty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if you add a line break before the closing """ with the correct level of indentation? Maybe this helps blender to find the correct line break. How is it done with the other operators?
Like this:
class AddMotorOperator(Operator):
"""Add a motor to the selected joint.
It is possible to add motors to multiple joints at the same time
"""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of them are all one liners except AddSensorOperator. How does the tooltip look there?
Description
Related Issue
Issue #212
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: