304043ee5f
[ #22617 ] Using register/unregister alone crashes blender
...
wasnt crashing anymore but made exception message clearer.
2010-07-26 05:55:56 +00:00
e977f80a8f
bugfix [ #23018 ] Can't run 2.53 build
...
for some reason mbstowcs() was converting '/home/matrem/Téléchargements/' to '/home/matrem/T', where blenders utf8towchar() worked correctly, tried changing my locale but didnt help so using blenders utf8towchar() function.
2010-07-26 04:21:44 +00:00
e4a7087982
bugfix [ #22836 ] Alt+MMB view alignment don't respect all axes directions
...
also moved rotation_between_quats_to_quat into BLI_math from python mathutils.
2010-07-26 00:11:14 +00:00
147a5229a1
svn merge -r 30566:30717 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-07-25 13:12:58 +00:00
61a09d96b1
py api mathutils.Quaternion()
...
- getting axis, angle wasnt calling read callbacks so it didnt work with RNA.
- made setting axis and angle attributes possible.
2010-07-25 02:56:39 +00:00
026ac24922
[ #22488 ] Reloading scripts causes crash
...
F8 key enabled again, useful for script UI development.
- keying set freeing wasnt freeing from all scenes and the builtin list.
- PointerProperty() cant refer to a removed python srna type (fixed in rigify and netrender).
- Added a check for freeing a type used by a PointerProperty but its very slow, makes reloading take ~10sec. Only enabled this in debug mode for now.
Netrender register() function isnt re-registering the property, probably because the module is cached by python and not re-run.
2010-07-23 01:43:30 +00:00
46155bc009
svn merge -r 30513:30565 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-07-21 07:24:52 +00:00
e423e085f8
Merged changes in the trunk up to revision 30551.
2010-07-20 19:39:07 +00:00
75410037fd
- correct some spelling errors.
...
- remove FreeCamera struct (wasnt used)
- remove world color alpha values (not used anywhre).
2010-07-20 10:41:08 +00:00
d5d343a86b
noise python module back from 2.4x, personal request from ant author Jimmy Haze
...
Changes:
/* 2.5 update
* Noise.setRandomSeed --> seed_set
* Noise.randuvec --> random_unit_vector
* Noise.vNoise --> noise_vector
* Noise.vTurbulence --> turbulence_vector
* Noise.multiFractal --> multi_fractal
* Noise.cellNoise --> cell
* Noise.cellNoiseV --> cell_vector
* Noise.vlNoise --> vl_vector
* Noise.heteroTerrain --> hetero_terrain
* Noise.hybridMFractal --> hybrid_multi_fractal
* Noise.fBm --> fractal
* Noise.ridgedMFractal --> ridged_multi_fractal
*
* Const's *
* Noise.NoiseTypes --> types
* Noise.DistanceMetrics --> distance_metrics
*/
2010-07-20 03:14:21 +00:00
4490e409a4
svn merge -r 30418:30512 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-07-19 22:43:45 +00:00
1f7bcf2544
Minor sphinx corrections:
...
* Attributes starting with _ in classes are now ignored
* sphinx.blend updated so that it doesn't have to be edited anymore if the script changes
2010-07-19 13:36:10 +00:00
fd31436897
spelling correction: alredy --> already
2010-07-17 18:08:14 +00:00
8ecf072f9a
BGE Py API:
...
* Sphinx autorun file.
* bge modules are now autogenerated
* added aud module
2010-07-16 21:42:20 +00:00
6d35f6110a
Merged changes in the trunk up to revision 30416.
2010-07-16 21:35:48 +00:00
2ffe3e46c5
svn merge -r 30323:30417 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-07-16 17:43:08 +00:00
615db01b01
== installation paths ==
...
* fix for autosave location -> shouldn't use BLI_gethome anymore
* this frees BLI_gethome of having to emulate the local->user->system search path and can now be truly considered as 'home/default location for .blend files'
* removed setting the default G.sce from read_history, was out of context there.
* fix for creating user dir, leftover from previous commit.
jesterKing, please review -> if there are any issues I will fix or revert.
2010-07-15 21:39:47 +00:00
2df7f76e78
Merged changes in the trunk up to revision 30397.
2010-07-15 21:05:11 +00:00
05fb497f75
== installation paths ==
...
remove deprecated python BLI_gethome_folder calls
Patch by Brecht, thanks a lot
2010-07-15 20:02:53 +00:00
5daf9354d2
change some references to .B.blend, .Blog to new names
2010-07-15 11:51:43 +00:00
f588c49cb5
Merged changes in the trunk up to revision 30335.
2010-07-14 19:01:40 +00:00
8e3a9634a3
Change to text3d: When back or front is enabled, the bevel rim on the other side is not created anymore, just as the back/front filling faces are not created when disabled.
...
when both are off the behavior is unchanged.
This is needed when rendering alpha text so its possible to have a single layer of faces but use the bevel option to make text thicker.
adding a rim on the back when back is disabled also doesnt make much sense IMHO.
minor python edits too.
2010-07-14 17:47:58 +00:00
7a89b679c9
Merging revision 30126:30261 from trunk.
2010-07-13 11:14:49 +00:00
148ccc2f17
bugfix [ #22800 ] Mathutil bug with vector
...
example wasnt updated.
2010-07-11 16:12:32 +00:00
cf2ff0b03e
Merged changes in the trunk up to revision 30167.
2010-07-10 00:37:42 +00:00
9772eb4d5f
Audaspace:
...
* Renamed AUD_Handle to AUD_Channel in the C-API to prevent errors with the C++ version of AUD_Handle.
* Added Python API!!!
2010-07-09 12:35:40 +00:00
aff6b6885f
added imports to templates
2010-07-08 16:24:24 +00:00
6fcacf077d
- duplicating a scene now duplicates all strips (not just selected ones)
...
- python change, dont import 'bpy' by default, initially I thaught this would make scripting easier but it ends up being annoying when you want to register a script or if you want to import it. (more trouble then its worth to save 1 line, also not very pythonic).
2010-07-08 14:30:43 +00:00
b8de9bc5fb
Merged changes in the trunk up to revision 29994.
2010-07-05 18:37:29 +00:00
ca81aa704e
Patch [ #22339 ] File/installation paths changes
...
Patch Tracker: http://projects.blender.org/tracker/?func=detail&aid=22339&group_id=9&atid=127
This patch implements the proposal outlined here:
http://wiki.blender.org/index.php/Dev:2.5/Source/Installation/Proposal
Original patch by Matt Ebb.
Contributions by Nathan Letwory, Damien Plisson and Andrea Weikert
NOTE:
This is a work in progress commit, some work still needs to be done on the SCons and CMake files for this to work properly, but at least should compile and the files should be created in the right directory.
Commit discussed on IRC with Ton and Campbell.
2010-07-04 15:35:23 +00:00
80f6102629
better reporting for file i/o failier, use system error message in more places: Permission Denied, No space left, File not found etc.
...
- blend load/save uses os message.
- image load gives os message. (remove check for slash at end of line, just let the os report an error)
- python api load image/font/text raise errors with message (was just retuning None for image and font)
- minor edits to py api errors.
2010-07-03 17:47:06 +00:00
15be7b215f
- changes to the sequencer so new strips use the data name.
...
- removed the name option for the sequence operators.
2010-07-02 20:09:42 +00:00
1a6b9ea5d9
== python api docs ==
...
- properties are now listed on alphabetical order
- readonly properties use "data" directive, so that we see them in green in the web docs
example (after Campbell will rebuild the docs):
http://www.blender.org/documentation/250PythonDoc/bpy.types.RenderLayer.html
(note that green attributes still need final CSS-ing, but smerch is a bit busy atm)
- fixed indentation in http://www.blender.org/documentation/250PythonDoc/bpy.data.html
2010-06-28 00:06:23 +00:00
768ecb1ba9
api reference docs: include bpy.data in the main page since its used everywhere.
...
since this isnt a module its self its a little odd to do this but toctree cant make arbitrary cross-references.
Also added some usage examples: http://www.blender.org/documentation/250PythonDoc/bpy.data.html
2010-06-27 18:34:27 +00:00
cb805085ef
Merged changes in the trunk up to revision 29702.
2010-06-26 13:39:43 +00:00
54e6fc1519
remove math and m module names from python driver namespace. (all math functions are merged into the local namespace)
2010-06-25 21:24:59 +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
989cca1434
Fix #21369 : normals on extruded text and curve objects were flipped
...
for the backside, giving problems with e.g. boolean operations.
2010-06-23 13:18:50 +00:00
5ed7699e85
mathutils.RotationMatrix
...
Angles are in radians. Doc and example should reflect reality
2010-06-23 02:42:39 +00:00
4d141cf808
Merged changes in the trunk up to revision 29550.
2010-06-18 22:53:49 +00:00
22bca493b2
== addons ==
...
- release/scripts/ui/space_userpref.py
added the change to add a 'warning' field to bl_addon_info
warning icons are used to show 'broken' scripts or warnings
asked permission to campbell and matt in blendercoders to apply this
- source/blender/python/doc/sphinx_doc_gen.py:
small fix in the url
2010-06-17 02:38:49 +00:00
927aac74ab
- module for reading blend start/end frames and scene name (useful for finding the total frame count without loading a blend file)
...
- added render api as unstable to the docs.
2010-06-15 12:06:30 +00:00
8d3a5a8b0a
== python api docs ==
...
* source/blender/python/doc/sphinx_doc_gen.py:
changed the "undocumented" message so that it still links to
http://wiki.blender.org/index.php/Dev:2.5/Py/API/Documentation/Contribute
but uses flags in the url to help documenting.
Example: http://www.blender.org/documentation/250PythonDoc/bpy.ops.node.html#bpy.ops.node.link
click on "contribute", the new section has title "bpy.ops.node.link" and a howto message is shown
* source/blender/python/intern/bpy.c:
fixed a typo
2010-06-15 02:06:01 +00:00
a2461a01c9
change to recent commit, insert_keyframe(datapath -> data_path ...)
...
made region width and height unsigned
2010-06-14 12:36:28 +00:00
c2f36a4d6a
naming changes
...
path -> filepath (for rna and operators, as agreed on with elubie)
path -> data_path (for windowmanager context functions, this was alredy used in many places)
2010-06-14 03:52:10 +00:00
aa97b4362b
bugfix [ #22427 ] settings bpy.context.active_object gives wrong message.
2010-06-14 02:05:37 +00:00
374d3a6685
bugfix [ #21748 ] KX_Object scaling property not "writing" vector access .:. e.g. obj.scaling[2] = 2.0
...
- made worldspace readonly
- mathutils 'set' callbacks can now set their own error
2010-06-14 01:41:43 +00:00
971e4be108
modify my last commit to fix [ #22486 ] add_actuator crashes when name is bigger than 32 chars
...
Throwing an exception if the strings too long means scripts need to be aware of string lengths and changing a string length in RNA can too easily break scripts.
Instead honor the string length in RNA_property_string_set()
2010-06-12 17:30:21 +00:00
c3c6fb2de2
bugfix [ #22486 ] add_actuator crashes when name is bigger than 32 chars
...
have pyrna raise an error on strings that are too long.
2010-06-12 15:49:01 +00:00
dba99b544b
== python api docs ==
...
* source/gameengine/PyDoc/bge.types.rst:
KX_PolygonMaterial was missing the parent class indication (PyObjectPlus)
* source/blender/python/doc/sphinx_doc_gen.py:
* unified all the "undocumented" descriptions, like
http://www.blender.org/documentation/250PythonDoc/bpy.ops.anim.html#bpy.ops.anim.keyframe_delete_button
so that it will be easy for Alex to CCS 'em and also now people will have a link to contribute descriptions,
see http://wiki.blender.org/index.php/Dev:2.5/Py/API/Documentation/Contribute
* moved the note about bpy_struct not being available in the api
in a proper note directive, so that it's more evident
(I didn't see it at first)
2010-06-11 22:41:13 +00:00