[Bf-committers] Re: [Bf-blender-cvs] CVS commit:
blender/source/blender/python/api2_2x
Draw.c Draw.h blender/source/blender/python/api2_2x/doc Draw.py
Campbell Barton
cbarton at metavr.com
Sun May 21 03:22:54 CEST 2006
Hey Martin,
theres a realy weired problem with this function.
Now this raises an error.
Draw.Create(0.0)
TypeError: argument 1 must be 3-item sequence, not int
Its odd because even though theres only 1 floatng point the line below
is running. - did a printf test.
Even stranger is that even if this is below the other IF's it gets run...
but = newbutton();
if ( PyArg_ParseTuple( args, "fff", but->val.asvec,
but->val.asvec+1, but->val.asvec+2 ) ) {
but->type = BVECTOR_TYPE;
}
A quick test to see if its broken, try run the UV Archimap script. the
GUI opens but the error is delay'd untill you press ok.
Another test is to add a line to the script on your test blend
dummy = Draw.Create(0.0)
- Cam
Martin Poirier wrote:
> theeth (Martin Poirier) 2006/05/20 17:44:14 CEST
>
> Modified files:
> blender/source/blender/python/api2_2x Draw.c Draw.h
> blender/source/blender/python/api2_2x/doc Draw.py
>
> Log:
> === Python API ===
>
> Blender.Draw.ColorPicker
>
> Enables scripters to use a color picker in there scripts.
>
> See this file for a trivial demo: http://blenderartists.org/~theeth/colorpicker.blend
>
> Revision Changes Path
> 1.46 +121 -31 blender/source/blender/python/api2_2x/Draw.c
> <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Draw.c.diff?r1=1.45&r2=1.46&cvsroot=bf-blender>
> 1.21 +4 -3 blender/source/blender/python/api2_2x/Draw.h
> <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Draw.h.diff?r1=1.20&r2=1.21&cvsroot=bf-blender>
> 1.21 +26 -2 blender/source/blender/python/api2_2x/doc/Draw.py
> <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/doc/Draw.py.diff?r1=1.20&r2=1.21&cvsroot=bf-blender>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-blender-cvs
>
>
--
Campbell J Barton
133 Hope Street
Geelong West, Victoria 3218 Australia
URL: http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241
More information about the Bf-committers
mailing list