Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/modules/bpy_extras/object_utils.py
| Context not available. | |||||
| # layer.objects.active = obj_new | # layer.objects.active = obj_new | ||||
| # Match up UV layers, this is needed so adding an object with UV's | # Match up UV layers, this is needed so adding an object with UV's | ||||
| # doesn't create new layers when there happens to be a naming mis-match. | # doesn't create new layers when there happens to be a naming mismatch. | ||||
| uv_new = obdata.uv_layers.active | uv_new = obdata.uv_layers.active | ||||
| if uv_new is not None: | if uv_new is not None: | ||||
| uv_act = obj_act.data.uv_layers.active | uv_act = obj_act.data.uv_layers.active | ||||
| Context not available. | |||||