3f5786a00e
added support for proxies as drivers back.
2010-02-23 17:56:45 +00:00
0dd58a27e9
- py-drivers were not using the name lookup cache.
...
- use manager context for keymap script.
2010-02-23 16:40:55 +00:00
ca5e7113d3
allow python api to set values of library liked data (still checks editable flag)
...
+ improved exception messages.
2010-02-23 11:19:55 +00:00
4ef1fd1078
game engine support for recording animation back & some other minor changes.
2010-02-22 12:25:58 +00:00
e31d0198e6
exclude self references from the ID search list when PROP_ID_SELF_CHECK is set, also raise an error from python if this is attempted
2010-02-22 08:27:45 +00:00
07fdcb1f1b
Merged changes in the trunk up to revision 27063.
2010-02-21 21:47:52 +00:00
6589038350
python rna api now clamps values, (was fun to see the spot_size go backwards)
...
Vector callbacks still missing clamp checks
2010-02-21 14:48:28 +00:00
1bb37bc10e
py api: bpy.props
...
new properties without any arguments were failing.
2010-02-21 12:15:38 +00:00
02e7871149
Mathutils API: Euler support for rotation order.
...
Examples.
euler = Euler(1, 2, 3)
euler.order = 'ZXY'
euler = matrix.to_euler('XZY')
Still missing rna support. this still wont give the right order, defaulting to XYZ.
eul = object.rotation_euler
2010-02-20 19:49:04 +00:00
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
3c2d59e032
py/rna api property api functions crashed with empty args.
...
eg: bpy.props.BoolProperty()
2010-02-17 17:22:39 +00:00
709678ca87
Merged changes in the trunk up to revision 26976.
2010-02-16 22:34:43 +00:00
0b3dfc441e
pyrna, adding back foreach functions from collections. they are needed!
2010-02-16 19:27:38 +00:00
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
768f20d537
update for missing docs & dont include operator classes in sphinx docs.
2010-02-16 15:01:34 +00:00
d8ce09ce53
bugfix [ #21173 ] Autocompleate raises an error
...
split PropertyRNA off into 3 types, base type, collection and array, since array and collections needed internal checks inside almost every function its better to have the, as subclassed to the property type. This makes introspection more useful.
Also made printing of structs and properties prettier giveing type and length.
2010-02-15 23:43:51 +00:00
882af97b4b
classes were having their dictionary cleared when the blender extension data was freed which made re-registering fail.
...
now extensions can be enabled and disabled without having to reload them.
2010-02-15 11:24:43 +00:00
677386e53a
initial support for extensions in the user preferences
...
only one script at the moment:
[#20848 ] Blender Gears for 2.5 (for ideasman42)
from Michel Anders (varkenvarken)
2010-02-14 23:33:18 +00:00
39c04315e2
change python scripts so modules which register with blender have a register() function rather then making import automatically run the register functions (generally considered bad practice by python people)
2010-02-14 11:21:21 +00:00
135a944c66
Merged changes in the trunk up to revision 26856.
2010-02-13 01:13:16 +00:00
e205acdbaa
strip quotes from Buildinfo for bpy.app.build_*
2010-02-12 21:45:47 +00:00
c7662c1cf7
Calling operators from Python with non-default context was broken (need to assign to the right variable).
2010-02-12 21:40:46 +00:00
533ed7cdaa
Python deprcated PyCObject, use PyCapsule instead.
2010-02-12 21:14:01 +00:00
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
8f4c340915
bpy.utils.home_paths, use this to get script paths for the user/local/system blender paths.
2010-02-11 14:08:22 +00:00
15ef07d684
More tooltip editing
2010-02-11 02:03:18 +00:00
c2b2ccde45
fix for python not being able to call operators with a executuon context.
2010-02-10 11:10:38 +00:00
52b1c37645
[ #21039 ] OBJ import Clamp Scale limited to .01 as lowest Value. Used to be Zero
...
[#21053 ] 2.5alpha0 export obj problem
+ some minor changes.
2010-02-09 19:22:57 +00:00
ed266e868c
Merged changes in the trunk up to revision 26719.
2010-02-08 21:13:33 +00:00
ec7df03c86
Warning fixes, one actual bug found in sequencer sound wave drawing. Also
...
changed some malloc to MEM_mallocN while trying to track down a memory leak.
2010-02-08 13:55:31 +00:00
3f1920f3f2
Merged changes in the trunk up to revision 26669.
2010-02-07 13:19:44 +00:00
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
755569b020
errors in arg parsing from yesterdays commit
2010-02-02 12:10:13 +00:00
ecaa50ed7b
PROP_ANIMATEABLE -> PROP_ANIMATABLE (more common spelling)
2010-02-02 00:02:55 +00:00
039d087171
subtype support for properties in bpy.props.
2010-02-01 22:04:33 +00:00
18a2b9940e
Merged changes in the trunk up to revision 26533.
2010-02-01 20:47:23 +00:00
53f8bbd798
bpy.props.IntVectorProperty & BoolVectorProperty
2010-02-01 10:51:34 +00:00
65af9585b2
SVN maintenance.
2010-02-01 00:04:28 +00:00
8c5645669b
Fixed a few lingering compiler warnings with the bpy_app stuff
2010-01-31 23:49:04 +00:00
873f2c7125
ugh!, missed this file too
2010-01-31 23:41:46 +00:00
74535c435f
missed this file
2010-01-31 23:21:33 +00:00
fd3842f3a2
Mathutils doc improvements + other small things
...
- bpy.app moved into PyStructSequence (used by sys.float_info)
- added buildinfo into bpy.app.build_*
- bpy.ui removed (wasnt used)
- include external example files in Mathutils docs (only Mathutils and Vector are currently written)
- added support to auto document PyStructSequence's
- CMake had "'s inside all its strings.
2010-01-31 21:52:26 +00:00
e307cb1c8c
Merged changes in the trunk up to revision 26439.
2010-01-30 17:44:57 +00:00
ec48cbd267
utility functions is_negative_m3 & is_negative_m4, added python Mathutils access Matrix.is_negative
...
renamed Mathutils attribute wrapped -> is_wrapped
2010-01-30 13:15:39 +00:00
2d8ee7efa3
Merged changes in the trunk up to revision 26409.
2010-01-30 02:58:48 +00:00
e28e6ac5c7
Fix the underlying problem from the last commit, which was worked
...
around incorrectly in r24435 before that. freeptr in BPy_StructRNA
was uninitialized when creating bpy.context.
2010-01-29 14:49:21 +00:00
5abb38e566
Bugfix
...
OSX 10.5 PPC kept crashing on exit. After blaming bad compiles, bad python libs
and all other reasons (almost was switching to linux!) brecht found the bad line
in python free code. There was code freeing stuff whilst it wasnt allowed to.
Mac PPC gets hug!
2010-01-29 14:13:40 +00:00
89cd4be1af
slice assignment wasnt running the properties update function (setting object layers wasnt working from py)
...
also commented operator subclassing, loosing py property order.
2010-01-27 17:23:28 +00:00
49abcd49f1
fix for crash when using a NULL context from python
2010-01-27 10:54:11 +00:00
586af8ca47
Properties for macro operator call in python.
...
Dicts are converted to operator properties like this:
bpy.ops.armature.extrude_forked(TRANSFORM_OT_translate={"value":(2,0,1)})
Note that this doesn't work quite well if one operator is twice in the same macro, but that's a problem at the RNA level too. I'll have to deal with that eventually.
2010-01-26 20:43:27 +00:00