Commit Graph

1715 Commits

Author SHA1 Message Date
Joerg Mueller
4490e409a4 svn merge -r 30418:30512 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-07-19 22:43:45 +00:00
Campbell Barton
fd31436897 spelling correction: alredy --> already 2010-07-17 18:08:14 +00:00
Tamito Kajiyama
6d35f6110a Merged changes in the trunk up to revision 30416. 2010-07-16 21:35:48 +00:00
Joerg Mueller
2ffe3e46c5 svn merge -r 30323:30417 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-07-16 17:43:08 +00:00
Andrea Weikert
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
Tamito Kajiyama
2df7f76e78 Merged changes in the trunk up to revision 30397. 2010-07-15 21:05:11 +00:00
Andrea Weikert
05fb497f75 == installation paths ==
remove deprecated python BLI_gethome_folder calls

Patch by Brecht, thanks a lot
2010-07-15 20:02:53 +00:00
Tamito Kajiyama
cf2ff0b03e Merged changes in the trunk up to revision 30167. 2010-07-10 00:37:42 +00:00
Joerg Mueller
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
Campbell Barton
aff6b6885f added imports to templates 2010-07-08 16:24:24 +00:00
Campbell Barton
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
Tamito Kajiyama
b8de9bc5fb Merged changes in the trunk up to revision 29994. 2010-07-05 18:37:29 +00:00
Andrea Weikert
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
Campbell Barton
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
Tamito Kajiyama
cb805085ef Merged changes in the trunk up to revision 29702. 2010-06-26 13:39:43 +00:00
Campbell Barton
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
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
Tamito Kajiyama
4d141cf808 Merged changes in the trunk up to revision 29550. 2010-06-18 22:53:49 +00:00
Luca Bonavita
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
Campbell Barton
a2461a01c9 change to recent commit, insert_keyframe(datapath -> data_path ...)
made region width and height unsigned
2010-06-14 12:36:28 +00:00
Campbell Barton
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
Campbell Barton
aa97b4362b bugfix [#22427] settings bpy.context.active_object gives wrong message. 2010-06-14 02:05:37 +00:00
Campbell Barton
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
Campbell Barton
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
Tamito Kajiyama
df0b629e24 Merged changes in the trunk up to revision 29409. 2010-06-11 17:17:02 +00:00
Campbell Barton
dd72ffe3ff py/rna api:
- bpy.context wasnt being created from the python bpy.types.Context type defined in bpy_types.py (bpy.context.copy() failed for eg.)
- bpy.context.copy() was returning C defined methods like FloatProperty(), which are not useful in this case, removed.
2010-06-09 19:31:10 +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
Tamito Kajiyama
ca6f7ddd99 Merged changes in the trunk up to revision 29184. 2010-06-03 15:39:02 +00:00
Campbell Barton
cb26b4d7b9 error in last commit 2010-06-02 19:37:53 +00:00
Campbell Barton
b1a96f76dc include the blendfile name when executing python scripts, so when using libraries you can tell where the script is stored which raises an error. 2010-06-02 14:40:58 +00:00
Campbell Barton
1658a28a58 - Python console argument '--python-console', option so you can start blender and drop into a python console, (useful for debugging some problems on a renderfarm over ssh)
- Also made it so sys.stdin isnt overwritten anymore, instead the interactive consoel overwrites while it executes and restores after.

- removed hope folder from sphinx patch path
2010-05-30 14:05:58 +00:00
Tamito Kajiyama
dbcb73c033 Merged changes in the trunk up to revision 28911. 2010-05-21 22:01:47 +00:00
Campbell Barton
25e740f29d bpy.app.background - so a python script can check if blender is running without a UI 2010-05-18 15:57:51 +00:00
Campbell Barton
88743740b8 dont use a thread for baking in background mode, its not really any advantage since it starts a single thread that runs a loop. 2010-05-18 14:38:25 +00:00
Campbell Barton
c2ffcb8497 no functional changes
- add PySequenceMethods members (all NULL)
- spaces -> tabs
- cmake syntax warning from recent ghost commit
2010-05-16 10:09:07 +00:00
Tamito Kajiyama
cfc351afee Merged changes in the trunk up to revision 28772. 2010-05-14 21:50:15 +00:00
Campbell Barton
e8408697de bpy.utils.blend_paths(absolute=False) (was Blender.GetPaths in 2.4x) 2010-05-11 07:08:32 +00:00
Campbell Barton
a2166e5bc1 make python keyframe insert and delete functions use keyword arguments 2010-05-10 18:47:03 +00:00
Tamito Kajiyama
1e30f00030 Merged changes in the trunk up to revision 28685. 2010-05-09 12:42:19 +00:00
Campbell Barton
d92751fb33 missing arg from docstring 2010-05-09 00:37:12 +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
Tamito Kajiyama
8a20433f0f Merged changes in the trunk up to revision 28600. 2010-05-05 22:57:58 +00:00
Campbell Barton
02b8995bae clear warning 2010-05-04 07:26:57 +00:00
Tamito Kajiyama
a1d0913afe Merged changes in the trunk up to revision 28536. 2010-05-02 23:10:22 +00:00
Campbell Barton
124c55fcc3 remove redundant argument from mathutils callbacks 2010-04-27 19:21:36 +00:00
Campbell Barton
e40531991d fixes for euler order setting when the rotation mode is not euler. 2010-04-27 07:50:31 +00:00
Campbell Barton
6bb55fd93e py/rna, euler objects order is now wrapped correctly...
eg:
 eul = bpy.context.object.rotation_euler
 eul.order = 'XZY' # will update the objects setting.
2010-04-26 21:04:42 +00:00
Campbell Barton
4fc4fb9bfb rna/python mathutils module
- return euler rotation values from rna now have correct rotation order.
- mathutils.Euler stored rotation order off by 1. (didnt work at all)
- Euler/Quat/Color sliceing working again.
2010-04-25 23:33:09 +00:00
Campbell Barton
64359c9abc hash function for property-rna. eg. hash(bpy.context.object.modifiers) 2010-04-25 21:13:42 +00:00