Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.4x Bug Tracker: Browse

[#879] again material problem link/shareFrom()

Date:
2004-01-12 23:33
Priority:
3
State:
Closed
Submitted by:
Thomas Maier (balagi)
Assigned to:
Willian Padovani Germano (ianwill)
Group:
V 2.31 release
Resolution:
Fixed
Category:
Python
 
Summary:
again material problem link/shareFrom()
Detailed description
Hi,

there is still a problem when using obj.shareFrom
(obj2) and/or obj.link(mesh) and mesh is already
linked to another object.

Reproduce it:
- 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")
Scene.GetCurrent().link(o)
o.shareFrom(o1)


"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
something ;)

BalaGi

Followup

No Followups Have Been Posted

 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
ResolutionInvestigate2004-06-12 08:14ianwill
File Deleted129: 2004-06-12 08:14ianwill
File Deleted127: 2004-06-12 08:14ianwill
close_date2004-01-17 05:582004-06-12 08:14ianwill
close_dateNone2004-01-17 05:58ianwill
status_idOpen2004-01-17 05:58ianwill
File Added129: blender-patch.01.15.2004.zip2004-01-15 23:32balagi
File Added127: blender-patch-bug879.zip2004-01-14 21:18balagi
ResolutionNew2004-01-13 15:19ton
assigned_tonone2004-01-13 15:19ton