Skip to content
Snippets Groups Projects
Commit 2f45a4c9 authored by Kalle-Samuli Riihikoski's avatar Kalle-Samuli Riihikoski
Browse files

Now import button will check if object is mesh type and leave other untouched.

parent 90af8be6
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,7 @@ class SCENE_OT_import(bpy.types.Operator):
test = bpy.context.selected_objects
act_first = bpy.context.scene.objects.active
for act_name in test:
if act_name.type == 'MESH':
activeobj = act_name.name
mat_list = []
scene.objects[activeobj].select = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment