Cleanup: use variable names based on term gizmo
This commit is contained in:
@@ -63,7 +63,7 @@ custom_shape_verts = (
|
||||
|
||||
|
||||
class MyCustomShapeWidget(Gizmo):
|
||||
bl_idname = "VIEW3D_WT_auto_facemap"
|
||||
bl_idname = "VIEW3D_GT_auto_facemap"
|
||||
bl_target_properties = (
|
||||
{"id": "offset", "type": 'FLOAT', "array_length": 1},
|
||||
)
|
||||
@@ -113,7 +113,7 @@ class MyCustomShapeWidget(Gizmo):
|
||||
|
||||
|
||||
class MyCustomShapeWidgetGroup(GizmoGroup):
|
||||
bl_idname = "OBJECT_WGT_light_test"
|
||||
bl_idname = "OBJECT_GGT_light_test"
|
||||
bl_label = "Test Light Widget"
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'WINDOW'
|
||||
|
@@ -80,7 +80,7 @@ class SelectSideOfPlane(Operator):
|
||||
|
||||
# Gizmos for plane_co, plane_no
|
||||
class SelectSideOfPlaneGizmoGroup(GizmoGroup):
|
||||
bl_idname = "MESH_WGT_select_side_of_plane"
|
||||
bl_idname = "MESH_GGT_select_side_of_plane"
|
||||
bl_label = "Side of Plane Gizmo"
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'WINDOW'
|
||||
@@ -126,7 +126,7 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup):
|
||||
# XXX, this may change!
|
||||
op.execute(context)
|
||||
|
||||
mpr = self.gizmos.new("GIZMO_WT_grab_3d")
|
||||
mpr = self.gizmos.new("GIZMO_GT_grab_3d")
|
||||
mpr.target_set_handler("offset", get=grab_get_cb, set=grab_set_cb)
|
||||
|
||||
mpr.use_draw_value = True
|
||||
@@ -161,7 +161,7 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup):
|
||||
op.plane_no = no
|
||||
op.execute(context)
|
||||
|
||||
mpr = self.gizmos.new("GIZMO_WT_dial_3d")
|
||||
mpr = self.gizmos.new("GIZMO_GT_dial_3d")
|
||||
mpr.target_set_handler("offset", get=direction_get_cb, set=direction_set_cb)
|
||||
mpr.draw_options = {'ANGLE_START_Y'}
|
||||
|
||||
|
@@ -10,7 +10,7 @@ from bpy.types import (
|
||||
|
||||
|
||||
class MyCameraWidgetGroup(GizmoGroup):
|
||||
bl_idname = "OBJECT_WGT_test_camera"
|
||||
bl_idname = "OBJECT_GGT_test_camera"
|
||||
bl_label = "Object Camera Test Widget"
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'WINDOW'
|
||||
@@ -24,7 +24,7 @@ class MyCameraWidgetGroup(GizmoGroup):
|
||||
def setup(self, context):
|
||||
# Run an operator using the dial gizmo
|
||||
ob = context.object
|
||||
mpr = self.gizmos.new("GIZMO_WT_dial_3d")
|
||||
mpr = self.gizmos.new("GIZMO_GGT_dial_3d")
|
||||
props = mpr.target_set_operator("transform.rotate")
|
||||
props.constraint_axis = False, False, True
|
||||
props.constraint_orientation = 'LOCAL'
|
||||
|
@@ -11,7 +11,7 @@ from bpy.types import (
|
||||
|
||||
|
||||
class MyLightWidgetGroup(GizmoGroup):
|
||||
bl_idname = "OBJECT_WGT_light_test"
|
||||
bl_idname = "OBJECT_GGT_light_test"
|
||||
bl_label = "Test Light Widget"
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'WINDOW'
|
||||
@@ -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_WT_arrow_3d")
|
||||
mpr = self.gizmos.new("GIZMO_GGT_arrow_3d")
|
||||
mpr.target_set_prop("offset", ob.data, "energy")
|
||||
mpr.matrix_basis = ob.matrix_world.normalized()
|
||||
mpr.draw_style = 'BOX'
|
||||
|
Reference in New Issue
Block a user