Campbell Barton
70b57d5634
optimization for BLI_array_growitems (better put - improve inefficient method), BLI_array_growone was being called in a loop, even if the size of the allocated array was big enough for all items.
...
In this case now just adjust the count value since theres no need to loop,
when the allocation is not big enough BLI_array_growone in a loop is still used though.
2011-12-07 00:18:08 +00:00
Campbell Barton
cead1e1977
added mesh_calc_normals_ex() which is mesh_calc_normals() with an option to skip recalculating the vertex normals (only calculate poly/face normals instead).
...
also removed unneeded allocation of face normals.
otherwise no functional change.
2011-12-06 22:55:41 +00:00
Campbell Barton
35e80c5544
svn merge ^/trunk/blender -r42439:42466
2011-12-06 18:50:45 +00:00
Brecht Van Lommel
b8cc575ee3
Fix related to #29513 : materials using nodes will output passes from the active
...
material node. This is a confusing system, but two features were missing from
2.4x that made this at least a bit more clear:
* The top right icon in the node now shows brighter again for the active node.
* Setting a material datablock in a node makes that node active.
2011-12-06 16:04:45 +00:00
Thomas Dinges
b7649ea757
Cycles / CUDA Kernel compile:
...
* Added option "WITH_BF_CYCLES_CUDA_THREADED_COMPILE" for the people who have much RAM (8 or more) and can compile several kernels at the same time. If enabled, it uses the general BF_NUMJOBS flag.
* The option is off per default.
2011-12-06 16:00:57 +00:00
Sergey Sharybin
fc72660bed
Fix #27622 : Sequencer Wipe Angle Incorrect
...
Made wipe angle be real angle instead of making some ease effects which can be reached by animation curves.
2011-12-06 15:32:10 +00:00
Sergey Sharybin
b264fea601
Fix #29511 : Separate tool duplicates objects
...
Do not register separate mesh operator so it can't be redone from operator redo panel.
2011-12-06 14:34:56 +00:00
Brecht Van Lommel
cd1e78f1b7
Cycles: scons cuda kernel compile now does one kernel at a time, to reduce memory
...
usage.
2011-12-06 12:29:54 +00:00
Sergey Sharybin
fca9c231a0
Fixed crash when movie clip curves region is opened and clip is getting unlinked
2011-12-06 12:04:39 +00:00
Campbell Barton
26db98293f
Quiet annoying warning:
...
Warning! Tesselation uvs or vcol data got out of sync, "had to reset!
This would happen on every editmode edit with UV's and wasn't too reassuring that blender was handling uvs/vcols correctly.
From looking into the problem I found that creating the undo mesh would act as if it was tessellating the existing mesh each time and complain that the data was out of sync, when infact the mesh was just created and being filled in.
Also, allocating uv and vcol customdata arrats for tessfaces isn't needed for undo mesh, so save some memory and dont allocate these in the first place.
2011-12-06 09:28:25 +00:00
Sergey Sharybin
3b1e077b39
Camera tracking: fixed typo in remove tracking preset button
2011-12-06 09:23:35 +00:00
Campbell Barton
0b805fcb5d
remove double lookus in BM_GetCDf/BM_SetCDf, also remove bm_cdata_get_single_float which was a duplicate of BM_GetCDf.
2011-12-06 08:07:12 +00:00
Campbell Barton
4b73f587ee
attempt to fix defione for qtcreator project file and cycles define.
2011-12-06 04:53:16 +00:00
Campbell Barton
e4ced610ee
fix for crash calling rotate edge on a completely selected torus.
2011-12-06 03:31:28 +00:00
Campbell Barton
5431081472
yet another fix for [ #28645 ] TODO: dissolve edges doesn't delete lonely vertices on edges
...
this one finally does what Vilem Novak was asking for, however the other changes were still improvements.
2011-12-06 02:24:30 +00:00
Campbell Barton
e72534e398
fix for crash toggling editmode with vertex parenting, add check if the vertex map can even be created to save looping over all mesh data to do nothing, which is what was happening previously when it (wasnt crashing) in some cases.
2011-12-06 01:49:35 +00:00
Campbell Barton
04464c6cf9
more minor py edits
2011-12-05 23:05:16 +00:00
Campbell Barton
b44c82b4fd
remove invalid NULL checks from own recent commit and minor pep8 edits.
2011-12-05 22:19:30 +00:00
Brecht Van Lommel
63ad25c30d
Cycles:
...
Fix #29475 : remove node from properties editor crash on windows. This was a bug
in the UI code, which code access removed data.
Fix OpenCL still being used in a case where Experimental was disabled.
Fix msvc debug warning in md5 code.
2011-12-05 19:54:59 +00:00
Campbell Barton
d97f88d278
svn merge ^/trunk/blender -r42426:42439
2011-12-05 17:54:33 +00:00
Brecht Van Lommel
c40d8921b8
Fix #28107 : save screenshot operator option to save full screen or only a single
...
editor was not working. Solution is to take full screenshot and crop it on save.
Also fixed screenshot showing popup menu used to execute operator.
2011-12-05 16:37:31 +00:00
Brecht Van Lommel
72827ee531
Fix #29507 : cycles rendering of metaball animations not working.
2011-12-05 15:57:57 +00:00
Thomas Dinges
a5434508ac
Release Cycle:
...
* BCon4: Release candidate, important bug fixes only!
2011-12-05 15:32:17 +00:00
Brecht Van Lommel
9cac9579ae
Fix #29506 : libmv build issues on freebsd, patch by Shane Ambler.
2011-12-05 14:01:57 +00:00
Miika Hamalainen
c9eb206c06
Fix: Dynamic Paint sub-steps didn't work for constraint controlled brush objects.
2011-12-05 13:36:41 +00:00
Campbell Barton
45c1ccd65b
fix for dscale which was set to 0,0,0 from files saved between Nov 29 and Dec 4.
2011-12-05 11:02:54 +00:00
Sergey Sharybin
8582495c16
Minor whitespace fixes
2011-12-05 07:56:31 +00:00
Campbell Barton
824bfa98c3
fix [ #29378 ] some textures getting stretched when the mesh has solidify and subsurf
2011-12-05 07:48:49 +00:00
Campbell Barton
65e98ac837
commenting out code added in bmesh and not verified.
2011-12-05 05:28:31 +00:00
Campbell Barton
f4eb64b840
make use of axis_dominant_v3() function for is_quad_convex_v3()
2011-12-05 02:57:30 +00:00
Campbell Barton
f1989793e7
fix [ #29338 ] Viewport does not update when sculpting without a multires modifer
...
when no modifiers are applied, dont re-tessellate,
for future referece - this bug was caused because can_pbvh_draw() checks if (cddm->mvert == me->mvert)
re-tesselating the faces copies the vertex array so it was returning false.
2011-12-05 01:58:24 +00:00
Campbell Barton
cdc8b33111
svn merge ^/trunk/blender -r42422:42426
2011-12-04 23:39:01 +00:00
Campbell Barton
f07df7287e
manual sync with trunk - pulling in changes where the issues are not bmesh spesific
...
- some merges added lines in multiple times
- removed some NULL checks that were only in bmesh
- enable cycles by default (was disabled because it used not to work)
- make formatting match
2011-12-04 23:13:28 +00:00
Campbell Barton
eb233d9332
syncing some minor formatting edits from bmesh branch.
2011-12-04 23:04:43 +00:00
Daniel Salazar
577730daad
2011-12-04 22:48:23 +00:00
Campbell Barton
3267a619f1
svn merge ^/trunk/blender -r42416:42422
2011-12-04 20:05:50 +00:00
Campbell Barton
bf77a177d4
remove mesh PartialVisibility, it wasnt being version patches or used anywhere, other then save/load/free.
2011-12-04 19:49:35 +00:00
Sergey Sharybin
229dd30f37
Slight optimization of track preview widget (the same approach as in tomato branch)
2011-12-04 18:49:41 +00:00
Campbell Barton
22a1ad61f9
svn merge ^/trunk/blender -r42372:42416
2011-12-04 18:39:19 +00:00
Bastien Montagne
937c5494c4
A (hopefully last) bunch of fixes and tweaks to UI label and messages (found while translating in french).
2011-12-04 17:36:13 +00:00
Campbell Barton
143b7ec10a
remove unused SpaceTime.redraws.
...
now there are no more use of deprecated struct member warnings.
2011-12-04 17:35:17 +00:00
Campbell Barton
f4eb0f507f
#if 0
use of Object.nlastrips, there is no way to add or remove these from blender so better not run.
2011-12-04 17:24:34 +00:00
Sergey Sharybin
3eaf5e93fd
Fix for movie clips weren't remapped properly on file save
2011-12-04 17:16:22 +00:00
Thomas Dinges
b550cd8c1e
Fix [ #29502 ] Brush texture Preview panel doesnt show Alpha checkbox
...
* Added to the py UI file, it would require some deeper changes to have it in the c Template, can be done later.
* Fixed a typo.
2011-12-04 16:55:46 +00:00
Campbell Barton
9c5ad4fb60
remove old renderer struct member, was only used for setting yafray but was still being checked in a few places,
2011-12-04 16:22:53 +00:00
Brecht Van Lommel
6c6b0ecb27
Fix compile issue on windows, broke this trying to fix for mac.
2011-12-04 15:49:14 +00:00
Campbell Barton
753bfe730a
fix building on openbsd, also quiet some warnings.
2011-12-04 15:45:53 +00:00
Antony Riakiotakis
1cb3ccd35c
Fix warning for redefinition of __MSVCRT_VERSION__
2011-12-04 14:47:21 +00:00
Antony Riakiotakis
166a6877b7
Fix MinGW compilation:
...
define __MSVCRT_VERSION__ to 0x0700 (microsoft runtime msvcr70.dll) so _aligned_malloc is defined.
2011-12-04 14:43:37 +00:00
Sergey Sharybin
af8587c6d6
Small code cleanup of tracking.c
2011-12-04 14:42:21 +00:00