8 years agoFix for invalid pointers within a copied line set.
Tamito Kajiyama [Mon, 23 Jan 2012 23:32:09 +0000 (23:32 +0000)]
Fix for invalid pointers within a copied line set.

Now the line set buffer is cleared when a new .blend file is opened, so
that a line set may not be copied and pasted between two .blend files.

8 years agoMerged changes in the trunk up to revision 43585.
Tamito Kajiyama [Sat, 21 Jan 2012 23:01:25 +0000 (23:01 +0000)]
Merged changes in the trunk up to revision 43585.

Conflicts resolved:

8 years agostyle chang, made mainly because I wanted to be able to add breakpoints to MEM_freeN...
Campbell Barton [Sat, 21 Jan 2012 22:00:40 +0000 (22:00 +0000)]
style chang, made mainly because I wanted to be able to add breakpoints to MEM_freeN calls which were on the same line as the if's.

8 years agoFix for color management not working properly with Freestyle.
Tamito Kajiyama [Sat, 21 Jan 2012 21:58:47 +0000 (21:58 +0000)]
Fix for color management not working properly with Freestyle.

8 years agoFix for missing NULL check in socket default_value free function. Some sockets (curre...
Lukas Toenne [Sat, 21 Jan 2012 16:36:06 +0000 (16:36 +0000)]
Fix for missing NULL check in socket default_value free function. Some sockets (currently only cycles shader sockets) don't actually have a default_value pointer.

8 years agochange filepath limit from 240 to 1024
Campbell Barton [Sat, 21 Jan 2012 14:54:53 +0000 (14:54 +0000)]
change filepath limit from 240 to 1024

8 years agoBetter api use for paths.
Campbell Barton [Sat, 21 Jan 2012 14:48:07 +0000 (14:48 +0000)]
Better api use for paths.
Avoid possibly copy past buffer.

8 years agoAdded DNA_DEPRECATED attribute to some old data in bNodeSocket. DNA_DEPRECATED is...
Lukas Toenne [Sat, 21 Jan 2012 11:15:01 +0000 (11:15 +0000)]
Added DNA_DEPRECATED attribute to some old data in bNodeSocket. DNA_DEPRECATED is disabled in writefile.c now to allow forward compatibility code writing to deprecated member data.

8 years agoformatting edits (<120 line length), remove invalid 'defaults' keyword arg from docs.
Campbell Barton [Sat, 21 Jan 2012 10:27:24 +0000 (10:27 +0000)]
formatting edits (<120 line length), remove invalid 'defaults' keyword arg from docs.

8 years agoFix [#29940] Stretch To constraint breaks scaling in Transform constraint.
Bastien Montagne [Sat, 21 Jan 2012 09:41:21 +0000 (09:41 +0000)]
Fix [#29940] Stretch To constraint breaks scaling in Transform constraint.

Compute of dist between ob/bone and target was quite odd and causing that bug.

8 years agoformatted snapquats table so entries line up, rounded to 7 significant digits (fp32...
Mike Erwin [Sat, 21 Jan 2012 05:27:25 +0000 (05:27 +0000)]
formatted snapquats table so entries line up, rounded to 7 significant digits (fp32 respects ~6), no functional change

8 years agotidy up ndof handling code -- whitespace, comments, ndof->rvec[0] to ndof->rx, etc...
Mike Erwin [Sat, 21 Jan 2012 03:37:44 +0000 (03:37 +0000)]
tidy up ndof handling code -- whitespace, comments, ndof->rvec[0] to ndof->rx, etc. no functional changes

8 years agoquiet warnings and possible NULL checking crash fix for indentation functions.
Campbell Barton [Fri, 20 Jan 2012 23:03:41 +0000 (23:03 +0000)]
quiet warnings and possible NULL checking crash fix for indentation functions.

8 years agomodify number button copy/paste to work as if you enter the button, select text,...
Campbell Barton [Fri, 20 Jan 2012 22:32:47 +0000 (22:32 +0000)]
modify number button copy/paste to work as if you enter the button, select text, type into another button the same value.

This means you can copy/paste units and python expressions.

8 years agofix 2 bugs
Campbell Barton [Fri, 20 Jan 2012 22:09:30 +0000 (22:09 +0000)]
fix 2 bugs
- box packing wasn't flagging out the right free corner of a vertex in some cases.
- tex_space_curve wasn't counting quad displists properly.

8 years agoSkip subsurf normal allocation/calculation when not needed.
Nicholas Bishop [Fri, 20 Jan 2012 19:27:04 +0000 (19:27 +0000)]
Skip subsurf normal allocation/calculation when not needed.

CCGSubsurf has already a function to disable calculation of normals,
but seems it wasn't used. This patch changes subsurf UV and
subsurf_calculate_limit_positions() to not calculate normals, and also
not allocate space for them.

Should be no functional changes, just a small speedup/less memory use
during subdivision for these cases.

Code review link:

8 years agouse property definitions more consistant with other addons in trunk. (no functional...
Campbell Barton [Fri, 20 Jan 2012 18:31:23 +0000 (18:31 +0000)]
use property definitions more consistant with other addons in trunk. (no functional change)

8 years agoTry fixing modifier keys not working correctly for uv sculpting.
Antony Riakiotakis [Fri, 20 Jan 2012 18:03:55 +0000 (18:03 +0000)]
Try fixing modifier keys not working correctly for uv sculpting.

8 years agoRemoved a hard-coded limit that the backbone stretching effect was applied to
Tamito Kajiyama [Fri, 20 Jan 2012 18:03:12 +0000 (18:03 +0000)]
Removed a hard-coded limit that the backbone stretching effect was applied to
stokes with 2D length longer than 50.  Problem report by Forrest Gimp, thanks!

8 years agoSample as Lamp option for world shaders, to enable multiple importance sampling.
Brecht Van Lommel [Fri, 20 Jan 2012 17:49:17 +0000 (17:49 +0000)]
Sample as Lamp option for world shaders, to enable multiple importance sampling.

By default lighting from the world is computed solely with indirect light
sampling. However for more complex environment maps this can be too noisy, as
sampling the BSDF may not easily find the highlights in the environment map
image. By enabling this option, the world background will be sampled as a lamp,
with lighter parts automatically given more samples.

Map Resolution specifies the size of the importance map (res x res). Before
rendering starts, an importance map is generated by "baking" a grayscale image
from the world shader. This will then be used to determine which parts of the
background are light and so should receive more samples than darker parts.
Higher resolutions will result in more accurate sampling but take more setup
time and memory.

Patch by Mike Farnsworth, thanks!

8 years agoMinor fix for socket default value conversion. The switch statement would not break...
Lukas Toenne [Fri, 20 Jan 2012 16:13:26 +0000 (16:13 +0000)]
Minor fix for socket default value conversion. The switch statement would not break correctly.

8 years agocomment some dead assibnment and set dummy values for image profile conversion in...
Campbell Barton [Fri, 20 Jan 2012 15:18:57 +0000 (15:18 +0000)]
comment some dead assibnment and set dummy values for image profile conversion in case of invalid input.

8 years agoquiet warnings for using uninialized color var in ED_image_draw_info().
Campbell Barton [Fri, 20 Jan 2012 14:33:03 +0000 (14:33 +0000)]
quiet warnings for using uninialized color var in ED_image_draw_info().

8 years agoCleanup of default_value handling in node sockets.
Lukas Toenne [Fri, 20 Jan 2012 13:27:54 +0000 (13:27 +0000)]
Cleanup of default_value handling in node sockets.

The structs stored in the anonymous void *default_value in bNodeSocket are now handled completely inside node_socket.c. All allocation/freeing/duplicating for this has been replaced by the appropriate calls to generic API functions (declared in NOD_socket.h).

This will make the default value handling more reliable for future node socket code. Group socket copying and value conversion has also been moved into the generic socket API file.

8 years agofix for scons/linux with opencollada debug libs
Campbell Barton [Fri, 20 Jan 2012 12:32:11 +0000 (12:32 +0000)]
fix for scons/linux with opencollada debug libs

8 years agoFix #27120: Bake to image used for rendering glitch (bake feedback loop)
Sergey Sharybin [Fri, 20 Jan 2012 07:43:46 +0000 (07:43 +0000)]
Fix #27120: Bake to image used for rendering glitch (bake feedback loop)

Detect feedback loop and do not bake to images detected in this loop and show
nice warning message in such cases.

It's a way which wouldn't overcomplicate code trying to duplicate images and so
without real benefit.

8 years ago- Fix for commit 43551 which caused a linking error in blenderplayer.
Andrew Hale [Fri, 20 Jan 2012 05:11:42 +0000 (05:11 +0000)]
- Fix for commit 43551 which caused a linking error in blenderplayer.
- Minor clean up for commit 43551.

8 years agomisc changes from bmesh, syncing across to trunk, no functional changes
Campbell Barton [Fri, 20 Jan 2012 02:24:01 +0000 (02:24 +0000)]
misc changes from bmesh, syncing across to trunk, no functional changes

8 years ago- Added functions to remove mesh vertices, edges and faces. These functions remove...
Andrew Hale [Fri, 20 Jan 2012 02:10:09 +0000 (02:10 +0000)]
- Added functions to remove mesh vertices, edges and faces. These functions remove a specified number of elements from the end of their respective arrays. For example, removing two vertices removes the last two vertices of the mesh.
- Minor fixes to descriptions of add edge and add face functions.

8 years agoSmall cleanup to parameters of _getSubSurf().
Nicholas Bishop [Fri, 20 Jan 2012 01:43:49 +0000 (01:43 +0000)]
Small cleanup to parameters of _getSubSurf().

Removed the unused third argument and changed useAging and useArena to
named flags.

8 years agosmart stitch
Antony Riakiotakis [Fri, 20 Jan 2012 00:02:48 +0000 (00:02 +0000)]
smart stitch
* refactoring, separate common functionality to functions.
* enable each uv to check independently for other stitchable uvs. This allows to limit stitch uvs belonging to the same vertex, while previously this was impossible.
* made changes to island rotation when calculated from sole uvs when using midpoint stitch. It should now be evenly distributed across islands.

There are still some glitches with vertices that have multiple uvs per island for the snap island + midpoint stitch combination. The solution is to precalculate the static island rotation/translation in this case. If I haven't managed to make this work correctly I may turn this combination off before release. It's more like an extra feature than really necessary.

8 years agoMinor code enhancement (replace for loops with while's, and avoid multiple checks...
Bastien Montagne [Thu, 19 Jan 2012 19:09:59 +0000 (19:09 +0000)]
Minor code enhancement (replace for loops with while's, and avoid multiple checks to get good face vertex index). No functional changes.

8 years agoAdd missing labels to sculpt/paint sliders.
Nicholas Bishop [Thu, 19 Jan 2012 18:22:55 +0000 (18:22 +0000)]
Add missing labels to sculpt/paint sliders.

Thanks Sergey for pointing out

8 years agoRemesh Modifier UI:
Thomas Dinges [Thu, 19 Jan 2012 17:30:29 +0000 (17:30 +0000)]
Remesh Modifier UI:
* Some tweaks to the modifier UI
* Hide sharpness property, instead of greying out.
The policy is to use greying out when a property depends on a boolean, if it depends on an enum item, hide it.

8 years agoFix issue in recent color commits, was still doing a multiplication by 255 too
Brecht Van Lommel [Thu, 19 Jan 2012 16:22:22 +0000 (16:22 +0000)]
Fix issue in recent color commits, was still doing a multiplication by 255 too
many, also don't check uchar range after casting to int, this can still cause
overflow with large float values.

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

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

8 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.

8 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

8 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.

8 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

8 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")

8 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).

8 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.

8 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.

8 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

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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

8 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.

8 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.

8 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.

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

8 years agoFix for a crash with FSAA enabled and Freestyle disabled.
Tamito Kajiyama [Wed, 18 Jan 2012 21:38:33 +0000 (21:38 +0000)]
Fix for a crash with FSAA enabled and Freestyle disabled.
Problem report by Victor / tokiop, many thanks!

8 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.

8 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

8 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.

8 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.

8 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.

8 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.

8 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

8 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.

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

8 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

8 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.

8 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.

8 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

8 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

8 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

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

8 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.

8 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

8 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

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

8 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

8 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

8 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).

8 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

8 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!

8 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.

8 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.

8 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.

8 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.

8 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()).

8 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

8 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).

8 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

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

8 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

8 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

8 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

8 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.

8 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.

8 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.

8 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