Brushstroke Tools: Initial Version #328
@ -493,7 +493,8 @@ class BSBST_OT_select_surface(bpy.types.Operator):
|
||||
return {"CANCELLED"}
|
||||
|
||||
bpy.context.view_layer.objects.active = surface_object
|
||||
bpy.ops.object.mode_set(mode='OBJECT')
|
||||
if not context.mode == 'OBJECT':
|
||||
bpy.ops.object.mode_set(mode='OBJECT')
|
||||
for ob in bpy.data.objects:
|
||||
ob.select_set(False)
|
||||
surface_object.select_set(True)
|
||||
|
Loading…
Reference in New Issue
Block a user