Only search projects.blender.org
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
Resolution
Investigate
2004-06-12 08:14
ianwill
File Deleted
129:
2004-06-12 08:14
ianwill
File Deleted
127:
2004-06-12 08:14
ianwill
close_date
2004-01-17 05:58
2004-06-12 08:14
ianwill
close_date
None
2004-01-17 05:58
ianwill
status_id
Open
2004-01-17 05:58
ianwill
File Added
129: blender-patch.01.15.2004.zip
2004-01-15 23:32
balagi
File Added
127: blender-patch-bug879.zip
2004-01-14 21:18
balagi
Resolution
New
2004-01-13 15:19
ton
assigned_to
none
2004-01-13 15:19
ton