f9f771cd01
converted more mixed tab/space indentations to tabs. only whitespace changes.
2011-04-21 15:53:30 +00:00
6bb626f253
minor changes
...
- remove some warnings
- fix typos
- cmake allow in-source build (when WITH_IN_SOURCE_BUILD is defined)
- cmake, use an explicit list of rna files (don't glob)
2011-04-21 05:49:47 +00:00
cadc1218c8
C, style changes (mostly white space edits), no functional change.
2011-03-19 11:12:48 +00:00
e2304a4dbb
move anim functions out of bpy_rna.c, its getting too big.
2011-03-02 04:51:43 +00:00
Nathan Letwory
5a760e22fc
doxygen: blender/python tagged.
2011-02-27 20:10:08 +00:00
Nathan Letwory
5b607701a7
doxygen: prevent GPL license block from being parsed as doxygen comment.
2011-02-23 10:52:22 +00:00
6524d27462
py api was raising SystemError exception incorrectly, this is intended for internal interpreter problems.
...
Replace most with RuntimeError.
2011-02-18 06:04:05 +00:00
4c35d8d5a8
rename IDPropertyGroup to PropertyGroup
...
also renamed IDProperty to PropertyGroupItem (these are not referenced for common usage and we already have 'Property' defined).
2011-02-16 02:51:56 +00:00
d5316768c3
corrention for bpy.props docstrings.
2011-02-15 11:43:35 +00:00
72bc3f22b7
python api renaming and added headers for some files which didnt have one, no functionality change.
2011-02-14 04:15:25 +00:00
0955c664aa
fix for warnings from Sparse static source code checker, mostly BKE/BLI and python functions.
...
- use NULL rather then 0 where possible (makes code & function calls more readable IMHO).
- set static variables and functions (exposed some unused vars/funcs).
- use func(void) rather then func() for definitions.
2011-02-13 10:52:18 +00:00
d272b70ee0
rename ID.update() --> update_tag() since this function only tags for updating and scene.update() executes the update.
2011-02-07 08:13:28 +00:00
dc30caab61
fix for crash when assigning unsupported type to collection properties.
2011-01-26 12:44:09 +00:00
ba96f02d4a
use fast sequence functions for python's bpy.props.EnumProperty() arg parsing.
2011-01-16 10:36:27 +00:00
4dd92a988a
Defining bpy.props.EnumProperty(... , options={'ENUM_FLAG'}) wasnt working right with default values.
2011-01-16 10:08:20 +00:00
c9f353956c
use PySequence_Size() rather then PySequence_Length(), this is only kept in python for backwards compatibility.
2011-01-09 14:53:18 +00:00
89c9aaaa25
remove references to BKE_utildefines where its not needed.
...
- move GS() define into DNA_ID.h
- add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07 19:18:31 +00:00
8f21a43535
split BKE_utildefines.h, now it only has blender specific defines like GS() MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h.
...
no functional changes.
2011-01-07 18:36:47 +00:00
a4b410af3d
Expose access to PROP_ENUM_FLAG from bpy.props.EnumProperty(), this is exposed as a python set(). The default value is also a python set() so multiple booleans can be used in the 1 property.
...
Also added PROP_ENUM_FLAG support to operator printouts.
2010-12-13 09:10:16 +00:00
263830f000
Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for 'const char's,.
...
Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-12-03 17:05:21 +00:00
96dafef228
minor edits to exception formatting (remove ... or \n from suffix)
2010-11-23 16:45:17 +00:00
65797d285f
bpy.props: replace common error checks with macros, ugly but better then duplicates.
2010-10-22 13:02:41 +00:00
f979bca911
fix for exceptions in recent commit.
2010-10-19 09:50:43 +00:00
f3b031314d
[ #24270 ] RNA Properties with long Variable Names
...
disallow registering RNA with names longer then 31 chars.
2010-10-19 07:23:34 +00:00
05884e09be
- rna bugfix where ints were not clamped and would overflow, now raise an error and print valid range.
...
- fixed WM_OT_context_cycle_int was causing problems with int overflow, now it cycles properly.
- rename QUOTE macro to STRINGIFY_ARG, and added STRINGIFY, which is used more often since it gives the value as a string.
2010-10-03 01:44:00 +00:00
a7fe586c94
patch [ #23749 ] IntVectorProperty missing step [patch]
...
from Dan Eicher (dna), also edited some comments.
2010-09-10 02:46:29 +00:00
45cf7633fe
remove class methods for defining properties
...
eg: bpy.types.Scene.BoolProperty()
2010-09-09 06:29:44 +00:00
ced3f3ad15
- fix for using ['prop'] in RNA api
...
- fix for testing without USE_PY_METACLASS defined.
2010-09-09 06:06:37 +00:00
128bd96c01
py/rna internals
...
- rna internal deferred properties now store the functions as PyObjects rather then C function pointers
- Property functions now allow the first non keyword argument to be a class.
2010-09-08 10:43:36 +00:00
6d82951947
bpy.props.* option to pass the first arg as a class.
2010-09-08 08:48:40 +00:00
99954545ee
bugfix [ #23656 ] Problems retrieving properties from inside runtime-created PointerProperties
...
cant test if this fix solves the problem matt is having but it at least fixes an error caused by classes created in exec(),
when the properties pointers were copied the hash key still referred to the python object which could be freed. in most cases this wouldnt happen (would be kept in bytecode) but with exec() the property string is freed immediately.
2010-09-06 15:54:08 +00:00
0d12c77097
bugfix [ #23635 ] property limits don't work when added via scripting\
...
also fix for bug where soft limits could be greater then hard limits with bpy.props.* functions.
2010-09-02 14:43:22 +00:00
39cb1432d8
bugfix [ #23285 ] Exporters not available whel using special characters in path name
...
- ID properties now suopport non utf-8 strings for their values but not their keys.
- moved utility functions into py_capi_utils.c from bpy_utils and bpy_rna.
- import/export paths have to be printed with repr() or %r, so non utf-8 chars are escaped.
2010-09-01 14:13:48 +00:00
04f619d8af
- PyLineSpit() - used to print the filename and line number for internal errors now works when executing class functions in a module.
...
- replaced PySys_GetObject("modules") with PyImport_GetModuleDict()
- use defaults for keymap import/export rather then setting the same value every time from the UI scripts.
2010-08-14 05:33:20 +00:00
63791e03d6
* Partially revert r30763, where PROP_IMAGEPATH was added.
...
* Brush icon property back to not using image browser until a better solution is decided on.
2010-07-26 23:40:46 +00:00
8fb499c34f
* Added a new RNA subtype, PROP_IMAGEPATH. It's the same as PROP_FILEPATH, but for images only.
...
* Changed UI code to display image browser for PROP_IMAGEPATH
* Set the icon_filepath RNA property for brushes to use PROP_IMAGEPATH
* Changed preview icon drawing to ignore unset icons
* Fixed const warnings in brush RNA
2010-07-26 18:37:47 +00:00
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
556b57febf
get rid of some warnings,
...
removed NG_LoopBackNetworkDeviceInterface::GetNetworkVersion(), wasnt used anywhere.
2010-06-05 15:31:55 +00:00
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
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
1e9bf0cfdb
spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)
2010-03-22 09:30:00 +00:00
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
431db9d478
remove unused includes
2010-03-14 16:06:43 +00:00
0ef0caaedf
RNA/Python: support for layer subtype with BoolVectorProperty.
2010-03-10 20:33:57 +00:00
1bb37bc10e
py api: bpy.props
...
new properties without any arguments were failing.
2010-02-21 12:15:38 +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
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
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