fix various bugs after refactor

This commit is contained in:
2022-04-04 12:45:41 +08:00
parent c40f956771
commit cb9609ac2c
4 changed files with 12 additions and 10 deletions

View File

@ -18,7 +18,7 @@ def show_message_box(message, title, icon):
bpy.context.window_manager.popup_menu(draw, title = title, icon = icon)
def add_into_scene_and_move_to_cursor(obj):
Move2Cursor(obj)
move_to_cursor(obj)
view_layer = bpy.context.view_layer
collection = view_layer.active_layer_collection.collection
@ -174,7 +174,7 @@ def create_instance_with_option(instance_type, instance_name, instance_opt,
elif instance_type == UTILS_constants.BmfileInfoType.MATERIAL:
temp_instance = bpy.data.materials[instance_name]
elif instance_type == UTILS_constants.BmfileInfoType.TEXTURE:
temp_instance = bpy.data.textures[instance_name]
temp_instance = bpy.data.images[instance_name]
temp_is_existed = True
except: