forked from bartvdbraak/blender
style cleanup: remove '.' from docstring endings and use quotes for descriptions.
This commit is contained in:
parent
7ef55c62f3
commit
9454015289
@ -18,7 +18,7 @@ from bpy.types import Operator
|
|||||||
|
|
||||||
|
|
||||||
class ExportSomeData(Operator, ExportHelper):
|
class ExportSomeData(Operator, ExportHelper):
|
||||||
'''This appears in the tooltip of the operator and in the generated docs'''
|
"""This appears in the tooltip of the operator and in the generated docs"""
|
||||||
bl_idname = "export_test.some_data" # important since its how bpy.ops.import_test.some_data is constructed
|
bl_idname = "export_test.some_data" # important since its how bpy.ops.import_test.some_data is constructed
|
||||||
bl_label = "Export Some Data"
|
bl_label = "Export Some Data"
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ from bpy.types import Operator
|
|||||||
|
|
||||||
|
|
||||||
class ImportSomeData(Operator, ImportHelper):
|
class ImportSomeData(Operator, ImportHelper):
|
||||||
'''This appears in the tooltip of the operator and in the generated docs'''
|
"""This appears in the tooltip of the operator and in the generated docs"""
|
||||||
bl_idname = "import_test.some_data" # important since its how bpy.ops.import_test.some_data is constructed
|
bl_idname = "import_test.some_data" # important since its how bpy.ops.import_test.some_data is constructed
|
||||||
bl_label = "Import Some Data"
|
bl_label = "Import Some Data"
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ from bpy.props import FloatProperty, BoolProperty, FloatVectorProperty
|
|||||||
|
|
||||||
|
|
||||||
class AddBox(bpy.types.Operator):
|
class AddBox(bpy.types.Operator):
|
||||||
'''Add a simple box mesh'''
|
"""Add a simple box mesh"""
|
||||||
bl_idname = "mesh.primitive_box_add"
|
bl_idname = "mesh.primitive_box_add"
|
||||||
bl_label = "Add Box"
|
bl_label = "Add Box"
|
||||||
bl_options = {'REGISTER', 'UNDO'}
|
bl_options = {'REGISTER', 'UNDO'}
|
||||||
|
@ -3,7 +3,7 @@ from bpy.props import IntProperty, FloatProperty
|
|||||||
|
|
||||||
|
|
||||||
class ModalOperator(bpy.types.Operator):
|
class ModalOperator(bpy.types.Operator):
|
||||||
'''Move an object with the mouse, example.'''
|
"""Move an object with the mouse, example"""
|
||||||
bl_idname = "object.modal_operator"
|
bl_idname = "object.modal_operator"
|
||||||
bl_label = "Simple Modal Operator"
|
bl_label = "Simple Modal Operator"
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ def draw_callback_px(self, context):
|
|||||||
|
|
||||||
|
|
||||||
class ModalDrawOperator(bpy.types.Operator):
|
class ModalDrawOperator(bpy.types.Operator):
|
||||||
'''Draw a line with the mouse'''
|
"""Draw a line with the mouse"""
|
||||||
bl_idname = "view3d.modal_operator"
|
bl_idname = "view3d.modal_operator"
|
||||||
bl_label = "Simple Modal View3D Operator"
|
bl_label = "Simple Modal View3D Operator"
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import bpy
|
|||||||
|
|
||||||
|
|
||||||
class ModalTimerOperator(bpy.types.Operator):
|
class ModalTimerOperator(bpy.types.Operator):
|
||||||
'''Operator which runs its self from a timer.'''
|
"""Operator which runs its self from a timer"""
|
||||||
bl_idname = "wm.modal_timer_operator"
|
bl_idname = "wm.modal_timer_operator"
|
||||||
bl_label = "Modal Timer Operator"
|
bl_label = "Modal Timer Operator"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ from bpy.props import FloatVectorProperty
|
|||||||
|
|
||||||
|
|
||||||
class ViewOperator(bpy.types.Operator):
|
class ViewOperator(bpy.types.Operator):
|
||||||
'''Translate the view using mouse events.'''
|
"""Translate the view using mouse events"""
|
||||||
bl_idname = "view3d.modal_operator"
|
bl_idname = "view3d.modal_operator"
|
||||||
bl_label = "Simple View Operator"
|
bl_label = "Simple View Operator"
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ def main(operator, context):
|
|||||||
|
|
||||||
|
|
||||||
class NodeOperator(bpy.types.Operator):
|
class NodeOperator(bpy.types.Operator):
|
||||||
'''Tooltip'''
|
"""Tooltip"""
|
||||||
bl_idname = "node.simple_operator"
|
bl_idname = "node.simple_operator"
|
||||||
bl_label = "Simple Node Operator"
|
bl_label = "Simple Node Operator"
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ def main(context):
|
|||||||
|
|
||||||
|
|
||||||
class SimpleOperator(bpy.types.Operator):
|
class SimpleOperator(bpy.types.Operator):
|
||||||
'''Tooltip'''
|
"""Tooltip"""
|
||||||
bl_idname = "object.simple_operator"
|
bl_idname = "object.simple_operator"
|
||||||
bl_label = "Simple Object Operator"
|
bl_label = "Simple Object Operator"
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ def main(context):
|
|||||||
|
|
||||||
|
|
||||||
class UvOperator(bpy.types.Operator):
|
class UvOperator(bpy.types.Operator):
|
||||||
'''UV Operator description'''
|
"""UV Operator description"""
|
||||||
bl_idname = "uv.simple_operator"
|
bl_idname = "uv.simple_operator"
|
||||||
bl_label = "Simple UV Operator"
|
bl_label = "Simple UV Operator"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user