Brushstroke Tools: Initial Version #328
@ -493,7 +493,8 @@ class BSBST_OT_select_surface(bpy.types.Operator):
|
|||||||
return {"CANCELLED"}
|
return {"CANCELLED"}
|
||||||
|
|
||||||
bpy.context.view_layer.objects.active = surface_object
|
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:
|
for ob in bpy.data.objects:
|
||||||
ob.select_set(False)
|
ob.select_set(False)
|
||||||
surface_object.select_set(True)
|
surface_object.select_set(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user