Skip to content

Commit 56568ec

Browse files
committed
make created object as active object
1 parent 40dcd31 commit 56568ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

simloader/importer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ def create_obj(fileseq, use_relaitve, transform_matrix=Matrix([[1, 0, 0, 0], [0,
172172
if enabled:
173173
update_mesh(meshio_mesh, object.data)
174174
bpy.context.collection.objects.link(object)
175+
bpy.ops.object.select_all(action="DESELECT")
176+
bpy.context.view_layer.objects.active = object
175177

176178

177179
def update_obj(scene, depsgraph=None):

0 commit comments

Comments
 (0)