Group: V 2.31 release
there is still a problem when using obj.shareFrom
(obj2) and/or obj.link(mesh) and mesh is already
linked to another object.
- create a cube named "Cube" with mesh "Cube". Give
the cube mesh a material
- execute the script:
from Blender import *
o = Object.New("Mesh", "x")
o1 = Object.Get("Cube")
"x" is created and linked to the mesh of "Cube". But
if you go to the material buttons window, you will see
that "x" is linked to mesh "Cube", but no materials
are shown!!! There should be at least one.
Problem seems to be, that Object.link() and
Object.shareFrom() do not update the totcol and actcol
elements of struct Object.
I tried to set object->totcol from the mesh's totcol
and actcol = 0, seemed to work, materials are now
shown in the materials buttons window, but opening the
OOPS window crashes Blender. Seems i missed