blender.git
4 years agoFreestyle: Fix compilation error with strict compiler flags
Sergey Sharybin [Mon, 13 Jul 2015 13:24:19 +0000 (15:24 +0200)]
Freestyle: Fix compilation error with strict compiler flags

4 years agoFix T45390: Cycles experimental displacement method ignores scaling when render
Sergey Sharybin [Mon, 13 Jul 2015 13:22:36 +0000 (15:22 +0200)]
Fix T45390: Cycles experimental displacement method ignores scaling when render

From artists perspective it makes sense to always apply displacement in a local
space.

TODO: Double-check that BVH is being packed properly. From quick tests seems it's
all fine, but might be missing some obvious failure still.

4 years agoCleanup: IMB prefix for ImBuf defines
Campbell Barton [Mon, 13 Jul 2015 12:00:07 +0000 (22:00 +1000)]
Cleanup: IMB prefix for ImBuf defines

4 years ago Imbuf types refactor.
Antony Riakiotakis [Mon, 13 Jul 2015 11:58:17 +0000 (13:58 +0200)]
Imbuf types refactor.

    ImBuf types were getting stored as bitflags in a 32bit integer which had
    already run out of space. Solved the problem by separating file type to
    an ftype enum, and file specific options to foptions.

    Reviewed by Campbell, thanks a lot!

4 years agoUse regex for cmake config parsing
Campbell Barton [Mon, 13 Jul 2015 10:03:15 +0000 (20:03 +1000)]
Use regex for cmake config parsing

4 years agoFix T45397: Frameserver rendering no longer works in 2.75 or 2.75a
Sergey Sharybin [Mon, 13 Jul 2015 09:10:33 +0000 (11:10 +0200)]
Fix T45397: Frameserver rendering no longer works in 2.75 or 2.75a

Issue was caused by a typo in original multiview commit.

4 years agoFix T45385: Crash on render occurring when two hair modifiers are active that both...
Sergey Sharybin [Mon, 13 Jul 2015 09:01:34 +0000 (11:01 +0200)]
Fix T45385: Crash on render occurring when two hair modifiers are active that both use a UV mapped material for render

Not sure it's totally correct solution, but seems reasonable because it's
possible dmcache is set to ISCHILD.

Someone more familiar with the particles code might want to revisit this :)

4 years agoMinor tweaking to Knife header text.
Bastien Montagne [Sun, 12 Jul 2015 19:52:59 +0000 (21:52 +0200)]
Minor tweaking to Knife header text.

Confirm/cancel shall always be first, and also makes more sense to have
define cut/close cut/new cut together.

4 years agoShortcut-to-string converter: add 'dbl-' in front of key when expecting a double...
Bastien Montagne [Sun, 12 Jul 2015 19:39:59 +0000 (21:39 +0200)]
Shortcut-to-string converter: add 'dbl-' in front of key when expecting a double-click.

I think this is the only Keymap value we really need to handle here...

4 years agoAdd new modalkeymap usage in helper header message to Knife tool.
Bastien Montagne [Sun, 12 Jul 2015 19:32:16 +0000 (21:32 +0200)]
Add new modalkeymap usage in helper header message to Knife tool.

4 years agoAdd new modalkeymap usage in helper header message to Fly mode.
Bastien Montagne [Sun, 12 Jul 2015 19:14:06 +0000 (21:14 +0200)]
Add new modalkeymap usage in helper header message to Fly mode.

4 years agoCleanup: style
Campbell Barton [Sun, 12 Jul 2015 17:48:08 +0000 (03:48 +1000)]
Cleanup: style

4 years agoRemove redundant string copy
Campbell Barton [Sun, 12 Jul 2015 17:43:41 +0000 (03:43 +1000)]
Remove redundant string copy

4 years agoMissed essential part in previous commit.
Bastien Montagne [Sun, 12 Jul 2015 17:04:31 +0000 (19:04 +0200)]
Missed essential part in previous commit.

Or how to epic fail a fix when working on two different systems.
Or how to increase your commit rate.

