Campbell Barton
a7815053ef
svn merge -r37600:37700 https://svn.blender.org/svnroot/bf-blender/trunk/blender
...
manually merged source/blender/editors/uvedit/uvedit_unwrap_ops.c
2011-07-25 12:59:54 +00:00
Campbell Barton
b709b52f46
svn merge -r37500:37600 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-07-24 13:21:54 +00:00
Campbell Barton
a50aa13fac
py api: make all classes __init__ functions in a readonly state, except for operators.
...
In bug [#27701 ], the panels __init__ function (which runs on every draw), was adding new rna properties.
2011-06-21 08:09:42 +00:00
Campbell Barton
ccc112a857
fix for error in swizzle assignment leaving an unhandled exception.
2011-06-21 02:15:07 +00:00
Guillermo S. Romero
31093223cd
SVN maintenance.
2011-06-18 23:22:55 +00:00
Campbell Barton
82216030e9
py-api: store frequently used strings as unicode PyObject's to avoid creating/distroying every time.
...
also fix for cmake warning
2011-06-18 08:45:45 +00:00
Campbell Barton
775ea4de92
fix for memory leak converting an idproperty group into a dict
2011-06-17 05:56:17 +00:00
Campbell Barton
7cbc4c0dd7
IDProperty python module update
...
- add support for IDProp array slicing, but not resizing.
- rename array attribute type to typecode and use chars 'f', 'd', 'i' which match pythons array module. (was using int's which only have a meaning internally).
- rename function 'convert_to_pyobject' to 'to_dict' and 'to_list' for IDProp group and array types respectively.
- remove 'len' array attribute, calling len(array) is fine.
2011-06-17 05:45:46 +00:00
Campbell Barton
897b570c1a
ulti line formatting for PyErr_Format calls (no functional change)
2011-06-17 02:26:34 +00:00
Campbell Barton
1356082063
fix [ #27681 ] Python: crash assigning a 'set' to an array
2011-06-17 02:22:38 +00:00
Campbell Barton
f122a74b1e
svn merge -r37078:37335 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-06-09 15:20:29 +00:00
Campbell Barton
e44ae2c2a9
disable the readonly state while rna property callbacks run.
2011-06-07 16:08:49 +00:00
Campbell Barton
9c8cc9fe60
rna option not to save certain properties for redoing later, currently only used by operator presets.
2011-06-07 10:54:57 +00:00
Campbell Barton
617a08162f
update ctest md5sums for import/export to match changes to the scripts, also some minor formatting change for bpy_props.c
2011-06-07 08:47:33 +00:00
Campbell Barton
8cee328546
Support for update callbacks in python defined RNA properties as discussed last meeting.
...
This means script authors can perform actions using these callbacks rather then on drawing which puts blender in a readonly state.
Simple example:
import bpy
def up_func(self, context):
print("test")
bpy.types.Scene.testprop = bpy.props.FloatProperty(update=up_func)
bpy.context.scene.testprop = 11
# prints -> test
2011-06-06 17:50:20 +00:00
Campbell Barton
619df86fad
panel headers were not scaling with DPI properly
2011-06-05 12:47:17 +00:00
Campbell Barton
50d24425ce
py/drivers disable dont interning strings, no need really since this isnt done on every execution.
2011-06-05 08:18:37 +00:00
Campbell Barton
7ee9becfa3
disable python/string enum duplication from last commit because the array of duplicated strings can be freed and the pointers to the strings referenced still, the problem with python freeing strings that RNA references remains.
2011-06-03 04:39:18 +00:00
Campbell Barton
089d997cbc
when making the C/RNA copy of the python enum, duplicate all strings since theres no guarantee python wont free them immediately after, though in practice this isn't so common.
2011-06-03 04:21:41 +00:00
Campbell Barton
5332c602c9
pre-allocate the array when converting py/rna enums, also fix for memory leak with bad values.
2011-06-03 03:19:22 +00:00
Campbell Barton
1ba4550d27
committed this by mistake.
2011-06-02 09:04:07 +00:00
Campbell Barton
d46da5a09d
mathutils support for color arithmetic, also some minor whitespace edits.
2011-06-02 08:29:16 +00:00
Campbell Barton
8949387186
svn merge -r37028:37030 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-31 05:28:00 +00:00
Campbell Barton
08d6932c86
svn merge -r36900:37028 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-31 05:11:04 +00:00
Campbell Barton
35cbb3ed49
svn merge -r36840:36890 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-31 02:55:29 +00:00
Campbell Barton
09da9d4393
cmake maintenance
...
blender_add_lib now takes a separate include argument to suppress warnings in system includes (mostly ffmpeg & python).
also only build wm_apple.c on apple+carbon configuration.
2011-05-31 01:15:44 +00:00
Campbell Barton
11014aa34b
access pythons code object directly rather than attribute access.
2011-05-29 11:05:52 +00:00
M.G. Kishalmi
9b5800bcd7
fixed "rather then" -> "rather than" typos all over the place
2011-05-28 13:11:24 +00:00
Brecht Van Lommel
d369a6aaaf
Windows installer and Path changes, fixing various issues:
...
* Windows installer not working for non-admin users and multiple users
* Addon scripts not installing next to user configuration
* Portable install not being taken into account in all places
The main problem was the windows installer was installing system scripts in
AppData next to the user configuration directory, which is not shared between
users. Now these are installed in ProgramFiles, and only addon scripts added
by the users go to AppData.
On all platforms, addon scripts were sometimes getting installed between
system scripts, because the scripts folder in the executable directory was
given precedence over the user configuration folder, that is no longer done
now. So addons now behave like user configuration, they are preserved even
if you download a newer build of the same blender version.
If you have an installation of 2.57 on windows, the addon install location
will not change until we do the version bump to 2.58, to avoid conflicts with
the existing the installed 2.57 version.
The old behavior of giving precedence to the local folder was done to support
portable install, where all configuration is written to the local folder. This
is now implemented differently: if and only if a "config" folder exists in the
local folder, portable install will be assumed, and files will only be written
to that local folder.
2011-05-27 09:57:53 +00:00
Campbell Barton
06fea1a0ff
split BLO_library_append_named_part into 2 function, one that adds objects into the scene and another that just links/appends.
2011-05-26 20:45:19 +00:00
Campbell Barton
78d41d061b
sphinx docstrng formatting (some lines were getting really long)
2011-05-26 19:13:01 +00:00
Campbell Barton
57c3c9e70f
support for dynamic items in bpy.props.EnumProperty(), the items keyword argument can optionally be a function rather then a list.
2011-05-26 16:07:28 +00:00
Campbell Barton
15289c6048
use PyDoc_STRVAR macro, so its possible to build without docstrings.
2011-05-24 16:05:51 +00:00
Campbell Barton
357ce16958
loading data with bpy.data.libraries.load(), now swaps out the strings in the list to load with the actual datablocks, this is convenient because it saves the script author having to find them after.
...
also raise warnings rather then errors if the datablock can't be found.
2011-05-24 15:21:14 +00:00
Campbell Barton
671cb93f1b
svn merge -r36801:36840 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-24 04:35:21 +00:00
Campbell Barton
6e39d908a9
quiet compiler warnings for -Wundef
2011-05-22 04:25:31 +00:00
Campbell Barton
4c37fe91f3
patch [ #27449 ] bpy_script_paths() return path reversed [patch]
...
from Dan Eicher (dna)
2011-05-21 05:34:20 +00:00
Campbell Barton
88f4087a57
svn merge -r36725:36801 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-20 16:52:10 +00:00
Campbell Barton
32793a1395
add python access to mathutils.intersect_line_plane, update view3d_utils module to use it.
2011-05-19 04:28:09 +00:00
Campbell Barton
6266e62170
python mathutils.Matrix.is_orthogonal readonly attribute.
2011-05-18 15:31:00 +00:00
Brecht Van Lommel
66f51ba5d1
RNA: make mechanism used by operators to keep python instance alive more generic, to be used by render engine later.
2011-05-18 11:21:10 +00:00
Brecht Van Lommel
178ba76b09
RNA: pass Main rather than Context to register/unregister callbacks.
2011-05-18 10:56:26 +00:00
Campbell Barton
0f329ebdf1
svn merge -r36583:36603 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-11 00:19:13 +00:00
Campbell Barton
89a166d0de
remove some duplicate declarations
2011-05-10 14:48:06 +00:00
Campbell Barton
eabb444106
minor cleanup: make functions static, use NULL for pointer comparisons,
...
also fixed a possible bug assigning incorrect DPX function types to
imbuf.
2011-05-10 13:11:36 +00:00
Campbell Barton
1e0c3d315b
minor cleanup, no functional changes.
2011-05-09 14:41:44 +00:00
Campbell Barton
5ba0c2c049
tag unused arguments, quiet some warnings
2011-05-09 14:32:55 +00:00
Campbell Barton
5776d7ff9c
svn merge -r36529:36564 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-05-09 09:38:48 +00:00
Campbell Barton
14a2330d7b
copied across changes which were missed by merging.
2011-05-09 02:45:52 +00:00
Joseph Eagar
6ef77cf95a
=bmesh= merge from trunk at r36529
2011-05-08 23:43:18 +00:00