mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Hound fixes
This commit is contained in:
parent
9d76f9d50c
commit
d935b9b689
1 changed files with 1 additions and 4 deletions
|
|
@ -1,5 +1,3 @@
|
|||
from pathlib import Path
|
||||
|
||||
import bpy
|
||||
|
||||
from openpype.hosts.blender.api import plugin
|
||||
|
|
@ -24,13 +22,12 @@ class ImportBlendLoader(plugin.AssetLoader):
|
|||
color = "#775555"
|
||||
|
||||
def load(self, context, name=None, namespace=None, data=None):
|
||||
scene = bpy.context.scene
|
||||
|
||||
with bpy.data.libraries.load(self.fname) as (data_from, data_to):
|
||||
for attr in dir(data_to):
|
||||
setattr(data_to, attr, getattr(data_from, attr))
|
||||
|
||||
# Add objects to current scene
|
||||
# scene = bpy.context.scene
|
||||
# for obj in data_to.objects:
|
||||
# scene.collection.objects.link(obj)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue