blender.git
9 years agosvn merge ^/trunk/blender -r43554:43564
Campbell Barton [Fri, 20 Jan 2012 15:34:40 +0000 (15:34 +0000)]
svn merge ^/trunk/blender -r43554:43564

9 years agominor warning/fixes
Campbell Barton [Fri, 20 Jan 2012 15:22:20 +0000 (15:22 +0000)]
minor warning/fixes

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

9 years agoquiet some warnings
Campbell Barton [Fri, 20 Jan 2012 14:44:38 +0000 (14:44 +0000)]
quiet some warnings

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

9 years ago- disable re-tesselating derived meshes in BMEdit_RecalcTesselation() have modifier...
Campbell Barton [Fri, 20 Jan 2012 13:53:47 +0000 (13:53 +0000)]
- disable re-tesselating derived meshes in BMEdit_RecalcTesselation() have modifier stack do this.
- made editbmesh_calc_modifiers() ensure tessfaces, this has the advantage that if the tessfaces are already created they wont get re-made as was happening before.

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

9 years agoreplace CDDM_calc_normals_mapping with CDDM_calc_normals when used within modifiers.
Campbell Barton [Fri, 20 Jan 2012 13:25:54 +0000 (13:25 +0000)]
replace CDDM_calc_normals_mapping with CDDM_calc_normals when used within modifiers.
this way modifiers wont be calculating tessface's which CDDM_calc_normals_mapping will do if not already calculated.

9 years agoafter all modifier are applied calculate normals, then tessfaces, this works so tesse...
Campbell Barton [Fri, 20 Jan 2012 13:14:14 +0000 (13:14 +0000)]
after all modifier are applied calculate normals, then tessfaces, this works so tesselating copies normals into the the newly creates tesselated faces.

9 years agosvn merge ^/trunk/blender -r43530:43554
Campbell Barton [Fri, 20 Jan 2012 12:34:00 +0000 (12:34 +0000)]
svn merge ^/trunk/blender -r43530:43554

9 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

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

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

9 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

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

9 years agostyle edits to build modifier apply function
Campbell Barton [Fri, 20 Jan 2012 02:03:37 +0000 (02:03 +0000)]
style edits to build modifier apply function

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

9 years agoimprovements to build modifier
Campbell Barton [Fri, 20 Jan 2012 00:26:25 +0000 (00:26 +0000)]
improvements to build modifier
- dont make a copy of the source mesh before using it
- dont recalculate tessface's and normals

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

9 years agoskip converting non CDDM type derived meshes for solidify modifier.
Campbell Barton [Thu, 19 Jan 2012 23:51:40 +0000 (23:51 +0000)]
skip converting non CDDM type derived meshes for solidify modifier.

9 years agofor CDDM's dmcalcNormals now call CDDM_calc_normals(), not CDDM_calc_normals_mapping...
Campbell Barton [Thu, 19 Jan 2012 23:34:53 +0000 (23:34 +0000)]
for CDDM's dmcalcNormals now call CDDM_calc_normals(), not CDDM_calc_normals_mapping(), this means calculating normals will calculate MPoly and MVert normals but not tesselate the mesh (which is overkill for normal calculation anyway).

use CDDM_calc_normals over CDDM_calc_normals_mapping for editmode and ensure the final dm has tessfaces.

9 years agoerror in last fix, used negate to check it was working.
Campbell Barton [Thu, 19 Jan 2012 22:04:13 +0000 (22:04 +0000)]
error in last fix, used negate to check it was working.

9 years agofix for error copying face normals from poly normals in mesh_recalcTesselation()
Campbell Barton [Thu, 19 Jan 2012 21:58:20 +0000 (21:58 +0000)]
fix for error copying face normals from poly normals in mesh_recalcTesselation()

9 years agofix in recent commit with face normal calc optimization
Campbell Barton [Thu, 19 Jan 2012 20:52:51 +0000 (20:52 +0000)]
fix in recent commit with face normal calc optimization

9 years agoensure defoem DM has tessface data for the few places that need it.
Campbell Barton [Thu, 19 Jan 2012 19:23:25 +0000 (19:23 +0000)]
ensure defoem DM has tessface data for the few places that need it.

also add a workaround for CDDM_recalc_tesselation_ex() which would add a CD_NORMAL to dm->fdata and then overwrite immediate

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

9 years agominor optimizations for bmesh_update_face_normal(), which is called while transforming.
Campbell Barton [Thu, 19 Jan 2012 18:35:08 +0000 (18:35 +0000)]
minor optimizations for bmesh_update_face_normal(), which is called while transforming.

9 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

9 years agoargument to mesh_recalcTesselation to skip copying normals from polygons.
Campbell Barton [Thu, 19 Jan 2012 17:51:52 +0000 (17:51 +0000)]
argument to mesh_recalcTesselation to skip copying normals from polygons.

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

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

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
=========================
Documentation: http://wiki.blender.org/index.php/User:Psy-Fi/UV_Tools

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.