Campbell Barton
3e8b56b321
add destructive argument to bmesh.update_edit_mesh()
2012-12-12 06:57:41 +00:00
Campbell Barton
44b634bcb1
make EDBM_index_arrays's stay in memory, blender was allocating an array and filling it for verts/edges/faces on every redraw.
...
this may introduce bugs which I didn't catch, but they are very easy to identify in a debug build which has asserts to ensure the arrays are valid before use.
in my own test drawing ~98,304 quads - this gave an overall ~16% drawing speedup.
2012-12-12 06:53:39 +00:00
Brecht Van Lommel
3759c10e5c
Fix #33485 : cycles OSL now autodetects the presence of emission and transparent
...
closures to enable multiple importance sampling and transparent shadows.
2012-12-12 06:51:06 +00:00
Campbell Barton
cf723e5e7c
use htype flags as arguments to EDBM_index_arrays_init(), no functional changes.
2012-12-12 05:27:52 +00:00
Campbell Barton
3d69dbd44a
use openmp to thread some common bmesh operations
...
- BM_mesh_elem_toolflags_ensure / bmo_flag_layer_alloc / bmo_flag_layer_free / bmo_flag_layer_clear
- BM_mesh_select_flush
- EDBM_index_arrays_init
notes:
- mostly use openmp `sections` to split operations on vert/edge/face since this is a fairly minor change.
- split tool flag pool in 3, this means we can allocate exact sizes needed and iterate on them in threads without alloc'ing.
2012-12-12 05:04:01 +00:00
Campbell Barton
21a2660290
assert in debug builds if MEM_ alloc's are called in openmp threads.
...
note: the caller can do locking to prevent errors - but this isn't being done in blender yet, so this prevents accidental allocs in openmp for now.
2012-12-12 04:41:23 +00:00
Campbell Barton
c40030a36c
replace BLI_array_declare with BLI_array_staticdeclare() and BLI_array_alloca() for smaller arrays.
2012-12-12 02:48:03 +00:00
Tamito Kajiyama
acae0e7b1f
Further fix for svn:executable.
2012-12-11 23:05:04 +00:00
Tamito Kajiyama
6569902081
Fix for svn:executable.
...
Reported by Bastien Montagne, thanks!
2012-12-11 23:01:21 +00:00
Tamito Kajiyama
53d845ba69
A big cleaning patch by Bastien Montagne (thanks a lot!)
...
* Split and moved Cycles’ render layers panels into the render_layer
context as well (would be nice to hide this context when not needed,
e.g. with the BGE, but this is not so easy to do nicely...).
* Fixed some inconsistencies with trunk (probably due to svn merge
glitches) using r52858 as reference. Also recovered the missing
release/bin/blender-softwaregl file.
* A bunch of style code fixes in Blender's own code (not Freestyle
itself yet): line lengths, spaces around operators, block formatting,
headers, etc. In rna_linestyle.c, color_blend_items was replaced by
ramp_blend_items (exported from rna_material.c).
2012-12-11 22:00:22 +00:00
Daniel Genrich
b5ce1b1a23
Fix for cloth/smoke: Collision and flow objects always had to be on the same layer.
...
Reported and patch by MiikaH
2012-12-11 20:39:54 +00:00
Sergey Sharybin
892d21631b
Install dependencies used to always mark schro as used for suse.
...
Now it should respect all features option.
Also removed some duplicated entries.
2012-12-11 19:45:16 +00:00
Thomas Dinges
188718a3d5
OSL Shader Files:
...
* Simplify default color values, where each component was the same.
* Initialize closures as Null Closure, rather than assigning an existing closure, gets overwritten anyways.
2012-12-11 16:06:03 +00:00
Campbell Barton
92ae023a90
change to r52888, since we dont always want ED_view3d_offset_distance() to give a corrected value, instead pass a fallback so callers don't allow zero by accident.
2012-12-11 15:56:11 +00:00
Campbell Barton
1eadcf743d
fix for building with msvc
2012-12-11 15:29:08 +00:00
Campbell Barton
570cdb3b6e
image stamp data's strings could be short enough not to fit the entire ID name length.
2012-12-11 15:14:35 +00:00
Campbell Barton
71730f26d7
replace BLI_array_fixedstack_declare with() new macro BLI_array_alloca() which uses stack memory always and doesn't need to be freed explicitly.
2012-12-11 15:10:19 +00:00
Campbell Barton
3520dd56e3
fix for warnings/errors in recent commits
2012-12-11 15:06:51 +00:00
Ton Roosendaal
cb116b42f4
Bug fix, irc report:
...
When camera is the pivot of 3d window, and you go to camera view, moving out of
view with MMB drag causes zooming to stop working. Zooms depend on view3d "dist"
value, which then became zero.
This fix just makes dist "1.0" then, arbitrary but keeps things at least work.
(Tried restoring to previous 'dist', but this fails in cases too)
2012-12-11 14:45:38 +00:00
Brecht Van Lommel
8d4bd2cf3b
Cycles OSL: add diffuse_ramp closure in addition to phong_ramp.
2012-12-11 14:39:41 +00:00
Brecht Van Lommel
43c04eefe3
Cycles: RGB and Vector Curves nodes now supported, with the limitation that the
...
range must be left to the default (0..1 and -1..1).
2012-12-11 14:39:37 +00:00
Brecht Van Lommel
7c81952179
Cycles: trick to make building with OSL trunk work as well, it has a different
...
name for LoadMemoryShader so we make it call the right name depending on which
is available.
2012-12-11 14:39:32 +00:00
Brecht Van Lommel
1e5cc7c51b
RNA: add Window x/y position and size access.
2012-12-11 14:39:30 +00:00
Brecht Van Lommel
68efcca5ea
Fix issue reported in #32174 : IK solver stretch was less stable after a code refactor
...
commit, epsilon was supposed to be 0.01 instead of 0.001.
2012-12-11 14:39:28 +00:00
Brecht Van Lommel
fd3068281c
Fix OS X warning on startup about using deprecated function, when building against 10.8 SDK.
2012-12-11 14:39:26 +00:00
Campbell Barton
f6c14d430f
minor speedup - replace use of smallhash with api_flags for BM_edge_split()
2012-12-11 14:30:12 +00:00
Campbell Barton
7c699a217a
define the size of matrix args for both rows/cols.
2012-12-11 14:29:01 +00:00
Campbell Barton
e2f0a1e4db
own cleanup commit in bmesh branch - removed last letters from ends of some comments.
2012-12-11 14:24:27 +00:00
Campbell Barton
06d5747ff3
was using max short on a float in EDBM_face_find_nearest()
2012-12-11 14:21:52 +00:00
Campbell Barton
dfa662f53a
use const char for display device
2012-12-11 14:20:29 +00:00
Campbell Barton
5943c81a93
code cleanup: neareast -> nearest
2012-12-11 14:19:41 +00:00
Campbell Barton
634b22fc46
code cleanup: spelling labda -> lambda
2012-12-11 14:18:37 +00:00
Bastien Montagne
01ab26770f
Fix some RNA subtypes for collections' active/active_index props (some PROP_POINTER had PROP_UNSIGNED!). Harmless, but stupid ;)
2012-12-11 14:11:46 +00:00
Campbell Barton
361eb23a42
switch BLI_ghashutil_strhash() to "djb" hash (as used by glib),
...
Gives approx 10% speedup in my own micro-benchmark looking up operators.
2012-12-11 13:57:58 +00:00
Campbell Barton
3261338aef
unfreeze blender, back to bcon1
2012-12-11 13:56:01 +00:00
Daniel Genrich
e089c5a976
Bugfix [ #33467 ] Fluid Simulations Speed factor animated wrong result
...
Thanks to Brecht for providing a patch and example blend.
I changed and extended it a bit since there was another bug in that loop.
2012-12-11 13:02:42 +00:00
Brecht Van Lommel
d321ee3fda
Fix #33476 : cycles environment texture not showing image sequence options properly.
2012-12-11 11:22:51 +00:00
Brecht Van Lommel
ea464b9659
OSL install deps script: set STOP_ON_WARNING to OFF to disable -Werror.
2012-12-11 08:13:56 +00:00
Brecht Van Lommel
c6961305df
Fix game player still not using fast GPU mipmap generation, user preferencs
...
are not actually used here.
2012-12-11 08:01:16 +00:00
Brecht Van Lommel
cb2ad513bb
Splash template XCF file for Gimp.
2012-12-11 08:01:05 +00:00
Campbell Barton
08f39daf4e
cmake wouldn't build since it was missing files added in r52858.
2012-12-11 05:57:42 +00:00
Campbell Barton
a6e9c9fda0
update api changelog
2012-12-11 02:13:42 +00:00
Tamito Kajiyama
c9dc80111b
Merged changes in the trunk up to revision 52858.
...
Congratulations to all trunk devs on the Blender 2.65 release!
2012-12-10 23:34:41 +00:00
Joerg Mueller
245345fba5
Audaspace:
...
Implemented forgotten Calculator classes from boost migration.
2012-12-10 16:58:47 +00:00
Sergey Sharybin
da2dc58773
code cleanup: remove unused and unsupported functions from libmv-capi
2012-12-10 16:38:39 +00:00
Sergey Sharybin
5137b5a146
Camera tracking: libmv distortion API now also uses camera intrinsics structure
...
instead of passing all the parameters to every function.
Makes it much easier to tweak distortion model.
2012-12-10 16:38:28 +00:00
Sergey Sharybin
ec870eb214
code cleanup: camera tracking
...
- Moved keyframes and refirement flags into reconstruction options structure
- Moved distortion coefficients and other camera intrinsics into own structure
- Cleaned up reconstruction functions in libmv c-api
2012-12-10 16:38:13 +00:00
Sergey Sharybin
b1afaa8312
Merging r51923 through r52851 from trunk into soc-2011-tomato
2012-12-10 15:18:00 +00:00
Sergey Sharybin
e1100cb655
Fix for maya keymap
2012-12-10 14:06:57 +00:00
Brecht Van Lommel
cc551ed218
Splash screen for 2.65, created by Jordan Schur.
2012-12-10 14:01:08 +00:00