[Bf-blender-cvs] [16b540f39e7] asset-engine: Fix broken Amber after Group -> Collection change.

Bastien Montagne noreply at git.blender.org
Mon Jun 18 13:03:26 CEST 2018


Commit: 16b540f39e7f82244c89fdb9803c022762d2647c
Author: Bastien Montagne
Date:   Mon Jun 18 13:03:08 2018 +0200
Branches: asset-engine
https://developer.blender.org/rB16b540f39e7f82244c89fdb9803c022762d2647c

Fix broken Amber after Group -> Collection change.

===================================================================

M	release/scripts/modules/amber/utils.py

===================================================================

diff --git a/release/scripts/modules/amber/utils.py b/release/scripts/modules/amber/utils.py
index df73d5e92e8..24c6d383d37 100644
--- a/release/scripts/modules/amber/utils.py
+++ b/release/scripts/modules/amber/utils.py
@@ -38,7 +38,7 @@ AMBER_PREVIEW_STORAGE = "PREVIEWS"
 
 BLENDER_TYPES_TO_PATH = {
     bpy.types.Object: "Object",
-    bpy.types.Group: "Group",
+    bpy.types.Collection: "Collection",
     bpy.types.Material: "Material",
     bpy.types.Texture: "Texture",
     # TODO complete this!
@@ -46,7 +46,7 @@ BLENDER_TYPES_TO_PATH = {
 
 BLENDER_TYPES_TO_ENUMVAL = {
     bpy.types.Object: 'OBJECT',
-    bpy.types.Group: 'GROUP',
+    bpy.types.Collection: 'COLLECTION',
     bpy.types.Material: 'MATERIAL',
     bpy.types.Texture: 'TEXTURE',
     # TODO complete this!



More information about the Bf-blender-cvs mailing list