Select Grouped editdata- minor fix in the menu.
Updated Python Mesh API to support UV and Color layers with names. Similar to vertex group's renamed a function in customdata.c CustomData_free_layers -> CustomData_free_layers_active and made CustomData_free_layers accept an index, this is needed so python could free layers that arnt active.
This commit is contained in:
@@ -1027,24 +1027,32 @@ class Mesh:
|
||||
Blender itself later).
|
||||
"""
|
||||
|
||||
def addUVLayer():
|
||||
def addUVLayer(name):
|
||||
"""
|
||||
Adds a new UV/Image layer to this mesh, it will always be the last layer and made active.
|
||||
Adds a new UV/Image layer to this mesh, it will always be the last layer but not made active.
|
||||
@type name: string
|
||||
@param name: The name of the new UV layer, 31 characters max.
|
||||
"""
|
||||
|
||||
def addColorLayer():
|
||||
def addColorLayer(name):
|
||||
"""
|
||||
Adds a new Vertex Color layer to this mesh, it will always be the last layer and made active.
|
||||
Adds a new Vertex Color layer to this mesh, it will always be the last layer but not made active.
|
||||
@type name: string
|
||||
@param name: The name of the new Color layer, 31 characters max.
|
||||
"""
|
||||
|
||||
def removeUVLayer():
|
||||
def removeUVLayer(name):
|
||||
"""
|
||||
Removes the active UV/Image layer.
|
||||
@type name: string
|
||||
@param name: The name of the UV layer to remove.
|
||||
"""
|
||||
|
||||
def removeColorLayer():
|
||||
def removeColorLayer(name):
|
||||
"""
|
||||
Removes the active Vertex Color layer.
|
||||
@type name: string
|
||||
@param name: The name of the Color layer to remove.
|
||||
"""
|
||||
|
||||
def smooth():
|
||||
|
||||
Reference in New Issue
Block a user