Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
tmp name for mesh
Browse files Browse the repository at this point in the history
+ no need to set obj to active
close #75
  • Loading branch information
Vinc3r committed Feb 1, 2021
1 parent 694f808 commit e9497f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Thumbs.db
.directory
*__pycache__*
.vscode/*
retico/.vscode/*
7 changes: 4 additions & 3 deletions retico/meshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ def transfer_names():

# function core
for obj in objects_selected:
bpy.context.view_layer.objects.active = obj
mesh = obj.data
mesh.name = obj.name
obj.data.name = "tmp" # temp name to avoid naming conflict later

for obj in objects_selected:
obj.data.name = obj.name

# handling active object
bpy.context.view_layer.objects.active = user_active
Expand Down

0 comments on commit e9497f1

Please sign in to comment.