Skip to content

Commit

Permalink
Update types for new 3.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorgious56 committed Jun 9, 2022
1 parent c94712f commit 3043258
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions filter/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
("worlds", "Worlds", "Worlds", "WORLD", 2 ** next(flags_enum)),
]
if bpy.app.version >= (3, 1, 0):
asset_types.extend(
(
("node_groups", "Node Trees", "Node Trees", "NODETREE", 2 ** next(flags_enum)),
("collections", "Collections", "Collections", "OUTLINER_COLLECTION", 2 ** next(flags_enum)),
)
)
asset_types.append(("node_groups", "Node Trees", "Node Trees", "NODETREE", 2 ** next(flags_enum)))
if bpy.app.version >= (3, 2, 0):
asset_types.append(("collections", "Collections", "Collections", "OUTLINER_COLLECTION", 2 ** next(flags_enum)))
if bpy.app.version >= (3, 3, 0):
asset_types.extend(
(
("hair_curves", "Hairs", "Hairs", "CURVES_DATA", 2 ** next(flags_enum)),
("brushes", "Brushes", "Brushes", "BRUSH_DATA", 2 ** next(flags_enum)),
("cache_files", "Cache Files", "Cache Files", "FILE_CACHE", 2 ** next(flags_enum)),
("linestyles", "Freestyle Linestyles", "", "LINE_DATA", 2 ** next(flags_enum)),
Expand All @@ -37,8 +35,6 @@
("workspaces", "Workspaces", "Workspaces", "WORKSPACE", 2 ** next(flags_enum)),
)
)
if bpy.app.version >= (3, 3, 0):
asset_types.extend((("hair_curves", "Hairs", "Hairs", "CURVES_DATA", 2 ** next(flags_enum)),))
asset_types.sort(key=lambda t: t[0])


Expand Down

0 comments on commit 3043258

Please sign in to comment.