UI / Python: rename X-Ray to In Front, Draw to Display.
See T56648.
This commit is contained in:
@@ -370,7 +370,7 @@ def modifier_armature_add(scene, obj):
|
||||
scene.objects.active = obj
|
||||
|
||||
# display options
|
||||
obj_arm.show_x_ray = True
|
||||
obj_arm.show_in_front = True
|
||||
arm_data.draw_type = 'STICK'
|
||||
|
||||
# apply to modifier
|
||||
@@ -425,7 +425,7 @@ def modifier_hook_add(scene, obj, use_vgroup=True):
|
||||
|
||||
obj_hook = mod.object
|
||||
obj_hook.rotation_euler = 0, math.radians(45), 0
|
||||
obj_hook.show_x_ray = True
|
||||
obj_hook.show_in_front = True
|
||||
|
||||
if use_vgroup:
|
||||
mod.vertex_group = obj.vertex_groups[0].name
|
||||
|
Reference in New Issue
Block a user