Cleanup: single/double quote use in scripts
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user