Gizmo: update Python templates

This commit is contained in:
Campbell Barton
2018-07-15 19:49:07 +02:00
parent 57ab7daa2a
commit b29b73a67e
6 changed files with 8 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ class MyLightWidgetGroup(GizmoGroup):
def setup(self, context):
# Arrow gizmo has one 'offset' property we can assign to the light energy.
ob = context.object
mpr = self.gizmos.new("GIZMO_GGT_arrow_3d")
mpr = self.gizmos.new("GIZMO_GT_arrow_3d")
mpr.target_set_prop("offset", ob.data, "energy")
mpr.matrix_basis = ob.matrix_world.normalized()
mpr.draw_style = 'BOX'