9 years agosvn merge ^/trunk/blender -r43524:43530
Campbell Barton [Thu, 19 Jan 2012 16:30:56 +0000 (16:30 +0000)]
svn merge ^/trunk/blender -r43524:43530

9 years agosimplify clipping loop
Campbell Barton [Thu, 19 Jan 2012 16:12:40 +0000 (16:12 +0000)]
simplify clipping loop

9 years agostyle edits - < 120 line width
Campbell Barton [Thu, 19 Jan 2012 16:04:44 +0000 (16:04 +0000)]
style edits - < 120 line width

9 years agosize for static string was too small, we should really have dynamic sized strings...
Campbell Barton [Thu, 19 Jan 2012 15:11:22 +0000 (15:11 +0000)]
size for static string was too small, we should really have dynamic sized strings to rna functions.

9 years agosvn merge ^/trunk/blender -r43482:43524
Campbell Barton [Thu, 19 Jan 2012 11:31:31 +0000 (11:31 +0000)]
svn merge ^/trunk/blender -r43482:43524

9 years agoyRemove missed/unused "tweak" property from keymap for outliner's border select
Sergey Sharybin [Thu, 19 Jan 2012 11:27:00 +0000 (11:27 +0000)]
yRemove missed/unused "tweak" property from keymap for outliner's border select

9 years agoDynamic Paint:
Miika Hamalainen [Thu, 19 Jan 2012 11:13:41 +0000 (11:13 +0000)]
Dynamic Paint:
* Added "Project" option also for "Volume + Proximity" brush type.

9 years agouse color conversions functions in more places.
Campbell Barton [Thu, 19 Jan 2012 10:04:51 +0000 (10:04 +0000)]
use color conversions functions in more places.
also add rgba_float_to_uchar, rgba_uchar_to_float

9 years agoBaked edit: Make particle edit mode more usable for Softbodies and Cloth (jahka gave...
Daniel Genrich [Thu, 19 Jan 2012 09:58:25 +0000 (09:58 +0000)]
Baked edit: Make particle edit mode more usable for Softbodies and Cloth (jahka gave "OK")

9 years agorename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, rgb_uchar_to_float...
Campbell Barton [Thu, 19 Jan 2012 09:09:00 +0000 (09:09 +0000)]
rename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, rgb_uchar_to_float and swap args (math functions mostly have dest arg first like strcpy).

9 years agoadd utility functions linearrgb_to_srgb_uchar4,
Campbell Barton [Thu, 19 Jan 2012 08:22:23 +0000 (08:22 +0000)]
add utility functions linearrgb_to_srgb_uchar4,
linearrgb_to_srgb_uchar3, was being done inline.

9 years agoFix for building in release mode with scons.
Nicholas Bishop [Thu, 19 Jan 2012 07:12:30 +0000 (07:12 +0000)]
Fix for building in release mode with scons.

Change given thumbs up from JesterKing.

9 years agoadded support for the 3Dconnexion SpaceMouse Pro -- tested on Linux w/ spacenavd...
Mike Erwin [Thu, 19 Jan 2012 06:14:50 +0000 (06:14 +0000)]
added support for the 3Dconnexion SpaceMouse Pro -- tested on Linux w/ spacenavd, Macs need latest driver (Intel only (grumble)), Windows should be good as well but have not tested

9 years agoRemove a couple more unneeded variables from paint cursor drawing.
Nicholas Bishop [Thu, 19 Jan 2012 04:13:58 +0000 (04:13 +0000)]
Remove a couple more unneeded variables from paint cursor drawing.

9 years agoFix a minor RNA warning.
Nicholas Bishop [Thu, 19 Jan 2012 04:04:05 +0000 (04:04 +0000)]
Fix a minor RNA warning.

function warning.

9 years agoCouple minor fixes for DM_debug_print().
Nicholas Bishop [Thu, 19 Jan 2012 04:00:27 +0000 (04:00 +0000)]
Couple minor fixes for DM_debug_print().

Fix a gcc warning by not using the DM_debug_info string as the format
string, also free the string after printing.

9 years agoRemove some unused alpha code in paint_cursor.
Nicholas Bishop [Thu, 19 Jan 2012 04:00:03 +0000 (04:00 +0000)]
Remove some unused alpha code in paint_cursor.

9 years agoRemove stroke parameter from PaintStroke's StrokeGetLocation callback.
Nicholas Bishop [Thu, 19 Jan 2012 03:13:01 +0000 (03:13 +0000)]
Remove stroke parameter from PaintStroke's StrokeGetLocation callback.

Only affected sculpt.

9 years agoMove paint's WM paint cursor code into a new file.
Nicholas Bishop [Thu, 19 Jan 2012 02:06:09 +0000 (02:06 +0000)]
Move paint's WM paint cursor code into a new file.

The paint cursor code is fairly muddled still and needs futher cleanup
(commented in the new file.) Over half the paint_stroke code was just
called from the cursor draw function.

There should be no functional changes from this.

9 years agodebug function DM_debug_info / DM_debug_print, with access from python
Campbell Barton [Thu, 19 Jan 2012 00:18:25 +0000 (00:18 +0000)]
debug function DM_debug_info / DM_debug_print, with access from python
through Object.dm_info('SOURCE/DEFORM/FINAL')

this is to help tracking down issues with modifiers where loosing data
layers between modifiers can cause bugs, also to helo with comparing
bmesh/trunk's modifier stack.

9 years agopatch [#29679] Expose connected logic bricks from python
Dalai Felinto [Wed, 18 Jan 2012 22:42:57 +0000 (22:42 +0000)]
patch [#29679] Expose connected logic bricks from python
it exposes sensor.controllers and controller.actuators
this is how the data is exposed in blender.

to have controller.sensors or actuator.controllers is not that straightforward

9 years agoFix #29922: NaN pixels due to bump map in degenerate case.
Brecht Van Lommel [Wed, 18 Jan 2012 22:36:19 +0000 (22:36 +0000)]
Fix #29922: NaN pixels due to bump map in degenerate case.

9 years agoCode cleanup: remove some unused code.
Brecht Van Lommel [Wed, 18 Jan 2012 22:36:16 +0000 (22:36 +0000)]
Code cleanup: remove some unused code.

9 years agoFix small code issue pointed out by nico_ga, was doing negation on unsigned type,
Brecht Van Lommel [Wed, 18 Jan 2012 22:36:12 +0000 (22:36 +0000)]
Fix small code issue pointed out by nico_ga, was doing negation on unsigned type,
didn't seem to break anything though.

9 years agoallow building without xinput again
Campbell Barton [Wed, 18 Jan 2012 22:32:33 +0000 (22:32 +0000)]
allow building without xinput again

9 years agopatch [#29924] Border select tool implementation for the outliner
Campbell Barton [Wed, 18 Jan 2012 21:12:51 +0000 (21:12 +0000)]
patch [#29924] Border select tool implementation for the outliner
from Perry Parks (scuey), with edits.

- select row rather than icons.
- adjust outliner selection rather than object selection.

9 years agofix [#27589] Random crash with python UI
Campbell Barton [Wed, 18 Jan 2012 19:50:44 +0000 (19:50 +0000)]
fix [#27589] Random crash with python UI

This script was defining an operator within the panels draw function, while its possible to support this its really asking for trouble.

the fix is to raise an error when this happens.

also fix crash passing non classes to register_class/unregister_class

9 years agoCurve points of tracking curves now can be grabbed to smooth spikes
Sergey Sharybin [Wed, 18 Jan 2012 16:45:02 +0000 (16:45 +0000)]
Curve points of tracking curves now can be grabbed to smooth spikes

Curve points of tracks curves now can be selected for X and Y channels
separately and can be moved along Y axis of curve viewer, points currently
can't change frame they belong to. This allows to smooth spikes caused by
unwanted marker jump.

Also fixed some mistakes in cancel transform in cases when locked tracks
were being trying to be moved; fixed incorrect calculation of marker speed
for curve drawing.

9 years agoreplace CDDM_calc_normals_mapping with CDDM_calc_normals(), this version of the funct...
Campbell Barton [Wed, 18 Jan 2012 15:47:56 +0000 (15:47 +0000)]
replace CDDM_calc_normals_mapping with CDDM_calc_normals(), this version of the function wont create tessfaces (and should speedup the modifier stack in some cases).

9 years agodissable editmode tessface creation in 'get_dm' looked over uses and all that use...
Campbell Barton [Wed, 18 Jan 2012 15:33:51 +0000 (15:33 +0000)]
dissable editmode tessface creation in 'get_dm' looked over uses and all that use editmode data are deform modifiers.

9 years agocall CDDM_from_BMEditMesh without creating tessface data for modifiers.
Campbell Barton [Wed, 18 Jan 2012 15:29:25 +0000 (15:29 +0000)]
call CDDM_from_BMEditMesh without creating tessface data for modifiers.

- in the case of deform modifiers this is very safe (assuming the mods themselves dont need tessface data), since the DM is freed right after, so this is an easy speedup.

- in the case of bevel and split edge modifiers this should still work out fine since mods that need tessface data will generate it.

9 years agoargument for CDDM_from_BMEditMesh() so creating tessface data is optional, no functio...
Campbell Barton [Wed, 18 Jan 2012 15:09:27 +0000 (15:09 +0000)]
argument for CDDM_from_BMEditMesh() so creating tessface data is optional, no functional changes since all callers use this so far.

9 years agofix for editmode bmesh bug - found by testing script.
Campbell Barton [Wed, 18 Jan 2012 14:52:47 +0000 (14:52 +0000)]
fix for editmode bmesh bug - found by testing script.

incorrect flag handling in CDDM_from_BMEditMesh() broke editmode deform verts (they would never be copied), issue was exposed when re-aligning layer values with trunk.

9 years agofixed [#29907] Uncoherent behaviour of Delete Edge Loop
Campbell Barton [Wed, 18 Jan 2012 12:31:41 +0000 (12:31 +0000)]
fixed [#29907] Uncoherent behaviour of Delete Edge Loop

9 years agoFix #29918: Set Scale does not work the second time
Sergey Sharybin [Wed, 18 Jan 2012 11:41:35 +0000 (11:41 +0000)]
Fix #29918: Set Scale does not work the second time

Issue was caused by recently added operator presets stuff.

9 years agoFix #25581: No pressure sensitivity in sculpt mode
Sergey Sharybin [Wed, 18 Jan 2012 11:25:30 +0000 (11:25 +0000)]
Fix #25581: No pressure sensitivity in sculpt mode

Tablet mode (stylus/eraser) wasn't properly set when pen was already hovering over
tablet surface when opening blender (i.e. in cases when blender was opened using
stylus tap).

Issue resolved by setting tablet mode when handling tablet's motion event too.

9 years agoedit to r43487
Campbell Barton [Wed, 18 Jan 2012 11:10:02 +0000 (11:10 +0000)]
edit to r43487

- make red outline more obvious (was hard to see when the camera was selected)
- remove text, red-alert text IMHO should only be used when something is wrong (example - its used when FPS cant keep up), but this is just information.
  realize out UI isnt dealing well with added view3d options but dont think its good to solve by displaying options as text overlay.
  red outline for the camera is just a hint which users notice when enabling the camera, think its acceptable.

9 years agosmall usability edit, now there is some feedback on when the camera is locked to...
Michael Fox [Wed, 18 Jan 2012 10:41:38 +0000 (10:41 +0000)]
small usability edit, now there is some feedback on when the camera is locked to view.

A warnign will now appear in the top left corner and the camera outline becomes red, this warning only appears in camera view

9 years agoghost tests weren't building and added some comments to ghost docs.
Campbell Barton [Wed, 18 Jan 2012 10:16:39 +0000 (10:16 +0000)]
ghost tests weren't building and added some comments to ghost docs.

9 years agofix errors in bmesh vertex paint
Campbell Barton [Wed, 18 Jan 2012 08:43:27 +0000 (08:43 +0000)]
fix errors in bmesh vertex paint

- was swapping matrix incorrectly, would fail when the object had any transform
- wasn't calling mesh_update_customdata_pointers() when adding MCol's in some cases
- was calling do_shared_vertexcol() twice when it didnt need to (blur painting only)

9 years agosvn merge ^/trunk/blender -r43472:43482
Campbell Barton [Wed, 18 Jan 2012 07:04:17 +0000 (07:04 +0000)]
svn merge ^/trunk/blender -r43472:43482

9 years agocleanup for redefined vars
Campbell Barton [Wed, 18 Jan 2012 06:55:51 +0000 (06:55 +0000)]
cleanup for redefined vars

9 years agopicky cleanup to use of bpy.types
Campbell Barton [Wed, 18 Jan 2012 06:11:56 +0000 (06:11 +0000)]
picky cleanup to use of bpy.types

9 years agode-duplicate paint parent class, added new py module for common paint UI classes...
Campbell Barton [Wed, 18 Jan 2012 05:54:19 +0000 (05:54 +0000)]
de-duplicate paint parent class, added new py module for common paint UI classes/funcs --- since we'll likely have more of these.

9 years agofix size slider not working for image space brushes (uv sculpt and image paint)....
Antony Riakiotakis [Wed, 18 Jan 2012 00:41:39 +0000 (00:41 +0000)]
fix size slider not working for image space brushes (uv sculpt and image paint). This is due to not checking if unified settings are active as per recent commit. Reused the space_view3D PaintPanel utility class slightly modified for the image space to do the checks. I am not very happy with the duplication but I decided to keep it as is since I change bl_space_type and bl_region_type from the original class. Reviewed by Nicholas Bishop.

9 years agoremove ARB_texture_gather from bicubic bump map dependencies. It will be needed when...
Antony Riakiotakis [Wed, 18 Jan 2012 00:03:09 +0000 (00:03 +0000)]
remove ARB_texture_gather from bicubic bump map dependencies. It will be needed when/if monochrome images are supported

9 years agosvn merge ^/trunk/blender -r43461:43472
Campbell Barton [Tue, 17 Jan 2012 21:08:25 +0000 (21:08 +0000)]
svn merge ^/trunk/blender -r43461:43472

9 years agofix [#29914] paste text into blender causes crash
Sv. Lockal [Tue, 17 Jan 2012 19:03:18 +0000 (19:03 +0000)]
fix [#29914] paste text into blender causes crash

9 years agoUpdated Carve bundling script and patches
Sergey Sharybin [Tue, 17 Jan 2012 18:47:02 +0000 (18:47 +0000)]
Updated Carve bundling script and patches

9 years agoerror in own recent commit
Campbell Barton [Tue, 17 Jan 2012 18:32:14 +0000 (18:32 +0000)]
error in own recent commit

9 years agoFix carve compile error with gcc 4.6, patch by Stephen McQuay.
Brecht Van Lommel [Tue, 17 Jan 2012 18:29:46 +0000 (18:29 +0000)]
Fix carve compile error with gcc 4.6, patch by Stephen McQuay.

9 years agomissing header in previous commit
Campbell Barton [Tue, 17 Jan 2012 18:11:17 +0000 (18:11 +0000)]
missing header in previous commit

9 years agomisc small changes and bmesh support for testing script
Campbell Barton [Tue, 17 Jan 2012 18:01:16 +0000 (18:01 +0000)]
misc small changes and bmesh support for testing script

9 years agopep8 edits, also remove unused vars
Campbell Barton [Tue, 17 Jan 2012 17:57:20 +0000 (17:57 +0000)]
pep8 edits, also remove unused vars

9 years agoPEP8 complaint changes
Sergey Sharybin [Tue, 17 Jan 2012 17:27:18 +0000 (17:27 +0000)]
PEP8 complaint changes

9 years agoWhitespace tabs vs. spaces consistency changes
Sergey Sharybin [Tue, 17 Jan 2012 17:26:58 +0000 (17:26 +0000)]
Whitespace tabs vs. spaces consistency changes

9 years agofix for error in merge 43462
Campbell Barton [Tue, 17 Jan 2012 17:14:23 +0000 (17:14 +0000)]
fix for error in merge 43462

9 years agosvn merge ^/trunk/blender -r43443:43461
Campbell Barton [Tue, 17 Jan 2012 17:08:32 +0000 (17:08 +0000)]
svn merge ^/trunk/blender -r43443:43461

9 years agoUv Tools branch GSOC 2011
Antony Riakiotakis [Tue, 17 Jan 2012 16:31:13 +0000 (16:31 +0000)]
Uv Tools branch GSOC 2011

Major features include:

*16 bit image support in viewport
*Subsurf aware unwrapping
*Smart Stitch(snap/rotate islands, preview, middlepoint/endpoint stitching)
*Seams from islands tool (marks seams and sharp, depending on settings)
*Uv Sculpting(Grab/Pinch/Rotate)

All tools are complete apart from stitching that is considered stable but with an extra edge mode under development(will be in soc-2011-onion-uv-tools).

9 years agoDisable "Ask for each file" menu option for files unpack. It was never implemented...
Sergey Sharybin [Tue, 17 Jan 2012 16:22:22 +0000 (16:22 +0000)]
Disable "Ask for each file" menu option for files unpack. It was never implemented in 2.5x

9 years agoPoor menu labels were not translated!
Bastien Montagne [Tue, 17 Jan 2012 16:13:39 +0000 (16:13 +0000)]
Poor menu labels were not translated!

9 years agoFix #29905: extend transform a sequencer meta strip did not update the position
Brecht Van Lommel [Tue, 17 Jan 2012 16:06:24 +0000 (16:06 +0000)]
Fix #29905: extend transform a sequencer meta strip did not update the position
and length of the meta strip properly, only its contents. Also overlap check was
done too soon giving false positives, should be after meta strip update.

9 years agoFix #29762: columns in long enum property menu's were in the wrong order.
Brecht Van Lommel [Tue, 17 Jan 2012 16:06:16 +0000 (16:06 +0000)]
Fix #29762: columns in long enum property menu's were in the wrong order.

9 years agoremove BKE_array_mallocn.h, replace use with BLI_array.h, also removed
Campbell Barton [Tue, 17 Jan 2012 16:03:49 +0000 (16:03 +0000)]
remove BKE_array_mallocn.h, replace use with BLI_array.h, also removed
ifdef'd code which has since been moved into another file.

9 years agofix for segfault with bpy compiled as python module (dont register atexit)
Campbell Barton [Tue, 17 Jan 2012 15:19:11 +0000 (15:19 +0000)]
fix for segfault with bpy compiled as python module (dont register atexit)

update `make lite` built target to remove some newly added features.

9 years agofix [#29913] Bezier edit mode crashes on undo.
Campbell Barton [Tue, 17 Jan 2012 14:21:27 +0000 (14:21 +0000)]
fix [#29913] Bezier edit mode crashes on undo.

9 years agoNew pchan to pose matrices computes. Fixes [#27898] Bone snap to cursor fails and...
Bastien Montagne [Tue, 17 Jan 2012 13:30:20 +0000 (13:30 +0000)]
New pchan to pose matrices computes. Fixes [#27898] Bone snap to cursor fails and [#29461] Selection-to-Cursor works strange with bones with TrackTo constraint. Also fixes some inconsistant behavior of no Inherit Rotation/Scale options.

WARNING: This commits modifies how translated unconnected child bones with *no Inherit Rotation option* are positionned. This means that if you open a posed/animated armature using such (corner-case) setup, you'll have to adjust manually the locations of such bones: now, disabling Inherit Rotation/Scale will no more move the bone, only affecting its rotation/scale.

Many thanks to Bassam Kurdali (slikdigit) for his advices and tests of the patch!


Dev notes : the pchan_to_pose_mat() func was added to BKE_armature.h, which computes two matrices to get the pose transformations (pchan) of the bone directly in pose (i.e. armature object) space. The first matrix is the rotation/scaling parts, the second one is for location.

That new function is used by (hence deduplicating and simplifying their code):
* The pose evaluation code (where_is_pose_bone()).
* The interactive transformation code (add_pose_transdata(), in transform_conversion.c).
* The snap to cursor/grid code (through armature_loc_pose_to_bone()/armature_mat_pose_to_bone()).

9 years agoanother fix for bmesh/solidify - was using incorrect poly length when finding the...
Campbell Barton [Tue, 17 Jan 2012 13:26:59 +0000 (13:26 +0000)]
another fix for bmesh/solidify - was using incorrect poly length when finding the customdata to copy.

9 years agoremove some complexity in solidify code rim face creation.
Campbell Barton [Tue, 17 Jan 2012 13:18:23 +0000 (13:18 +0000)]
remove some complexity in solidify code rim face creation.

was doing a loop lookup when the index was already available.

9 years agoOSX/cmake: don´t build target extractpyzip for MODULE
Jens Verwiebe [Tue, 17 Jan 2012 13:11:53 +0000 (13:11 +0000)]
OSX/cmake: don´t build target extractpyzip for MODULE

9 years agoCompilation error when using mingw+scons
Sergey Sharybin [Tue, 17 Jan 2012 10:32:17 +0000 (10:32 +0000)]
Compilation error when using mingw+scons

Error was caused by boost library (which doesn't seem to be working with Cycles too
when compiling with mingw). Switched mingw to use TR1 unordered collections. Also,
there was re-declaration of strcasecmp when mingw is used.

Additional changes are related on using own process spawning when BF_TOOLSET is set to
mingw. Seems to be working fine now (i've got too long command line error) and no
warning are supressing now (as it was told in comment for commented own process spawning).

9 years was returning the wrong type
Campbell Barton [Tue, 17 Jan 2012 05:46:34 +0000 (05:46 +0000)] was returning the wrong type

9 years agosvn merge ^/trunk/blender -r43436:43443
Campbell Barton [Tue, 17 Jan 2012 05:25:11 +0000 (05:25 +0000)]
svn merge ^/trunk/blender -r43436:43443

9 years agobmesh vertex colors are now accessible
Campbell Barton [Tue, 17 Jan 2012 05:15:33 +0000 (05:15 +0000)]
bmesh vertex colors are now accessible

9 years agofix for error freeing wrong num of MFace customdata when writing to legacy mesh format
Campbell Barton [Tue, 17 Jan 2012 04:57:51 +0000 (04:57 +0000)]
fix for error freeing wrong num of MFace customdata when writing to legacy mesh format

9 years agofix own error in bmesh -> mesh versioning
Campbell Barton [Tue, 17 Jan 2012 04:54:57 +0000 (04:54 +0000)]
fix own error in bmesh -> mesh versioning

9 years agofix own error [#28645] TODO: dissolve edges doesn't delete lonely vertices on edges
Campbell Barton [Tue, 17 Jan 2012 03:40:37 +0000 (03:40 +0000)]
fix own error [#28645] TODO: dissolve edges doesn't delete lonely vertices on edges

made this mistake when refactoring edge collapse code, though overall I think the function works better then before now.

9 years agosvn merge ^/trunk/blender -r43420:43436
Campbell Barton [Tue, 17 Jan 2012 02:20:23 +0000 (02:20 +0000)]
svn merge ^/trunk/blender -r43420:43436

9 years agocomment unused var
Campbell Barton [Tue, 17 Jan 2012 02:07:38 +0000 (02:07 +0000)]
comment unused var

9 years agoremove unused function
Campbell Barton [Tue, 17 Jan 2012 00:45:51 +0000 (00:45 +0000)]
remove unused function

9 years agoOSX/Cmake: make bpy module work finally by linking against python3.2 framework
Jens Verwiebe [Mon, 16 Jan 2012 20:10:38 +0000 (20:10 +0000)]
OSX/Cmake: make bpy module work finally by linking against python3.2 framework

9 years agoCorrected fix for linking issues with blenderplayer enabled
Sergey Sharybin [Mon, 16 Jan 2012 18:49:10 +0000 (18:49 +0000)]
Corrected fix for linking issues with blenderplayer enabled

9 years agoFix for compilation error using cmake+msvc
Sergey Sharybin [Mon, 16 Jan 2012 18:24:30 +0000 (18:24 +0000)]
Fix for compilation error using cmake+msvc

9 years agoDynamic Paint:
Miika Hamalainen [Mon, 16 Jan 2012 17:18:07 +0000 (17:18 +0000)]
Dynamic Paint:
* Added per surface options "influence scale" and "radius scale" for tweaking brush settings individually for each surface.
* Added option to completely disable drying. This should be nice for indefinitely spreading paint etc.
* Improved paint mixing algorithm.
* "Paint effects" now work in relative mesh space instead of global. This means that effect speed remains same for identical shapes regardless of their size.
* Complete rewrite of "spread effect" algorithm. It now works much better in all test cases done. Old algo sometimes produced artifacts and stopped spreading too early.
* Adjustments / rewrite on some parts of dripping algorithm to make it work better with transparent paint.
* Added a new "color dry" setting. It can be used to define wetness level when paint colors start to shift to surface "background". Lower values can be useful to prevent spreading paint from becoming transparent as it dries, while higher (default) values give better results in general.
* Fix: If multiple displace/wave surfaces were used simultaneously, displace was applied using wrong normal.

Please note that due to these changes in "paint effects" system older save files may require some tweaking to match results from previous versions.

9 years agoCarve booleans library integration
Sergey Sharybin [Mon, 16 Jan 2012 16:46:00 +0000 (16:46 +0000)]
Carve booleans library integration

Merging Carve library integration project into the trunk.

This commit switches Boolean modifier to another library which handles
mesh boolean operations in much stable and faster way, resolving old
well-known limitations of intern boolop library.

Carve is integrating as alternative interface for boolop library and
which makes it totally transparent for blender sources to switch between
old-fashioned boolop and new Carve backends.

Detailed changes in this commit:

- Integrated needed subset of Carve library sources into extern/
  Added script for re-bundling it (currently works only if repo
  was cloned by git-svn).
- Added BOP_CarveInterface for boolop library which can be used by
  Boolean modifier.
- Carve backend is enabled by default, can be disabled by WITH_BF_CARVE
  SCons option and WITH_CARVE CMake option.
- If Boost library is found in build environment it'll be used for
  unordered collections. If Boost isn't found, it'll fallback to TR1
  implementation for GCC compilers. Boost is obligatory if MSVC is used.

Tested on Linux 64bit and Windows 7 64bit.

NOTE: behavior of flat objects was changed. E.g. Plane-Sphere now gives
      plane with circle hole, not plane with semisphere. Don't think
      it's really issue because it's not actually defined behavior in
      such situations and both of ways might be useful. Since it's
      only known "regression" think it's OK to deal with it.

Details are there

Special thanks to:

- Ken Hughes: author of original carve integration patch.
- Campbell Barton: help in project development, review tests.
- Tobias Sargeant: author of Carve library, help in resolving some
                   merge stoppers, bug fixing.

9 years agopatch [#29859] UTF-8 support for text editor.
Sv. Lockal [Mon, 16 Jan 2012 16:23:25 +0000 (16:23 +0000)]
patch [#29859] UTF-8 support for text editor.
This also fixes cursor movement in the beginning of line and adds do_versions block for converting text files with old extended ascii encoding into UTF-8.

9 years agoupdate to modifier testing script
Campbell Barton [Mon, 16 Jan 2012 16:16:55 +0000 (16:16 +0000)]
update to modifier testing script

added presets for hook/decimate/build/mask

9 years agomore keymap edits
Campbell Barton [Mon, 16 Jan 2012 16:12:03 +0000 (16:12 +0000)]
more keymap edits
- make sure defaults are not assumed (so reuse last settings doesnt
- replace 0/1 for TRUE/FALSE defines.

9 years agopatch [#29856] UTF-8 copy&paste for Win32 GHOST
Sv. Lockal [Mon, 16 Jan 2012 15:00:28 +0000 (15:00 +0000)]
patch [#29856] UTF-8 copy&paste for Win32 GHOST

9 years agoFix for standalone bpy module building link errors on Mac.
Brecht Van Lommel [Mon, 16 Jan 2012 14:13:41 +0000 (14:13 +0000)]
Fix for standalone bpy module building link errors on Mac.

It seems to be working now, however make sure to build against the exact same
python version as the one you will use it with, the version in the lib/darwin*
directory is likely to differ from python installed on your system.

9 years agoCycles: add option to cache BVH's between subsequent renders, storing the BVH on
Brecht Van Lommel [Mon, 16 Jan 2012 13:13:37 +0000 (13:13 +0000)]
Cycles: add option to cache BVH's between subsequent renders, storing the BVH on
disk to be reused by the next render.

This is useful for rendering animations where only the camera or materials change.
Note that saving the BVH to disk only to be removed for the next frame is slower
if this is not the case and the meshes do actually change.

For a render, it will save bvh files to the cache user directory, and remove all
cache files from other renders. The files are named using a MD5 hash based on the
mesh, to verify if the meshes are still the same.

9 years agosvn merge ^/trunk/blender -r43392:43420
Campbell Barton [Mon, 16 Jan 2012 11:50:17 +0000 (11:50 +0000)]
svn merge ^/trunk/blender -r43392:43420

9 years agomiddle mouse jump scrolling for text window.
Campbell Barton [Mon, 16 Jan 2012 10:48:52 +0000 (10:48 +0000)]
middle mouse jump scrolling for text window.

9 years agouse a look for paint brush switching keys
Campbell Barton [Mon, 16 Jan 2012 10:05:53 +0000 (10:05 +0000)]
use a look for paint brush switching keys

9 years agouse TRUE/FALSE for boolean keymaps, no functional changes
Campbell Barton [Mon, 16 Jan 2012 09:51:04 +0000 (09:51 +0000)]
use TRUE/FALSE for boolean keymaps, no functional changes

9 years agowent over all keymaps to check for cases where defaults were assumed
Campbell Barton [Mon, 16 Jan 2012 09:42:29 +0000 (09:42 +0000)]
went over all keymaps to check for cases where defaults were assumed
(which could be wrong if the previous setting was used).

9 years agofix for defaults not being set for object mode hide and delete keymap.
Campbell Barton [Mon, 16 Jan 2012 09:12:34 +0000 (09:12 +0000)]
fix for defaults not being set for object mode hide and delete keymap.

9 years agoChange function for nb_invert so that ~matrix returns the inverted matrix rather...
Andrew Hale [Mon, 16 Jan 2012 09:01:11 +0000 (09:01 +0000)]
Change function for nb_invert so that ~matrix returns the inverted matrix rather than inverting inplace.

9 years agoAllow camera 1:1 and center camera view to run from menu's.
Campbell Barton [Mon, 16 Jan 2012 06:57:37 +0000 (06:57 +0000)]
Allow camera 1:1 and center camera view to run from menu's.

9 years agoopengl render save ignored alpha settings. also some FILE_MAX defines missed last...
Campbell Barton [Mon, 16 Jan 2012 06:43:58 +0000 (06:43 +0000)]
opengl render save ignored alpha settings. also some FILE_MAX defines missed last commit.