blender.git
4 years agoFix T42260: By repeatedly joining meshes, you could end up with thousands of UVLayers
Bastien Montagne [Tue, 21 Oct 2014 15:01:56 +0000 (17:01 +0200)]
Fix T42260: By repeatedly joining meshes, you could end up with thousands of UVLayers

This is only an indirect fix, in fact: this commit adds a public API to check
the maximum number of a given layer type (`CustomData_layertype_layers_max()`),
and uses it to forbid too much layer creation in `CustomData_merge()`.

This only affects UVs/VCol data though, but merge behavior in itself is not a bug
actually, how user managed to get thousands of different UV layer names remain
rather mysterious...

4 years agoFix T42278: Grease Pencil in Movie Clip Editor can not be erased in Track > Cursor...
Sergey Sharybin [Tue, 21 Oct 2014 14:09:25 +0000 (16:09 +0200)]
Fix T42278: Grease Pencil in Movie Clip Editor can not be erased in Track > Cursor mode

Eraser was not aware of possible transform matrix for the strokes.

4 years agoFix T42324: Curve deform modifier from mesh edge doesnt work properly
Sergey Sharybin [Tue, 21 Oct 2014 13:16:29 +0000 (19:16 +0600)]
Fix T42324: Curve deform modifier from mesh edge doesnt work properly

Curve parent requires valid path to exist for curve. If the path is disabled in
the curve settings, displist evaluation will check the dependency graph whether
the path is needed for parenting.

The issue was that changing relations in the scene chagned need of the curve path
but nothing tagged the curve to update it's path.

For now use direct call of DAG_id_tag_update from set_parent(). In the bright
future we might detect such a need in flush automatically in the depsgraph.

4 years agoSimplify GLSL in bump mapping, use gl_NormalMatrix where appropriate.
Antony Riakiotakis [Tue, 21 Oct 2014 13:00:12 +0000 (15:00 +0200)]
Simplify GLSL in bump mapping, use gl_NormalMatrix where appropriate.
tangents are directions and should be transformed like directions.

4 years agoFix T42257: Curve vertex parent not working with animation
Sergey Sharybin [Tue, 21 Oct 2014 12:44:08 +0000 (14:44 +0200)]
Fix T42257: Curve vertex parent not working with animation

Vertex parent was using original non-modified nurbs list, simply because
it didn't have something else to operate with.

Now we've got deformed by pre-tessellation modifiers nurbs in the curve
cache which might be used y the vertex parent.

4 years agoFix T42178: Cycles Film Exposure not triggering Viewport update
Sergey Sharybin [Tue, 21 Oct 2014 12:08:05 +0000 (14:08 +0200)]
Fix T42178: Cycles Film Exposure not triggering Viewport update

4 years agoListBase: use BLI_listbase_ for new api calls
Campbell Barton [Tue, 21 Oct 2014 12:06:16 +0000 (14:06 +0200)]
ListBase: use BLI_listbase_ for new api calls

4 years agoFix tgz script, addons_contrib was in release
Campbell Barton [Tue, 21 Oct 2014 11:57:03 +0000 (13:57 +0200)]
Fix tgz script, addons_contrib was in release

4 years agoShapeKeys: rework 'move skey' code, and add options to move to first/last position.
Bastien Montagne [Tue, 21 Oct 2014 09:59:14 +0000 (11:59 +0200)]
ShapeKeys: rework 'move skey' code, and add options to move to first/last position.

Main moving logic is moved to new `BKE_keyblock_move()`, which makes it available from anywhere.
In addition, move code was reworked so that it only loops once on whole keyblocks list,
and it accepts arbitrary org and dest indices, not only neighbor ones.

Partly based on work by revzin (Grigory Revzin) in his soc-2014-shapekey GSoC branch, thanks!

4 years agoBLI_listbase: add `BLI_swaplinks` which swaps given links' positions in given list.
Bastien Montagne [Tue, 21 Oct 2014 09:56:46 +0000 (11:56 +0200)]
BLI_listbase: add `BLI_swaplinks` which swaps given links' positions in given list.

Can be much simpler and quicker than using remlink/insert functions.

4 years agoUI Icons: add 'triangle-bar' left/right/up/down icons.
Bastien Montagne [Tue, 21 Oct 2014 09:55:36 +0000 (11:55 +0200)]
UI Icons: add 'triangle-bar' left/right/up/down icons.

4 years agoFix sequencer clipboard with meta's containing ID references
Campbell Barton [Tue, 21 Oct 2014 09:36:11 +0000 (11:36 +0200)]
Fix sequencer clipboard with meta's containing ID references

4 years agoFix sequencer duplicate with only handle selected
Campbell Barton [Tue, 21 Oct 2014 09:10:45 +0000 (11:10 +0200)]
Fix sequencer duplicate with only handle selected

4 years agoFix T42326 trim operator not cancelled by the escape key.
Antony Riakiotakis [Tue, 21 Oct 2014 09:03:46 +0000 (11:03 +0200)]
Fix T42326 trim operator not cancelled by the escape key.

4 years agoDon't change global compiler flags when FFmpeg is enabled
Sergey Sharybin [Mon, 20 Oct 2014 21:21:09 +0000 (03:21 +0600)]
Don't change global compiler flags when FFmpeg is enabled

It should no be longer needed. If it causes the issues please let me know
to find a more cleaner solution.

4 years agoFix T42311, too many paint slots added.
Antony Riakiotakis [Mon, 20 Oct 2014 18:08:22 +0000 (20:08 +0200)]
Fix T42311, too many paint slots added.

Don't allow the add paint slot operator to redo. Also guard better against
excessive slot addition

4 years agoTrim tool:
Antony Riakiotakis [Mon, 20 Oct 2014 16:51:46 +0000 (18:51 +0200)]
Trim tool:

Effects strips in metastrips could be erratic.

4 years agoBetter fix for previous trim fix.
Antony Riakiotakis [Mon, 20 Oct 2014 16:29:16 +0000 (18:29 +0200)]
Better fix for previous trim fix.

4 years agoFix T42313: Ruler always measures 0.0
Campbell Barton [Mon, 20 Oct 2014 15:06:49 +0000 (17:06 +0200)]
Fix T42313: Ruler always measures 0.0

Passing 'ar' to snapObjectsRayEx would apply a ray-offset.

4 years agoFix trim tools metastrip borders not getting updated correctly.
Antony Riakiotakis [Mon, 20 Oct 2014 15:37:13 +0000 (17:37 +0200)]
Fix trim tools metastrip borders not getting updated correctly.

4 years agoMerge trim tool from terrible_consequencer
Antony Riakiotakis [Mon, 20 Oct 2014 13:40:06 +0000 (15:40 +0200)]
Merge trim tool from terrible_consequencer

The trim tool (T key) allows users to change the position of the
contents of a strip without moving the strip itself.

4 years agoOptimization for mesh deform: use BLI_INLINE specifiers
Sergey Sharybin [Mon, 20 Oct 2014 10:40:41 +0000 (16:40 +0600)]
Optimization for mesh deform: use BLI_INLINE specifiers

This helps compiler to do detect stuff which might be inlined,
gives around 30% speedup on my laptop with test files from ZanQdo.

4 years agoFix T42189
Antony Riakiotakis [Mon, 20 Oct 2014 10:35:35 +0000 (12:35 +0200)]
Fix T42189

Own mistake - not copying enough data.

4 years agoFix T42264: Negative scale & clipped-select fails
Campbell Barton [Mon, 20 Oct 2014 09:14:02 +0000 (11:14 +0200)]
Fix T42264: Negative scale & clipped-select fails

Thanks to mont29 for finding the cause.

4 years agoFix T42304: blender 2.72a 3D view object selected color wrong in 2.4x theme.
Bastien Montagne [Sun, 19 Oct 2014 18:50:13 +0000 (20:50 +0200)]
Fix T42304: blender 2.72a 3D view object selected color wrong in 2.4x theme.

I would not have endured such a critical and monstruous bug one more femtosecond!

And even worse - active color was awfully wrong too! Shocking!

4 years agoFix T42303 Icons lost after loading window
Antony Riakiotakis [Sun, 19 Oct 2014 18:50:43 +0000 (20:50 +0200)]
Fix T42303 Icons lost after loading window

The issue here is that if no matching winid is found, we destroy all
windows and their context with them. This will also delete the OpenGL
textures associated with the initial context, thus we lose the icons.
This patch makes sure a window is always kept for later so the initial
context does not get lost.

Thanks to Campbell and Ton for the discussion on the issue.

4 years agoFix typo in calculateCenterMedian that could give computed median point wrong values.
Grigory Revzin [Sun, 19 Oct 2014 18:13:05 +0000 (20:13 +0200)]
Fix typo in calculateCenterMedian that could give computed median point wrong values.

From soc-2014-shapekey branch, with minor edits by mont29 (Bastien Montagne).

4 years agoRevert "Freestyle: Built-in SVG exporter."
Campbell Barton [Sun, 19 Oct 2014 17:10:06 +0000 (19:10 +0200)]
Revert "Freestyle: Built-in SVG exporter."

This reverts commit 61a330baca0ff9bb3cf477c04f539ef276a0356f.

This completes reverting D785

This feature is to be reworked into an addon.

4 years agoRevert "Fix for rB61a330baca0f: Changed SVG file encoding from UTF-16 to UTF-8."
Campbell Barton [Sun, 19 Oct 2014 17:09:58 +0000 (19:09 +0200)]
Revert "Fix for rB61a330baca0f: Changed SVG file encoding from UTF-16 to UTF-8."

This reverts commit 490f2aeb8247463a7ea1a86a3a8c4246fcf45f23.

4 years agoRevert "Freestyle: rename module to export_svg"
Campbell Barton [Sun, 19 Oct 2014 17:09:49 +0000 (19:09 +0200)]
Revert "Freestyle: rename module to export_svg"

This reverts commit db249b787fe0875944e00df1a3d12a58d9a07249.

4 years agoRevert "Freestyle: add GPL headers"
Campbell Barton [Sun, 19 Oct 2014 17:09:41 +0000 (19:09 +0200)]
Revert "Freestyle: add GPL headers"

This reverts commit 3cbb066b838b4d52673f3fd76c2f695a3491b8b6.

4 years agoRevert "Cleanup: pep8"
Campbell Barton [Sun, 19 Oct 2014 17:09:33 +0000 (19:09 +0200)]
Revert "Cleanup: pep8"

This reverts commit 06cdc35a68d9a0bd2a84fd92bda2be11318d46ff.

4 years agoRevert "Cleanup: unused import"
Campbell Barton [Sun, 19 Oct 2014 17:09:26 +0000 (19:09 +0200)]
Revert "Cleanup: unused import"

This reverts commit fc7752b53c793a6985525d4c099108a97cd7867e.

4 years agoRevert "Freestyle: lazy load 'export_svg'"
Campbell Barton [Sun, 19 Oct 2014 17:09:18 +0000 (19:09 +0200)]
Revert "Freestyle: lazy load 'export_svg'"

This reverts commit c35a649a0a6c3c07bb8d56caba680887f726b9e9.

4 years agoReports: include parent library in readfile report
Campbell Barton [Sun, 19 Oct 2014 10:49:01 +0000 (12:49 +0200)]
Reports: include parent library in readfile report

Helps troubleshooting indirect links.

4 years agoFreestyle: lazy load 'export_svg'
Campbell Barton [Sat, 18 Oct 2014 15:46:09 +0000 (17:46 +0200)]
Freestyle: lazy load 'export_svg'

Loading XML module, registering etree namespaces... etc
on startup for everyone on chance someone may want to export
an SVG from Freestyle is unacceptable.

This shouldn't have got through the review.

also disable loading when built without freestyle.

4 years agoCleanup: unused import
Campbell Barton [Sat, 18 Oct 2014 15:32:05 +0000 (17:32 +0200)]
Cleanup: unused import

4 years agoCleanup: pep8
Campbell Barton [Sat, 18 Oct 2014 15:30:46 +0000 (17:30 +0200)]
Cleanup: pep8

4 years agoFreestyle: add GPL headers
Campbell Barton [Sat, 18 Oct 2014 15:28:24 +0000 (17:28 +0200)]
Freestyle: add GPL headers

4 years agoFreestyle: rename module to export_svg
Campbell Barton [Sat, 18 Oct 2014 15:02:38 +0000 (17:02 +0200)]
Freestyle: rename module to export_svg

Convention for existing export modules

4 years agoFix for rB61a330baca0f: Changed SVG file encoding from UTF-16 to UTF-8.
Tamito Kajiyama [Sat, 18 Oct 2014 14:41:19 +0000 (23:41 +0900)]
Fix for rB61a330baca0f: Changed SVG file encoding from UTF-16 to UTF-8.

4 years agoFix T42281, crash in subsurf with texture painting.
Antony Riakiotakis [Sat, 18 Oct 2014 11:17:45 +0000 (13:17 +0200)]
Fix T42281, crash in subsurf with texture painting.

4 years agoFreestyle: Built-in SVG exporter.
Tamito Kajiyama [Sat, 18 Oct 2014 09:35:29 +0000 (18:35 +0900)]
Freestyle: Built-in SVG exporter.

Features:
* Both still image and animation rendering, as well as polygon
  fills are supported.
* The exporter creates a new SVG layer for every Freestyle line
  set. The different layers are correctly sorted.
* SVG paths use data from line styles, so the base color of a
  line style becomes the color of paths, idem for dashes and
  stroke thickness.
* Strokes can be split at invisible parts.  This functionality is
  useful when exporting for instance dashed lines or line styles
  with a Blue Print shader
* The exporter can be used not only in the Parameter Editor mode,
  but also from within style modules written for the Python
  Scripting mode.

Acknowledgements:
The author would like to thank Francesco Fantoni and Jarno
Leppänen for their [[ https://github.com/hvfrancesco/freestylesvg | Freestyle SVG exporter ]].

Differential revision: https://developer.blender.org/D785

Author: flokkievids (Folkert de Vries)

Reviewed by: kjym3 (Tamito Kajiyama)

4 years agoOSX/PLAYER/cmake: fix player install python bundling, overlloked player has its own...
Jens Verwiebe [Fri, 17 Oct 2014 20:16:53 +0000 (22:16 +0200)]
OSX/PLAYER/cmake: fix player install python bundling, overlloked player has its own PLAYER_TARGETDIR_VER

4 years agoFix for align bone to cursor (missing normalize)
Campbell Barton [Fri, 17 Oct 2014 20:11:14 +0000 (22:11 +0200)]
Fix for align bone to cursor (missing normalize)

4 years agoCleanup, since we don't put Cycles compat into regular bl_ui files. ;)
Bastien Montagne [Fri, 17 Oct 2014 19:07:21 +0000 (21:07 +0200)]
Cleanup, since we don't put Cycles compat into regular bl_ui files. ;)

4 years agoFix python module (bpy) compilation - broken since 8d084e8c
Dalai Felinto [Fri, 17 Oct 2014 14:39:14 +0000 (11:39 -0300)]
Fix python module (bpy) compilation - broken since 8d084e8c

(reported on bf-python mailing-list and in my github (!), let's hope in
the future we get more reports in developer.blender.org instead ;))

4 years agoFix for pose bones not restoring selection index properly
Sergey Sharybin [Fri, 17 Oct 2014 14:48:09 +0000 (16:48 +0200)]
Fix for pose bones not restoring selection index properly

4 years agoMore fixes:
Antony Riakiotakis [Fri, 17 Oct 2014 12:25:50 +0000 (14:25 +0200)]
More fixes:

* Fill brush did not do proper srgb conversion for byte images (reported
by Sebastian Koenig, thanks!)
* Color sampling for palettes did not refresh the toolbar.

4 years agoFix issue reported by Sebastian Koenig on irc, Clone brush would paint
Antony Riakiotakis [Fri, 17 Oct 2014 12:11:13 +0000 (14:11 +0200)]
Fix issue reported by Sebastian Koenig on irc, Clone brush would paint
trash with float images.

Issue is uninitialized alpha in the clone brush + a clamping issue for
float images. There's still some 'swimming' and brightness issue here
but I have to do work for the weekly, will investigate further later.

4 years agoFix typo
Antony Riakiotakis [Fri, 17 Oct 2014 10:37:40 +0000 (12:37 +0200)]
Fix typo

4 years agoCycles: Fix for possibly uninitialized variable
Sergey Sharybin [Fri, 17 Oct 2014 08:56:36 +0000 (10:56 +0200)]
Cycles: Fix for possibly uninitialized variable

That's rather harmless in the master, just could cause some issues with the patches.

4 years agoSmall fix for own commit, added new theme color defines but forgot to
Lukas Tönne [Fri, 17 Oct 2014 08:18:40 +0000 (10:18 +0200)]
Small fix for own commit, added new theme color defines but forgot to
actually use them, thanks to Kevin Dietrich for noticing.

4 years agoUI: disable area emboss when it's maximized
Campbell Barton [Thu, 16 Oct 2014 22:12:31 +0000 (00:12 +0200)]
UI: disable area emboss when it's maximized

4 years agoSequencer: jump now takes end-points into account
Campbell Barton [Thu, 16 Oct 2014 21:17:20 +0000 (23:17 +0200)]
Sequencer: jump now takes end-points into account

Useful because it's effectively the start-point for any strip which is obscured.

4 years agoDifferent fix for T42262, we don't put Cycles compat into regular bl_ui files.
Thomas Dinges [Thu, 16 Oct 2014 21:27:38 +0000 (23:27 +0200)]
Different fix for T42262, we don't put Cycles compat into regular bl_ui files.

4 years agoCorrect recent commit
Campbell Barton [Thu, 16 Oct 2014 21:18:49 +0000 (23:18 +0200)]
Correct recent commit

4 years agoCleanup: use SQUARED macro
Campbell Barton [Tue, 14 Oct 2014 18:54:29 +0000 (20:54 +0200)]
Cleanup: use SQUARED macro

4 years agoFix T42262: Ocean texture options cannot be edited while in Cycles
Bastien Montagne [Thu, 16 Oct 2014 21:02:23 +0000 (23:02 +0200)]
Fix T42262: Ocean texture options cannot be edited while in Cycles

4 years agoRevert "Minor typo".
Antony Riakiotakis [Thu, 16 Oct 2014 18:33:19 +0000 (20:33 +0200)]
Revert "Minor typo".

This was supposed to be an experimental commit, shouldn't be in master at all, sorry for that

This reverts commit 0750e4c4c7eee9ad8f57ebf1243960bd46c7c1f9.

4 years agoFix bad typo in undo code that invalidated all image caches on undo.
Antony Riakiotakis [Thu, 16 Oct 2014 18:07:44 +0000 (20:07 +0200)]
Fix bad typo in undo code that invalidated all image caches on undo.

4 years agoMinor typo
Antony Riakiotakis [Thu, 16 Oct 2014 17:08:32 +0000 (19:08 +0200)]
Minor typo

4 years agoFix T42258: Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works
Bastien Montagne [Thu, 16 Oct 2014 14:30:52 +0000 (16:30 +0200)]
Fix T42258: Drivers: `dimensions.x` is always invalid, but `dimensions[0]` works

'PROP_XYZ_LENGTH' subtype was missing from list of valid '.x/y/z/w' ones.

4 years agoFix T42256: Translation operator moves Child-Of constrained objects in wrong space...
Bastien Montagne [Thu, 16 Oct 2014 13:42:46 +0000 (15:42 +0200)]
Fix T42256: Translation operator moves Child-Of constrained objects in wrong space when only using parent's rotation and parent is rotated.

Just do not use crazyspace correction with childof constraints in this case.

Note this is only a very partial fix (partial use of parent loc on some axes
is still broken in transform), a real fix would probably require a full rewrite
of constraints handling in transform code (a mere static correction matrix
just cannot work in all possible cases, we'd need a full dynamic correction system here).
Anyway, transform code as a whole is horrible. :/

4 years agoCycles: Implement an area preserving parameterization sampling for area lamps
Sergey Sharybin [Fri, 10 Oct 2014 13:24:12 +0000 (19:24 +0600)]
Cycles: Implement an area preserving parameterization sampling for area lamps

Replace old code for area lamps which was more like incorrect with more correct
one using the following paper as a reference:

  Carlos Urena et al.
  An Area-Preserving Parametrization for Spherical Rectangles.
  https://www.solidangle.com/research/egsr2013_spherical_rectangle.pdf

Implementation is straight from the paper, currently the rectangle constants are
calculated for each of the samples. Ideally we need to pre-calculate them.

Some comparison images are available there

  http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.73/Cycles

Reviewers: brecht, juicyfruit

Subscribers: dingto, ton

Differential Revision: https://developer.blender.org/D823

4 years agoFix T42222
Antony Riakiotakis [Thu, 16 Oct 2014 10:04:25 +0000 (12:04 +0200)]
Fix T42222

Avoid using roundf function, since it's oly defined in C99

4 years agoSequencer: draw metastrip range while editing
Campbell Barton [Thu, 16 Oct 2014 10:01:01 +0000 (12:01 +0200)]
Sequencer: draw metastrip range while editing

4 years agoSequencer: maintain start/end when exiting a meta
Campbell Barton [Thu, 16 Oct 2014 09:44:42 +0000 (11:44 +0200)]
Sequencer: maintain start/end when exiting a meta

Old behavior of shuffling the meta made it hard to use metas
in a complex edit since you couldn't be sure if exiting a meta would move it in the stack.

4 years agoFix T42247 rolling did not support the rotation value in the user
Antony Riakiotakis [Thu, 16 Oct 2014 09:34:32 +0000 (11:34 +0200)]
Fix T42247 rolling did not support the rotation value in the user
preferences.

After discussion with Campbell left the explicit angle property in for
use with NDOF devices.

4 years agoFix T42160: CUDA error: ILLEGAL_ADDRESS in cuCtxSynchronize()
Sergey Sharybin [Wed, 15 Oct 2014 14:25:04 +0000 (16:25 +0200)]
Fix T42160: CUDA error: ILLEGAL_ADDRESS in cuCtxSynchronize()

This is so-called GPU limitation boundary hit, told compiler to NOT include
volume bound function, otherwise some real weird things used to happen.

We actually might want to do the same for CPU, inlining everything is not
the way to get fastest code.

4 years agoSCons: Fix compilation error with booleans disabled
Sergey Sharybin [Wed, 15 Oct 2014 12:51:22 +0000 (18:51 +0600)]
SCons: Fix compilation error with booleans disabled

4 years agoFuther tweaks to WITH_CPU_SSE option
Sergey Sharybin [Wed, 15 Oct 2014 12:43:47 +0000 (18:43 +0600)]
Futher tweaks to WITH_CPU_SSE option

Explicitly disable SSE kernels in Cycles when this option is used.

4 years agoDisable color editing for bone group color sets unless custom colors is
Lukas Tönne [Wed, 15 Oct 2014 11:52:43 +0000 (13:52 +0200)]
Disable color editing for bone group color sets unless custom colors is
selected.

The bone group colors are not actually used _unless_ when the set is
"custom colors". But they were still editable, which is very confusing.

4 years agoBuildbot: Correct folder for experimetnal builds
Sergey Sharybin [Wed, 15 Oct 2014 10:16:56 +0000 (16:16 +0600)]
Buildbot: Correct folder for experimetnal builds

4 years agoBuildbot: Fix for branch detection from the file name
Sergey Sharybin [Wed, 15 Oct 2014 10:06:48 +0000 (16:06 +0600)]
Buildbot: Fix for branch detection from the file name

4 years agoBuildbot: Rename testbuild branch to experimental-build and put the builds to dedicat...
Bastien Montagne [Wed, 15 Oct 2014 09:27:40 +0000 (15:27 +0600)]
Buildbot: Rename testbuild branch to experimental-build and put the builds to dedicated folder

4 years agoFix T42239, missing redraw notifier when switching collision shapes.
Lukas Tönne [Wed, 15 Oct 2014 09:36:06 +0000 (11:36 +0200)]
Fix T42239, missing redraw notifier when switching collision shapes.

4 years agoBetter fix for T42139
Antony Riakiotakis [Wed, 15 Oct 2014 09:04:41 +0000 (11:04 +0200)]
Better fix for T42139

Noise function's significant bits are up to 31st bit. This should now
give the same visual result as before, minus the stripes.

Issue pointed out by Anthony Edlin, thanks!

4 years agoCMake: Add a flag to explicitly disable SSE/SSE2 intrinsics
Sergey Sharybin [Wed, 15 Oct 2014 08:53:12 +0000 (14:53 +0600)]
CMake: Add a flag to explicitly disable SSE/SSE2 intrinsics

The flag is called WITH_CPU_SSE, it is ON by default so no one should
be affected by the change really.

This should hopefully fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=763755

4 years agoFix T42237: Added a soft limit to 3D view grid scale; a value of 0.0
Lukas Tönne [Wed, 15 Oct 2014 08:11:31 +0000 (10:11 +0200)]
Fix T42237: Added a soft limit to 3D view grid scale; a value of 0.0
can otherwise give 0.0 object scale.

4 years agoCorrect last commit
Campbell Barton [Wed, 15 Oct 2014 08:10:05 +0000 (10:10 +0200)]
Correct last commit

4 years agoCleanup: unused var
Campbell Barton [Wed, 15 Oct 2014 07:24:50 +0000 (09:24 +0200)]
Cleanup: unused var

4 years agoFix T42226: Glibc <= 2.8 fails to build
Campbell Barton [Wed, 15 Oct 2014 07:23:43 +0000 (09:23 +0200)]
Fix T42226: Glibc <= 2.8 fails to build

4 years agoRefactor 'apply' part of Editmode View3d Transform panel code.
Bastien Montagne [Tue, 14 Oct 2014 21:35:28 +0000 (23:35 +0200)]
Refactor 'apply' part of Editmode View3d Transform panel code.

This was way too verbose, heavily factorized the code.

Also made sure only changed data are applied (was not always the case,
especially for curves and lattices), and that we always use raw value
when only one element is affected (was only that way for coordinates).

Note I checked performances, they seem to be roughly the same as previously.

4 years agoCleanup: Editmode 3DView Transform panel code: do not check for hidden BMesh verts...
Bastien Montagne [Tue, 14 Oct 2014 20:40:15 +0000 (22:40 +0200)]
Cleanup: Editmode 3DView Transform panel code: do not check for hidden BMesh verts/edges.

Afaik, a hidden BMesh element should never be selected. And this check was done in an
awfully inconsistent way! If it should really be needed, should be added back as a macro
used everywhere!

4 years agoCleanup: Edit mode 3DView Transform panel code.
Bastien Montagne [Tue, 14 Oct 2014 20:07:31 +0000 (22:07 +0200)]
Cleanup: Edit mode 3DView Transform panel code.

Mostly reorganizing mesh data handling to be always in the same order, this piece of code
is rather verbose, let's try to keep it organised a bit.

Also some visual UI tweaking.

4 years agoAdd Vertex bevel weight to Editmode UI.
Bastien Montagne [Tue, 14 Oct 2014 19:29:26 +0000 (21:29 +0200)]
Add Vertex bevel weight to Editmode UI.

This panel UI code needs more love, cleanup etc. in next commits.

4 years agoBevel modifier: Add weight support for vertices bevelling.
Bastien Montagne [Tue, 14 Oct 2014 19:28:20 +0000 (21:28 +0200)]
Bevel modifier: Add weight support for vertices bevelling.

Nothing to say here, really, just a couple of lines to add to get it working...

4 years agoFix for No Sudo option in install_deps.sh (typo in docs)
Dalai Felinto [Wed, 15 Oct 2014 00:16:58 +0000 (21:16 -0300)]
Fix for No Sudo option in install_deps.sh (typo in docs)

4 years agoBugfix T42225: Python - GreasePencil.active incorrectly accepts GreasePencil type...
Joshua Leung [Tue, 14 Oct 2014 23:56:29 +0000 (12:56 +1300)]
Bugfix T42225: Python - GreasePencil.active incorrectly accepts GreasePencil type instead of GPencilLayer

4 years agoFix for Editor Fullscreen on Sequencer
Dalai Felinto [Tue, 14 Oct 2014 21:31:02 +0000 (18:31 -0300)]
Fix for Editor Fullscreen on Sequencer

The sequencer 'display' area is a region on its own, so we can't hide
the preview regions. The only problem is that the <-> resize icon shows
in the main region, so you only see it over the tracks region in the
sequencer, I'm not addressing this though.

4 years agoFullscreen Editor (new fullscreen mode for clean UI)
Dalai Felinto [Tue, 14 Oct 2014 18:05:44 +0000 (15:05 -0300)]
Fullscreen Editor (new fullscreen mode for clean UI)

Organize Maximize/Fullscreen mess and add a new fullscreen mode with no UI

* Maximize Editor: (old Ctrl+Up)
* Full Screen Window: (old Alt + F11)
* Full Screen Editor: new operator (Alt + F10)
* Change Show/Hide Header: (Alt + F9)

When the mode is on moving the mouse near the top right corner of the
editor shows an icon to go back to the normal editor mode.

This was originally intended for the multiview branch, but this
functionality also benefits non-stereo workflows, thus it can be
reviewed and committed independently.

Development notes:
* This includes cleanups in the code to sanitize the naming of
  fullscreen/maximize across the window/editor code.

* Originally the idea was to make the window fullscreen as well, but
  this idea was dropped.

* You can see the clicking area when debug is 1

* Technically the user can be left with an unfaded icon in the corner
  (specially when using a tablet). If we think this is too bad we can
  increase the action zone to be the whole screen, or something similar.

Reviewers: campbellbarton [1], ton [2], fsiddi [2]

[1] actual code review
[2] design review

Differential Revision: https://developer.blender.org/D678

4 years agoCycles: Do cuda pointer arithmetic in integers, don't use pointer arithmetic
Sergey Sharybin [Tue, 14 Oct 2014 15:52:23 +0000 (17:52 +0200)]
Cycles: Do cuda pointer arithmetic in integers, don't use pointer arithmetic

This should hopefully fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765187

4 years agoCleanup: ws
Campbell Barton [Tue, 14 Oct 2014 15:49:37 +0000 (17:49 +0200)]
Cleanup: ws

4 years agoOSX/GHOST: replace spaces with tabs in sesponese to rB424c050a6fc1
Jens Verwiebe [Tue, 14 Oct 2014 15:27:25 +0000 (17:27 +0200)]
OSX/GHOST: replace spaces  with tabs in sesponese to rB424c050a6fc1
New IDE did not take over my former setting for preferring tabs

4 years agoFix inconsistent types in guardealloc
Dan Horák [Tue, 14 Oct 2014 14:11:20 +0000 (16:11 +0200)]
Fix inconsistent types in guardealloc

This basically fixes mix of size_t and uintptr_t usages which might be different size.

4 years agoCode cleanup: int/float and float/double conversions
Sergey Sharybin [Tue, 14 Oct 2014 13:36:21 +0000 (15:36 +0200)]
Code cleanup: int/float and float/double conversions

4 years agoFix T42064: Directional blur uses wrong sampler
Sergey Sharybin [Tue, 14 Oct 2014 13:35:15 +0000 (15:35 +0200)]
Fix T42064: Directional blur uses wrong sampler

Now use linear one, nearest is far too doggy.

4 years agoFix T42021: OSL doesn't work when there are non-ascii chars in the path
Sergey Sharybin [Tue, 14 Oct 2014 12:53:49 +0000 (14:53 +0200)]
Fix T42021: OSL doesn't work when there are non-ascii chars in the path

Quite annoying, the same thing we do from the blender side, But as a positive
side we can get rid of some utf8/utf16 conversions.

Hopefully it all work fine now, at leats works on mu russki windoze laptop.

4 years agoOSX: refinement for last fullscreen condition commit
Jens Verwiebe [Tue, 14 Oct 2014 11:17:14 +0000 (13:17 +0200)]
OSX: refinement for last fullscreen condition commit