~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/python/api2_2x/IDProp.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
extern PyTypeObject IDGroup_Iter_Type;
47
47
 
48
48
/*********************** ID Property Main Wrapper Stuff ***************/
49
 
void IDGroup_dealloc( BPy_IDProperty *self )
50
 
{
51
 
        PyObject_DEL( self );
52
 
}
53
49
 
54
50
PyObject *IDGroup_repr( BPy_IDProperty *self )
55
51
{
211
207
char *BPy_IDProperty_Map_ValidateAndCreate(char *name, IDProperty *group, PyObject *ob)
212
208
{
213
209
        IDProperty *prop = NULL, *prop2=NULL, *prev=NULL;
214
 
        IDPropertyTemplate val;
 
210
        IDPropertyTemplate val = {0};
215
211
        
216
212
        if (PyFloat_Check(ob)) {
217
213
                val.f = (float) PyFloat_AsDouble(ob);
554
550
 
555
551
        /* Methods to implement standard operations */
556
552
 
557
 
        ( destructor ) IDGroup_dealloc,/* destructor tp_dealloc; */
 
553
        NULL,                                           /* destructor tp_dealloc; */
558
554
        NULL,                       /* printfunc tp_print; */
559
555
        NULL,     /* getattrfunc tp_getattr; */
560
556
        NULL,     /* setattrfunc tp_setattr; */
625
621
 
626
622
/********Array Wrapper********/
627
623
 
628
 
void IDArray_dealloc(void *self)
629
 
{
630
 
        PyObject_DEL(self);
631
 
}
632
 
 
633
624
PyObject *IDArray_repr(BPy_IDArray *self)
634
625
{
635
626
        return Py_BuildValue("s", "(ID Array)");
741
732
 
742
733
        /* Methods to implement standard operations */
743
734
 
744
 
        ( destructor ) IDArray_dealloc,/* destructor tp_dealloc; */
 
735
        NULL,                                           /* destructor tp_dealloc; */
745
736
        NULL,                       /* printfunc tp_print; */
746
737
        NULL,     /* getattrfunc tp_getattr; */
747
738
        NULL,     /* setattrfunc tp_setattr; */
814
805
};
815
806
 
816
807
/*********** ID Property Group iterator ********/
817
 
void IDGroup_Iter_dealloc(void *self)
818
 
{
819
 
        PyObject_DEL(self);
820
 
}
821
808
 
822
809
PyObject *IDGroup_Iter_iterself(PyObject *self)
823
810
{
858
845
 
859
846
        /* Methods to implement standard operations */
860
847
 
861
 
        ( destructor ) IDGroup_Iter_dealloc,/* destructor tp_dealloc; */
 
848
        NULL,                                           /* destructor tp_dealloc; */
862
849
        NULL,                       /* printfunc tp_print; */
863
850
        NULL,     /* getattrfunc tp_getattr; */
864
851
        NULL,     /* setattrfunc tp_setattr; */