Skip to content

Commit

Permalink
feat: implement ColorRampElements
Browse files Browse the repository at this point in the history
  • Loading branch information
grosdax committed Dec 14, 2020
1 parent 8b9c262 commit b6353dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mixer/blender_data/specifics.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,12 @@ def _add_element_material_ref(collection: T.bpy_prop_collection, proxy: Proxy, c
return collection.append(material_datablock)


@add_element.register(T.ColorRampElements)
def _add_element_position(collection: T.bpy_prop_collection, proxy: Proxy, context: Context):
position = proxy.data("position")
return collection.new(position)


def fit_aos(target: T.bpy_prop_collection, proxy: AosProxy, context: Context):
"""
Adjust the size of a bpy_prop_collection proxified as an array of structures (e.g. MeshVertices)
Expand Down

0 comments on commit b6353dd

Please sign in to comment.