Campbell Barton
bfb9ef7ee9
bpy.props.StringProperty()'s maxlen arg was off by 1 since it included the null terminator for C strings.
2010-06-24 21:28:33 +00:00
Campbell Barton
556b57febf
get rid of some warnings,
...
removed NG_LoopBackNetworkDeviceInterface::GetNetworkVersion(), wasnt used anywhere.
2010-06-05 15:31:55 +00:00
Campbell Barton
d73af20b7a
py/rna: defining new properties now replaces the old onces and raises an error if they collide with dynamic props.
2010-05-09 00:06:35 +00:00
Campbell Barton
5548e86795
function to remove property
...
eg:
bpy.types.Scene.IntProperty(attr="myprop") # adds
bpy.types.Scene.RemoveProperty(attr="myprop") # removes
2010-05-08 23:34:54 +00:00
Campbell Barton
1e9bf0cfdb
spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)
2010-03-22 09:30:00 +00:00
Brecht Van Lommel
9a986d194c
fix for nasty bug where registering properties would register them in the parent classes SRNA, made for confusing rigify args turning up in add sequencer adding collection.
...
(commit 27433 by Campbell from render25 branch)
2010-03-16 17:20:15 +00:00
Campbell Barton
431db9d478
remove unused includes
2010-03-14 16:06:43 +00:00
Brecht Van Lommel
0ef0caaedf
RNA/Python: support for layer subtype with BoolVectorProperty.
2010-03-10 20:33:57 +00:00
Campbell Barton
1bb37bc10e
py api: bpy.props
...
new properties without any arguments were failing.
2010-02-21 12:15:38 +00:00
Campbell Barton
0dc8026691
mostly fixed [ #21172 ] Reloading scripts leaks memory (F8)
...
the same properties were being registered many times with built in structs.
blender memory at least is not leaking, but it seems python is still not freeing some memory.
For the moment dont allow existing properties to be registered again, will need to have a way to unregister rna properties.
2010-02-17 21:58:08 +00:00
Campbell Barton
3c2d59e032
py/rna api property api functions crashed with empty args.
...
eg: bpy.props.BoolProperty()
2010-02-17 17:22:39 +00:00
Campbell Barton
aefe9be5db
[ #18961 ] Use const char * where appropriate (2.5)
...
from Sean Bartell (wtachi)
added own changes bpy_props.c
2010-02-16 16:47:41 +00:00
Campbell Barton
533ed7cdaa
Python deprcated PyCObject, use PyCapsule instead.
2010-02-12 21:14:01 +00:00
Campbell Barton
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
Campbell Barton
fc123a40d3
patch [ #20889 ] Support "unit"s for FloatProperty
...
from Martin Bürbaum (pontiac)
(with own minor changes)
2010-02-02 23:03:56 +00:00
Campbell Barton
755569b020
errors in arg parsing from yesterdays commit
2010-02-02 12:10:13 +00:00
Campbell Barton
ecaa50ed7b
PROP_ANIMATEABLE -> PROP_ANIMATABLE (more common spelling)
2010-02-02 00:02:55 +00:00
Campbell Barton
039d087171
subtype support for properties in bpy.props.
2010-02-01 22:04:33 +00:00
Campbell Barton
53f8bbd798
bpy.props.IntVectorProperty & BoolVectorProperty
2010-02-01 10:51:34 +00:00
Campbell Barton
7f1a8a947d
initial sphinx doc generation support for python and C modules.
...
python modules bpy.app, bpy.utils are now included in docs.
C defined python module bpy.props has its docstrings extracted and written directly into sphinx docs since the C methods cant be inspected.
added docstrings to bpy.props and improved some in bpy.utils.
will update online docs tomorrow.
2010-01-22 02:04:25 +00:00
Campbell Barton
8ae76d7249
pep8 compliance for Randomize objects loc/rot/scale.
...
- scale min -1 to 1 rather then -100 to 100
- default precision for float props to 2.
2010-01-19 09:36:40 +00:00
Campbell Barton
849024df83
patch [ #20724 ] Randomize Loc Rot Size py operator for B2.5
...
written from scratch by Daniel Salazar (zanqdo). added own modifications.
New property type
bpy.props.FloatVectorProperty(), only difference with float is it takes a 'size' argument and optional 'default' sequence of floats.
moved bpy.props.* functions out of bpy_rna.c into their own C file.
2010-01-19 00:59:36 +00:00