Campbell Barton
0b1066af8e
fix [ #29251 ] Properties options={'SKIP_SAVE'} not working, patch attached
...
patch from Domino Marama (domino)
2011-11-14 15:05:41 +00:00
Campbell Barton
c993ee678a
new math utility function isect_plane_plane_v3
2011-11-13 16:28:52 +00:00
Campbell Barton
963e39e417
formatting edits only - no functional changes
2011-11-13 09:38:53 +00:00
Campbell Barton
72a7101576
include invalid type name in mathutils error messages.
2011-11-13 09:20:04 +00:00
Tamito Kajiyama
0ca96e1eb1
Merged changes in the trunk up to revision 41768.
...
Conflicts resolved:
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/RNA_enum_types.h
source/blender/render/intern/source/shadeinput.c
source/blenderplayer/bad_level_call_stubs/stubs.c
Additional changes:
* source/blender/makesrna/intern/rna_linestyle.c: Fixed white
space issues that generated a number of compiler errors. The
problem was that two string literals for enumerating MA_RAMP_SOFT
and MA_RAMP_LINEAR contained a space. The string literals are
supposed to represent a valid C identifier because of their use
for automatic code generation.
* Stroke transparency has been temporarily disabled due to a
functionality conflict with some merged changes. A fix of this
issue is planned.
2011-11-12 23:12:30 +00:00
Campbell Barton
817b6cb9a8
mathutils.geometry.distance_point_to_plane(pt, plane_co, plane_no) - utility function, BLI math version too.
2011-11-12 10:06:56 +00:00
Campbell Barton
e84c0980a3
correct indentation and some whitespace edits (no functional changes)
2011-11-11 13:09:14 +00:00
Campbell Barton
094c9799f9
quiet -Wdouble-promotion warnings
2011-11-11 12:00:08 +00:00
Bastien Montagne
e4269043b4
Moving i18n code to BLF_translation.h
...
This way, we will be able to use it in non-UI parts of the code too.
2011-11-09 14:13:17 +00:00
Nathan Letwory
c9bca51e76
Add compiles support for Cycles.
...
No CUDA compiling yet, will be added later.
2011-11-08 20:40:02 +00:00
Tamito Kajiyama
80e398e7b2
Merged changes in the trunk up to revision 41638.
...
Conflicts resolved:
doc/python_api/sphinx_doc_gen.py
source/blender/blenkernel/BKE_main.h
source/blender/blenkernel/intern/library.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/include/UI_resources.h
source/blender/editors/interface/resources.c
source/blender/makesdna/DNA_ID.h
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_main.c
source/blender/makesrna/intern/rna_main_api.c
source/blender/makesrna/intern/rna_scene.c
2011-11-08 06:30:02 +00:00
Brecht Van Lommel
dca15b215d
Cycles: svn merge -r41613:41627 ^/trunk/blender
2011-11-07 17:13:32 +00:00
Brecht Van Lommel
5ef9039b7e
Cycles: svn merge -r41531:41613 ^/trunk/blender
2011-11-07 15:23:08 +00:00
Campbell Barton
85540d5aa7
more macro --> BLI math lib, mainly replace VECCOPY in render and blenkernel.
2011-11-06 16:38:21 +00:00
Campbell Barton
e5647ea196
py operators - don't use the screen as an operators ID anymore, screen's don't store operator instances and operator functions have access to the context if they need the current screen.
...
also add some more py api file descriptions.
2011-11-05 08:40:07 +00:00
Campbell Barton
2b939904ab
documentation - brief descriptions for bpy api files.
2011-11-05 08:21:12 +00:00
Campbell Barton
62f2218554
macro formatting & remve some unused code.
2011-11-05 05:44:52 +00:00
Campbell Barton
057bf2a02b
misc doc edits
...
- remove recently added sphinx reference workaround.
- tested doxygen, correct some warnings, set tab width and added pymathutils group.
- added convenience target 'make doc_doxy'
2011-11-05 01:48:10 +00:00
Brecht Van Lommel
942d2fe3b7
Cycles: svn merge -r41467:41531 ^/trunk/blender
2011-11-04 20:21:40 +00:00
Campbell Barton
87cd81b162
- added docs and examples for bpy.app.handlers
...
- correct error in own last commit for BKE_screen_find_big_area()
2011-11-04 04:27:46 +00:00
Campbell Barton
665f602f15
python string conversion
...
- use _PyUnicode_AsStringAndSize where possible
- use %R for PyErr_Format(...) rather then running repr on the object explicitly
- use const char
2011-11-03 14:09:18 +00:00
Campbell Barton
dff93ddecc
hopefully fix msvc build error
2011-11-03 12:01:18 +00:00
Brecht Van Lommel
9a4e1e0f0a
Cycles: updates to follow code committed to trunk.
2011-11-03 10:18:58 +00:00
Campbell Barton
5eef937436
modify previous api feature to tag functions as permanent, use nicer decorator style, eg:
...
# --------
import bpy
from bpy.app.handlers import persistent
@persistent
def my_func(scene):
pass
bpy.app.handlers.frame_change_pre.append(my_func)
2011-11-03 09:13:47 +00:00
Campbell Barton
e2393d1109
ability to have permanent callbacks that stay active when new blend files are loaded.
...
this works by tagging functions, eg:
def my_func(scene):
pass
bpy.app.handlers.permanent_tag(my_func, True) # <-- important bit
bpy.app.handlers.frame_change_pre.append(my_func)
2011-11-03 06:53:52 +00:00
Brecht Van Lommel
723e129252
Depsgraph/Python: callbacks and properties to detect datablock changes
...
* Adds two new python handlers: scene_update_pre() and scene_update_post()
These run before and after Blender does a scene update on making modifications
to the scene.
* Datablocks now have an is_updated property. This will be set to true in the
above callbacks if the datablock was tagged to be updated. This works for the
most common datablocks used for rendering: object, material, world, lamsp,
texture, mesh, curve.
* Datablock collections also have an is_updated property. If this is set, it
means one datablock of this type was added, removed or modified. It's also
useful as a quick check to avoid looping over all datablocks.
* RenderEngine.view_update() can also check these properties, for interactive
viewport rendering.
http://wiki.blender.org/index.php/Dev:2.6/Source/Render/UpdateAPI
2011-11-02 20:56:52 +00:00
Brecht Van Lommel
2f453773f6
Cycles: svn merge -r41266:41467 ^/trunk/blender
2011-11-02 16:17:05 +00:00
Campbell Barton
e29aa363f2
new math function: Quaternion.to_axis_angle().
...
add in safety checks for inf/nan values which could happen in some cases.
2011-11-02 09:13:04 +00:00
Thomas Dinges
32b34d631a
Space types:
...
* Some cleanup, removed references to already deleted *_header.c files.
* Marked SpaceScript as deprecated and removed header. Will keep space for now though, as some script operators are there and Campbell might want to re-use the space later.
2011-11-01 20:14:58 +00:00
Thomas Dinges
ea2f7c907c
== Removal of SpaceSound ==
...
* Removed old, unused Space Sound space
* Removed data struct and Theme settings
* Old files with an open Audio window will be loaded as Info Space
2011-11-01 19:48:45 +00:00
Andrea Weikert
785de4cbfc
== Cleanup of SpaceImasel ==
...
* removed struct for SpaceType and all usages
* SPACE_IMASEL in enum nees to be kept to identify it in old files
* it is replaces with SPACE_EMPTY on load, which is overridden by SPACE_INFO which has same struct members
* also removed theme settings
2011-11-01 18:27:09 +00:00
Campbell Barton
797d2bbd88
use_verify option to defvert_sync_mapped and defvert_sync was flipped, also minor edits to defvert_verify_index() - no functional change.
2011-10-31 06:13:20 +00:00
Campbell Barton
9905094f5d
fix own error r41191 getting id property string lengths.
2011-10-31 01:50:04 +00:00
Tamito Kajiyama
65668dc5eb
Merged changes in the trunk up to revision 41368.
...
Conflicts resolved:
source/blender/blenkernel/intern/library.c
source/blender/blenlib/intern/bpath.c
source/blender/render/intern/source/convertblender.c
2011-10-30 02:03:40 +00:00
Tamito Kajiyama
16702c1729
Merged changes in the trunk up to revision 41225.
...
Conflicts resolved:
source/blender/render/intern/source/pipeline.c
2011-10-29 15:46:14 +00:00
Campbell Barton
0d63bb005f
replace VECCOPY and QUATCOPY with inline funcs.
2011-10-28 12:40:15 +00:00
Campbell Barton
565fcd8907
fix for error in gpu.export_shader() was missing *4 (only writing 1/4 of the colorband)
2011-10-28 08:53:00 +00:00
Campbell Barton
4b635d1631
use generic path remapping when making all library data local, previously only image paths were getting corrected, now all paths will (scene image seq strips, pointcache etc)
2011-10-28 04:44:59 +00:00
Campbell Barton
699030ceb6
use const for readonly strings and set some functions to static
2011-10-27 14:41:26 +00:00
Campbell Barton
31d401613d
bpath
...
- loop over all sequence images and pointcache
- option not to loop over library / packed data, expose in bpy.utils.blend_paths()
2011-10-27 03:40:12 +00:00
Campbell Barton
cd852ce1a1
- remove bpath iterator and replace all uses with visitor.
...
- added flag to optionally receive all paths as absolute.
2011-10-27 01:25:07 +00:00
Brecht Van Lommel
4cd1e6337e
Cycles: svn merge -r41225:41232 ^/trunk/blender
2011-10-24 22:32:00 +00:00
Brecht Van Lommel
55ab66b455
Cycles: svn merge -r41205:41225 ^/trunk/blender
2011-10-24 20:19:04 +00:00
Guillermo S. Romero
82c84f4b58
Remove some more $Id$ that still were left after r41227 and r41228.
2011-10-23 19:01:59 +00:00
Guillermo S. Romero
6105199668
Remove the svn:keywords property.
2011-10-23 18:38:16 +00:00
Campbell Barton
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
Campbell Barton
f5b37d40ca
set pythons 'sys.stdout' encoding to utf-8 and use surrogateescape error handler.
...
without this printing a unicode string may raise an error which is a real pain especially since script authors often forget this and print the path of a file for example on export which can make a script fail outright when writing to paths with certain encodings.
2011-10-23 07:51:21 +00:00
Brecht Van Lommel
2bfd10131e
Cycles: svn merge -r41182:41205 ^/trunk/blender
2011-10-22 19:06:41 +00:00
Brecht Van Lommel
e417e011d5
Code cleanup: file operations merged into single header, some function names
...
made less cryptic and changed to indicate if they work on files or directories.
2011-10-22 15:35:49 +00:00
Campbell Barton
ebe63b664b
py api - added PyC_UnicodeFromByteAndSize() to match PyUnicode_FromStringAndSize()
...
also made RNA_property_string_get_alloc() return the length of the new string to avoid having to run strlen on it after.
2011-10-22 10:49:35 +00:00