diff options
Diffstat (limited to 'mesh_extra_tools/pkhg_faces.py')
-rw-r--r-- | mesh_extra_tools/pkhg_faces.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh_extra_tools/pkhg_faces.py b/mesh_extra_tools/pkhg_faces.py index 2602036e..31497aa4 100644 --- a/mesh_extra_tools/pkhg_faces.py +++ b/mesh_extra_tools/pkhg_faces.py @@ -309,7 +309,7 @@ class MESH_OT_add_faces_to_object(Operator): # PKHG>INFO now the extruded facec have to move in normal direction bpy.ops.object.mode_set(mode='EDIT') - obj = bpy.context.scene.objects.active + obj = bpy.context.view_layer.objects.active bm = bmesh.from_edit_mesh(obj.data) todo_faces = [face for face in bm.faces if face.select] for face in todo_faces: @@ -680,7 +680,7 @@ def prepare(self, context, remove_start_faces=True): Start for a face selected change of faces select an object of type mesh, with activated several (all) faces """ - obj = bpy.context.scene.objects.active + obj = bpy.context.view_layer.objects.active bpy.ops.object.mode_set(mode='OBJECT') selectedpolygons = [el for el in obj.data.polygons if el.select] |