Blender Git Loki

Git Commits -> Revision 5acde0d

Revision 5acde0d by Sergey Sharybin (master)
November 24, 2011, 14:30 (GMT)
Fix #29369: bpy.data.curves.new(name= "test" , type = 'SURFACE') does not create a surface

This issue it totally related on issue with changing object datablock.
For curves it used to guess object type from curve datablock based on
count of control points in V direction.
This quess fails in case when SurfCircle datablock is trying to be reused
by another surface object or as another sample empty surface databouck used
to be treated as curve.

Store type in Curve when creating new Curve datablock which is used in
this object type quessing function.

Note: Previously saved files wouldn't change behavior at all.

Commit Details:

Full Hash: 5acde0d24c72a4ee2149d1105986f5f119231686
SVN Revision: 42126
Parent Commit: c1c3d66
Lines Changed: +17, -6

3 Modified Paths:

/source/blender/blenkernel/intern/curve.c (+13, -5) (Diff)
/source/blender/editors/object/object_add.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+3, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021