4 years agoFix T45375: Cant clear temp fluid cache after closing Blender (Windows).
Bastien Montagne [Sun, 12 Jul 2015 16:47:29 +0000 (18:47 +0200)]
Fix T45375: Cant clear temp fluid cache after closing Blender (Windows).

There was two different issues here actually:
* Own (very high) stupidity only gave 8 chars to file name (sic).
* list dir returns dirpaths without a trailing slahs, but expects them to have it it seems. :|

4 years agoCycles: Expose "Max Bounces" for the world light.
Thomas Dinges [Sun, 12 Jul 2015 15:56:54 +0000 (17:56 +0200)]
Cycles: Expose "Max Bounces" for the world light.

When using MIS, the world is treated as regular light and in this case
we can now also limit the maximum amount of bounces, the background light
will contribute to the scene.

This can improve performance in some cases, where it's e.g. sufficient to
only have a contribution on first 1-2 bounces.
Examples can be found in the differential.

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

4 years agoBGE Clean-up: New EXP prefix for the BGE Expression module
Jorge Bernal [Sun, 12 Jul 2015 14:55:33 +0000 (16:55 +0200)]
BGE Clean-up: New EXP prefix for the BGE Expression module

The expression module now uses an EXP prefix and it follows a
distribution similar to blender.

Additionally the hash function in EXP_HashedPtr.h was simplified and the
files EXP_C-Api.h &.EXP_C-Api.cpp were deleted because were unused.

Reviewers: campbellbarton, moguri, sybren, hg1

Projects: #game_engine

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

4 years agoFix crash in redraw timer
Campbell Barton [Sun, 12 Jul 2015 14:21:08 +0000 (00:21 +1000)]
Fix crash in redraw timer

Was modifying wrong regions flag, that could also be NULL.

4 years agoAdd ability for redraw timer to run for fixed time
Campbell Barton [Sun, 12 Jul 2015 12:57:35 +0000 (22:57 +1000)]
Add ability for redraw timer to run for fixed time

Also avoid accessing context vars in timer loop.

4 years agoPyAPI: Use separate writes for operator reports
Campbell Barton [Sun, 12 Jul 2015 12:16:54 +0000 (22:16 +1000)]
PyAPI: Use separate writes for operator reports

This allows us to temp override the stdout and extract individual reports

4 years agoDocs; Py API gotcha's section
Campbell Barton [Sun, 12 Jul 2015 10:50:44 +0000 (20:50 +1000)]
Docs; Py API gotcha's section

Minor corrections and cleanup

4 years agoUse const for direntry strings
Campbell Barton [Sat, 11 Jul 2015 19:50:07 +0000 (05:50 +1000)]
Use const for direntry strings

4 years agoFile Browser: Fix possible bug and some minor tweaks
Julian Eisel [Sat, 11 Jul 2015 19:37:50 +0000 (21:37 +0200)]
File Browser: Fix possible bug and some minor tweaks

BLI_add_slash appended to a char *, a potential buffer overflow

Also partially removed an assert, which failed after changing file format of a saved image. We need a better way to handle such cases.

4 years agoError in last commit
Campbell Barton [Sat, 11 Jul 2015 19:35:44 +0000 (05:35 +1000)]
Error in last commit

4 years agoMinor changes for more efficient endian switching
Campbell Barton [Sat, 11 Jul 2015 19:33:04 +0000 (05:33 +1000)]
Minor changes for more efficient endian switching

4 years agoUse const for sculpt vars
Campbell Barton [Sat, 11 Jul 2015 17:49:47 +0000 (03:49 +1000)]
Use const for sculpt vars

resolves building with gcc4.9

4 years agoImBuf: Fix compilation error with older libpng
Sergey Sharybin [Sat, 11 Jul 2015 17:18:20 +0000 (19:18 +0200)]
ImBuf: Fix compilation error with older libpng

Older libpng library does not use const pointer to a memory.

The exact version is a bit of a guess here, maybe needs tweaks to it tho.

4 years agoremove redundant casts
Campbell Barton [Sat, 11 Jul 2015 16:53:37 +0000 (02:53 +1000)]
remove redundant casts

4 years agoerror in own last commit
Campbell Barton [Sat, 11 Jul 2015 15:43:32 +0000 (01:43 +1000)]
error in own last commit

4 years agoAdd Thai and Khmer charsets to our i18n font.
Bastien Montagne [Sat, 11 Jul 2015 16:02:19 +0000 (18:02 +0200)]
Add Thai and Khmer charsets to our i18n font.

4 years agoAvoid static var for OpenEXR
Campbell Barton [Sat, 11 Jul 2015 15:43:32 +0000 (01:43 +1000)]
Avoid static var for OpenEXR

4 years agoMake Iris image loading thread-safe
Campbell Barton [Sat, 11 Jul 2015 15:06:32 +0000 (01:06 +1000)]
Make Iris image loading thread-safe

Needed for thumbnails

4 years agoImBuf: cleanup, use const for memory passed in
Campbell Barton [Sat, 11 Jul 2015 13:52:18 +0000 (23:52 +1000)]
ImBuf: cleanup, use const for memory passed in

4 years agoAdd some basic report/timing/logging tool as util py module `progress_report`.
Bastien Montagne [Sat, 11 Jul 2015 14:47:59 +0000 (16:47 +0200)]
Add some basic report/timing/logging tool as util py module `progress_report`.

It supports any level of sub-steps, timing, messaging, and uses WindowManage.progress API
to report progress in UI, in addition to console printing.

4 years agoAdd WM_framebuffer_to_index_array
Campbell Barton [Sat, 11 Jul 2015 11:09:22 +0000 (21:09 +1000)]
Add WM_framebuffer_to_index_array

Convert buffer to index in one loop,
also minor cleanup to backbuf/selection functions.

- Use IMB_rectcpy instead of inline pixel copy.
- Redundant WM_framebuffer_to_index call.

4 years agoFile Browser: Keep file name after changing directory
Julian Eisel [Sat, 11 Jul 2015 03:20:35 +0000 (05:20 +0200)]
File Browser: Keep file name after changing directory

Actually this was an intentional change in rBaeeb23efa28dc to prevent Blender from trying to open the old file from the new directory. Issue is that this is really bad for saving and basically breaks "Save As".

Some more tweaks were needed to make it work like before, so now it keeps the name of the last selected file, but clears it when selecting a folder.

4 years agoBLI_matrix space_transform: Add a 'local-invariant' setter.
Bastien Montagne [Fri, 10 Jul 2015 22:04:27 +0000 (00:04 +0200)]
BLI_matrix space_transform: Add a 'local-invariant' setter.

`BLI_space_transform_from_matrices()` defines a 'global-invariant' transform
(same point in global space, two different coordinates in local and target spaces).

New `BLI_space_transform_global_from_matrices()` is kind of opposite, it defines
a 'local-invariant' transform (two different points in global space, same coordinates in local and target spaces).

Useful to 'match' meshes.

4 years agoFix T45405: Crash on opening a file (in filebrowser code)
Julian Eisel [Fri, 10 Jul 2015 20:04:06 +0000 (22:04 +0200)]
Fix T45405: Crash on opening a file (in filebrowser code)

Quoting Bastien from IRC: "Filebrowser is a nest of bad surprises" -- indeed :S

4 years agoCleanup: use const for mesh functions
Campbell Barton [Fri, 10 Jul 2015 18:39:27 +0000 (04:39 +1000)]
Cleanup: use const for mesh functions

4 years agoCleanup: use const for gpu buffer
Campbell Barton [Fri, 10 Jul 2015 17:25:28 +0000 (03:25 +1000)]
Cleanup: use const for gpu buffer

4 years agoCleanup: remove redundant includes
Campbell Barton [Fri, 10 Jul 2015 16:49:04 +0000 (02:49 +1000)]
Cleanup: remove redundant includes

4 years agoSequencer: changes to text effect strip
Campbell Barton [Fri, 10 Jul 2015 16:17:06 +0000 (02:17 +1000)]
Sequencer: changes to text effect strip

- default alignment to lower center.
- placement is now relative,
  so changing output size keeps correct placement.
- instead of center override, add align option (left/right/center).

Also don't use pixel-size for setting the font size, on new strips.
Better not have UI prefs impact low level API's.

4 years agoFix crash when appending from File Browser
Julian Eisel [Fri, 10 Jul 2015 15:48:49 +0000 (17:48 +0200)]
Fix crash when appending from File Browser

Again own mistake in rBaeeb23efa28dc1

4 years agoFreestyle: Missing __all__ symbols added in D963.
Tamito Kajiyama [Fri, 10 Jul 2015 13:55:06 +0000 (22:55 +0900)]
Freestyle: Missing __all__ symbols added in D963.

4 years agoCode cleanup: White space and dead code.
Tamito Kajiyama [Fri, 10 Jul 2015 13:53:58 +0000 (22:53 +0900)]
Code cleanup: White space and dead code.

4 years agoFreestyle: new stroke modifiers
Folkert de Vries [Fri, 10 Jul 2015 12:57:23 +0000 (21:57 +0900)]
Freestyle: new stroke modifiers

This patch introduces a couple new stroke modifiers. The ones currently implemented are based on prototypes by @kjym3 and myself.

The new modifiers:
  - Tangent
  - Thickness noise
  - Crease Angle
  - Simplification
  - Curvature 3D

The documentation for these new modifier types can be found [[ http://www.blender.org/manual/render/freestyle/parameter_editor/index.html | in the manual ]]:

{F134441}
(left: AnisotropicThicknessShader, right: NoiseThicknessShader)

{F140499}
(left: Curvature 3D, right: Simplification)

Author: Folkert de Vries (flokkievids)

Reviewers: kjym3

Subscribers: #user_interface, plasmasolutions, kjym3

Projects: #bf_blender

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

4 years agoBLI_math 'compare' cleanup & enhancements.
Bastien Montagne [Fri, 10 Jul 2015 12:32:35 +0000 (14:32 +0200)]
BLI_math 'compare' cleanup & enhancements.

This commit:
* Adds a 'compare_ff' function for absolute 'almost equal' comparison of floats.
* Makes 'compare_vxvx' functions use that new 'compare_ff' one.
* Adds a 'compare_ff_relative' function for secured ulp-based relative comparison of floats.
* Adds matching 'compare_vxvx_relative' functions.
* Adds some basic tests for compare_ff_relative.

See https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/

Note that we could replace our python/mathutils' EXPP_FloatsAreEqual() by BLI's compare_ff_relative
(using a very small absolute max_diff), but these do not have exact same behavior...
Left a comment there for now, we can do it later if/when we are sure it won't break anything!

4 years agoREmove stupid apple check on OMP in weightvg modifier.
Bastien Montagne [Fri, 10 Jul 2015 07:55:01 +0000 (09:55 +0200)]
REmove stupid apple check on OMP in weightvg modifier.

This is handled in build files...

4 years agoCustomData: deprecate CD_ID_MCOL
Campbell Barton [Fri, 10 Jul 2015 06:47:39 +0000 (16:47 +1000)]
CustomData: deprecate CD_ID_MCOL

4 years agomakesrna: use int64 for rounding check
Campbell Barton [Fri, 10 Jul 2015 06:42:36 +0000 (16:42 +1000)]
makesrna: use int64 for rounding check

Harmless but larger values would overflow

4 years agoDNA: replace GCC poison with ifdef for enums
Campbell Barton [Fri, 10 Jul 2015 05:58:08 +0000 (15:58 +1000)]
DNA: replace GCC poison with ifdef for enums

4 years agoFix T45398: Saving file from File Browser doesn't work if no file is selected
Julian Eisel [Thu, 9 Jul 2015 21:48:55 +0000 (23:48 +0200)]
Fix T45398: Saving file from File Browser doesn't work if no file is selected

Own mistake in rBaeeb23efa28dc16e20

4 years agoFile Browser: (Re-)Allow selecting '..' parent entry for file navigation
Julian Eisel [Thu, 9 Jul 2015 17:48:03 +0000 (19:48 +0200)]
File Browser: (Re-)Allow selecting '..' parent entry for file navigation

Selecting '..' entry was intentionally disabled in rB76b4fad6dbda1b10c, however, for file navigation this can be really useful. So this basically allows selecting '..' entry again, *if it is the only entry to select*. It won't be selected using box select, select all or when expanding selection.

4 years agoFile Browser: Improve usage of Enter-key to open files/directories
Julian Eisel [Thu, 9 Jul 2015 16:40:34 +0000 (18:40 +0200)]
File Browser: Improve usage of Enter-key to open files/directories

From a user-POV this makes following changes:
* Adds support for using the Enter-key to open directories
* Updates the upper text-buttons for file and directory on selection
* Last selected file/directory is opened now (in sync with upper text-buttons)
* Changes text in open button to "Open Directory" if a directory is selected

D1349, Reviewed by @mont29

4 years agoCleanup: warnings
Campbell Barton [Thu, 9 Jul 2015 09:39:37 +0000 (19:39 +1000)]
Cleanup: warnings

4 years agoCleanup: quiet warning
Campbell Barton [Thu, 9 Jul 2015 09:23:49 +0000 (19:23 +1000)]
Cleanup: quiet warning

4 years agoUse it->second instead of (*it).second in KX_BlenderSceneConverter.
Porteries Tristan [Thu, 9 Jul 2015 07:45:21 +0000 (09:45 +0200)]
Use it->second instead of (*it).second in KX_BlenderSceneConverter.

4 years agoSelect Shortest Path for edit-curve
Campbell Barton [Thu, 9 Jul 2015 03:14:09 +0000 (13:14 +1000)]
Select Shortest Path for edit-curve

D1391 by @pink.vertex with own fixes/edits

4 years agoCurve: change rules wrt active bezier
Campbell Barton [Thu, 9 Jul 2015 04:52:01 +0000 (14:52 +1000)]
Curve: change rules wrt active bezier

Activate the vertex even if only a single handle is selected

4 years agoCurve selection, de-duplicate & cleanup
Campbell Barton [Thu, 9 Jul 2015 04:31:27 +0000 (14:31 +1000)]
Curve selection, de-duplicate & cleanup

4 years agoSelect Similar for edit-curve
Campbell Barton [Wed, 8 Jul 2015 16:58:40 +0000 (02:58 +1000)]
Select Similar for edit-curve

D1381 by @johnroper100 with edits

4 years agoAdd BKE_nurb_bpoint_calc_normal
Campbell Barton [Wed, 8 Jul 2015 16:56:04 +0000 (02:56 +1000)]
Add BKE_nurb_bpoint_calc_normal

4 years agoEditCurve: move selection into own file
Campbell Barton [Wed, 8 Jul 2015 13:24:16 +0000 (23:24 +1000)]
EditCurve: move selection into own file

4 years agoFix/Cleanup mesh remap dest transformation in tree/source space.
Bastien Montagne [Tue, 7 Jul 2015 17:23:01 +0000 (19:23 +0200)]
Fix/Cleanup mesh remap dest transformation in tree/source space.

In org work, bvhtree helpers were modifying passed co/no in place according to given transform.

However, during review pass we decided this was bad, and made them modify copies. But this broke
some cases where we'd do extra tests after bvhtree query, expecting tmp_co to be in tree (aka source) space!

Further more, since in quite a few cases we were already doing that transform outside of bvhtree helpers,
decided to remove this alltogether from the helpers - makes things more clear and easy to follow,
avoids needless copy of vector, and ensures we are always using tmp_co in its transformed version!

4 years agoCorrect default enum values
Campbell Barton [Tue, 7 Jul 2015 13:09:08 +0000 (23:09 +1000)]
Correct default enum values

Had assert creating cheat sheet

4 years agoCycles: Add debug print about CLEW initialization status
Sergey Sharybin [Tue, 7 Jul 2015 12:37:12 +0000 (14:37 +0200)]
Cycles: Add debug print about CLEW initialization status

4 years agoCycles: Add an option to force disable all OpenCL devices
Sergey Sharybin [Tue, 7 Jul 2015 12:17:41 +0000 (14:17 +0200)]
Cycles: Add an option to force disable all OpenCL devices

This way it's possible to disable OpenCL devices for AMD devices
which are considered whitelisted.

4 years agoBGE: Fix wrong current logic manager in collision callback.
Porteries Tristan [Tue, 7 Jul 2015 11:36:47 +0000 (13:36 +0200)]
BGE: Fix wrong current logic manager in collision callback.

4 years agoRemove redundant lists, link instead
Campbell Barton [Tue, 7 Jul 2015 11:25:51 +0000 (21:25 +1000)]
Remove redundant lists, link instead

4 years agoRemove unnecessary constant info
Campbell Barton [Tue, 7 Jul 2015 11:17:33 +0000 (21:17 +1000)]
Remove unnecessary constant info

Noting every constant as an int isnt helping,
this is only meant to be passed to only.

4 years agoFix for recent error, ngons now flipped correctly
Campbell Barton [Tue, 7 Jul 2015 09:53:56 +0000 (19:53 +1000)]
Fix for recent error, ngons now flipped correctly

4 years agoUsing proper subtype in game object velocity clamping properties.
Sybren A. Stüvel [Tue, 7 Jul 2015 09:59:24 +0000 (11:59 +0200)]
Using proper subtype in game object velocity clamping properties.

The game.velocity_{min,max} and game.angular_velocity_{min,max} object
RNA properties did not use a subtype, and thus velocity was always
displayed as radians or blender units instead of the configured units.

Reviewed by: campbellbarton

4 years agoMinor simplification for uv edge drawing
Campbell Barton [Tue, 7 Jul 2015 05:08:45 +0000 (15:08 +1000)]
Minor simplification for uv edge drawing

4 years agoBGE: bge.texture API documentation enhancement
Quentin Wenger [Mon, 6 Jul 2015 09:11:40 +0000 (11:11 +0200)]
BGE: bge.texture API documentation enhancement

This patch attempts to improve and review the documentation of bge.texture, as requested in the [[ http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/GameEngine#Video_Texture | TODO list ]].

More specifically, it

  - fixes the rst syntax, including titles of the examples bge.texture.py and bge.texture.1.py;

  - adds, standardizes and reviews description of the API elements, particularly signatures, types, etc.

  - adds SOURCE_* constants to the doc

  - splits the doc into thematical parts (Video, Image, Texture, and Filter Classes, Functions, Constants).

Notes:

  - The parameter "mode" of ImageBuff.plot has to be described better. Actually, the whole set of IMB_BLEND_* constants (from IMB_imbuf.h) should be exposed to Python. I'll do that in a future diff, and complete the doc at the same moment (adding those IMB_BLEND_* constants to the Constants part of this doc).

  - The option of using webcams in VideoFFmpeg is still particularly not well documented. I am planning to make a proposal about fixing T18634 (and its corresponding TODO in the list) by integrating OpenCV in the BGE (and Blender?). The idea would then probably be to add a new class, f.ex. ImageWebcam, making this functionnality more specialized. So for now I don't think it is worth to document that part much.

This patch fixes T44284 too.

Reviewers: moguri, kupoman, campbellbarton, panzergame, lordloki

Reviewed By: panzergame, lordloki

Subscribers: hg1

Projects: #game_engine, #game_python, #documentation

Maniphest Tasks: T44284

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

4 years agoFix T45331, a bevel regression for 2.75.
Howard Trickey [Mon, 6 Jul 2015 17:24:42 +0000 (13:24 -0400)]
Fix T45331, a bevel regression for 2.75.

Got bad results when two beveled edges form straight line
and there are two or more unbeveled edges attached to either
side of the connecting vertex.

4 years agoFix T45237: Dither does not work
Dalai Felinto [Mon, 6 Jul 2015 14:51:40 +0000 (11:51 -0300)]
Fix T45237: Dither does not work

4 years agoFix T45290: Selecting passes in image editor does no longer work
Dalai Felinto [Mon, 6 Jul 2015 14:13:49 +0000 (11:13 -0300)]
Fix T45290: Selecting passes in image editor does no longer work

This issue was introduced with the wrong fix I committed for dither (rB56ca7f34)
Which also means T45237 has to be re-open

4 years agoBGE: Fix T45341: Crash when camera is eliminated
Jorge Bernal [Mon, 6 Jul 2015 13:40:09 +0000 (15:40 +0200)]
BGE: Fix T45341: Crash when camera is eliminated

A null check is added to avoid crashes when the camera is removed during
the game and no other is available

4 years agoFix T45328: Crash upon finishing render with 'Cache Result' enabled
Sergey Sharybin [Mon, 6 Jul 2015 10:34:40 +0000 (12:34 +0200)]
Fix T45328: Crash upon finishing render with 'Cache Result' enabled

4 years agoBGE Fix T45207: Camera actuator shakes with low height
Sybren A. Stüvel [Mon, 6 Jul 2015 10:20:29 +0000 (12:20 +0200)]
BGE Fix T45207: Camera actuator shakes with low height

The camera-aiming code was using a near-zero-length cross product, which
caused oscillations. Thresholding on the cross product length seems to
fix this.

Reviewers: lucky3, Matpi, lordloki

Reviewed By: lordloki

Projects: #game_engine

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

4 years agoRemove redundant face-flipping check
Campbell Barton [Mon, 6 Jul 2015 09:21:19 +0000 (19:21 +1000)]
Remove redundant face-flipping check

4 years agoCleanup: style, spelling
Campbell Barton [Mon, 6 Jul 2015 04:18:03 +0000 (14:18 +1000)]
Cleanup: style, spelling

4 years agoCMake: use cmake commands where possible
Campbell Barton [Sun, 5 Jul 2015 16:25:53 +0000 (02:25 +1000)]
CMake: use cmake commands where possible

4 years agoChange default for bevel to match previous behavior.
Howard Trickey [Sun, 5 Jul 2015 17:31:26 +0000 (13:31 -0400)]
Change default for bevel to match previous behavior.

Have reconsidered and feel it best to try matching previous behavior
(doing "loop slides" where possible) as default. This will avoid the
need to change regression tests, among other things.

4 years agoAdd 'loop slide' option to bevel. See T45260
Howard Trickey [Sun, 5 Jul 2015 13:53:17 +0000 (09:53 -0400)]
Add 'loop slide' option to bevel. See T45260

Current behavior of bevel is to 'loop slide' along unbeveled edges
when possible, but this produces uneven bevel widths sometimes,
so this option lets user choose between having the loop slide effect
or having more even bevel widths. Trying it out with default being
'no loop slide', so different from current behavior. May reverse this
choice later, depending on user reactions.

4 years agoCorrect vert-slide helper-line scale
Campbell Barton [Sun, 5 Jul 2015 12:33:44 +0000 (22:33 +1000)]
Correct vert-slide helper-line scale

Was invalid in perspective view

4 years agoCorrect comment
Campbell Barton [Sun, 5 Jul 2015 12:19:01 +0000 (22:19 +1000)]
Correct comment

4 years agoFix T45319: Set same precision for 3D cursor location as other locations (objects...
Bastien Montagne [Sun, 5 Jul 2015 08:53:21 +0000 (10:53 +0200)]
Fix T45319: Set same precision for 3D cursor location as other locations (objects', vertices', etc.).

4 years agoGPencil: use ctrl+x/del for dissolve
Campbell Barton [Sun, 5 Jul 2015 04:34:17 +0000 (14:34 +1000)]
GPencil: use ctrl+x/del for dissolve

Move dissolve into own operator (as with mesh/armature)

4 years agoAdd key toggle (V) to bevel tool to turn vertex-only on/off.
Howard Trickey [Sat, 4 Jul 2015 14:14:47 +0000 (10:14 -0400)]
Add key toggle (V) to bevel tool to turn vertex-only on/off.

4 years agoCleanup: Typo in comment.
Thomas Dinges [Sat, 4 Jul 2015 11:17:06 +0000 (13:17 +0200)]
Cleanup: Typo in comment.

4 years agoRNA: Match enum string to UI name
Campbell Barton [Sat, 4 Jul 2015 03:02:59 +0000 (13:02 +1000)]
RNA: Match enum string to UI name

Having different terminology for enum's is confusing for scripters.

4 years agoBGE: Fix T45259 collision sensor registration.
Porteries Tristan [Fri, 3 Jul 2015 21:48:26 +0000 (23:48 +0200)]
BGE: Fix T45259 collision sensor registration.

4 years agoBGE: Add alpha to coverage render mode.
Porteries Tristan [Fri, 3 Jul 2015 17:03:29 +0000 (19:03 +0200)]
BGE: Add alpha to coverage render mode.

This patch add a new option for transparency meshes : Alpha to coverage, in the game setting panel in material.
The alpha to coverage request a multisample, the best is 8x but 4x and 2x can also give nice render.

4x alpha clip : http://www.pasteall.org/pic/show.php?id=89464
4x alpha to coverage : http://www.pasteall.org/pic/show.php?id=89463

Reviewers: moguri, kupoman, campbellbarton, psy-fi

Reviewed By: psy-fi

Subscribers: lordloki, rdb

Projects: #game_engine

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

4 years agoFix T45281: IOR Value Slider with "Ctrl" modifier does not increment as intended.
Bastien Montagne [Fri, 3 Jul 2015 16:56:59 +0000 (18:56 +0200)]
Fix T45281: IOR Value Slider with "Ctrl" modifier does not increment as intended.

Looks like a typo in rB1b8069bd?

4 years agoFix T45283: Blender crashes on some grayscale PNGs with alpha.
Bastien Montagne [Fri, 3 Jul 2015 16:23:55 +0000 (18:23 +0200)]
Fix T45283: Blender crashes on some grayscale PNGs with alpha.

PNG_COLOR_TYPE_GRAY colortype can have some values for alpha, in the same way as
PNG_COLOR_TYPE_PALETTE colortype.

In this case, we need two channels (grayscale and alpha), not one.

4 years agoBGE: Add integer uniforms for 2D Filter
Thomas Szepe [Fri, 3 Jul 2015 15:07:31 +0000 (17:07 +0200)]
BGE: Add integer uniforms for 2D Filter

Actually it is only possible to pass float properties to a 2D filter (GLSL fragment shader).
This patch allows also to use integer properties for the 2D filter.

Reviewers: sybren, agoose77, kupoman, moguri, lordloki, panzergame

Reviewed By: lordloki, panzergame

Projects: #game_engine

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

4 years agoWalk mode: Add modal shortcuts in UI (header help message).
Bastien Montagne [Fri, 3 Jul 2015 13:54:34 +0000 (15:54 +0200)]
Walk mode: Add modal shortcuts in UI (header help message).

4 years agoCleanup: 'return' parameters to the end of functions, and use 'r_' prefix for them.
Bastien Montagne [Fri, 3 Jul 2015 13:44:38 +0000 (15:44 +0200)]
Cleanup: 'return' parameters to the end of functions, and use 'r_' prefix for them.

4 years agoUI: add ability to access/generate 'shortcuts strings' of modal keymaps.
Bastien Montagne [Fri, 3 Jul 2015 13:07:46 +0000 (15:07 +0200)]
UI: add ability to access/generate 'shortcuts strings' of modal keymaps.

We already had that for global keymaps (used e.g. to generate shortcuts for menu entries),
but this wasn’t possible for modal keymaps yet (e.g. help message in header during
transforms and other modal operation).

This commit only adds needing background code, it does not change anything from user PoV.
Modal operators will be updated to use it in comming weeks.

Thanks to Campbell for revisions & suggestions. :)

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