Cleanup: single/double quote use in scripts

This commit is contained in:
Campbell Barton
2024-10-16 14:45:08 +11:00
parent 7ae7592899
commit c3b067dc80
11 changed files with 26 additions and 24 deletions

View File

@@ -10,10 +10,10 @@
# --save="/tmp/hello.blend"
#
# Notice:
# '--factory-startup' is used to avoid the user default settings from
# `--factory-startup` is used to avoid the user default settings from
# interfering with automated scene generation.
#
# '--' causes blender to ignore all following arguments so python can use them.
# `--` causes blender to ignore all following arguments so python can use them.
#
# See blender --help for details.

View File

@@ -125,7 +125,7 @@ class MyCustomShapeWidgetGroup(GizmoGroup):
return (ob and ob.type == 'LIGHT')
def setup(self, context):
# Assign the 'offset' target property to the light energy.
# Assign the `offset` target property to the light energy.
ob = context.object
gz = self.gizmos.new(MyCustomShapeWidget.bl_idname)
gz.target_set_prop("offset", ob.data, "energy")

View File

@@ -23,7 +23,7 @@ class MyLightWidgetGroup(GizmoGroup):
return (ob and ob.type == 'LIGHT')
def setup(self, context):
# Arrow gizmo has one 'offset' property we can assign to the light energy.
# Arrow gizmo has one `offset` property we can assign to the light energy.
ob = context.object
gz = self.gizmos.new("GIZMO_GT_arrow_3d")
gz.target_set_prop("offset", ob.data, "energy")