fix: world viewport color sync

This commit is contained in:
Swann 2020-09-29 11:47:48 +02:00
parent 2f139178d3
commit a9fb84a5c6
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
2 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,7 @@ from . import environment, utils
DEPENDENCIES = {
("replication", '0.0.21a11'),
("replication", '0.0.21a12'),
}

View File

@ -37,6 +37,9 @@ class BlWorld(BlDatablock):
return bpy.data.worlds.new(data["name"])
def _load_implementation(self, data, target):
loader = Loader()
loader.load(target, data)
if data["use_nodes"]:
if target.node_tree is None:
target.use_nodes = True
@ -60,6 +63,7 @@ class BlWorld(BlDatablock):
world_dumper.include_filter = [
"use_nodes",
"name",
"color"
]
data = world_dumper.dump(instance)
if instance.use_nodes: