5 years agoCleanup: quiet warning
Campbell Barton [Thu, 17 Dec 2015 15:46:08 +0000 (02:46 +1100)]
Cleanup: quiet warning

5 years agoTransform: bend-mouse-input error initializing
Campbell Barton [Thu, 17 Dec 2015 08:45:29 +0000 (19:45 +1100)]
Transform: bend-mouse-input error initializing

Missed from transform-mouse-input changes.

5 years agoBMesh: split-by-edges minor fixes
Campbell Barton [Thu, 17 Dec 2015 07:10:04 +0000 (18:10 +1100)]
BMesh: split-by-edges minor fixes

- select all newly created edges
- remove redundant edges (not essential but nicer output).

5 years agoBMesh: add BM_face_share_vert_check/count
Campbell Barton [Thu, 17 Dec 2015 07:06:05 +0000 (18:06 +1100)]
BMesh: add BM_face_share_vert_check/count

5 years agoBMesh: partial-connection could make duplicate edges
Campbell Barton [Thu, 17 Dec 2015 06:49:56 +0000 (17:49 +1100)]
BMesh: partial-connection could make duplicate edges

Avoiding to make duplicate edges is too involved, do a remove-duplicates pass at the end instead.

5 years agoRevert "3D Cursor: Add option to lock it in place to prevent accidental modification"
Campbell Barton [Thu, 17 Dec 2015 03:54:06 +0000 (14:54 +1100)]
Revert "3D Cursor: Add option to lock it in place to prevent accidental modification"

This reverts commit a791153ca5e6f87d50396e188a3664b579884161.

Rather users get feedback on changing cursor-depth,
instead of preventing 3d-cursor placement entirely.

5 years agoFix particle count being grayed out when emitting from verts, but grid is on.
Eberhard Höpfner [Thu, 17 Dec 2015 00:17:55 +0000 (01:17 +0100)]
Fix particle count being grayed out when emitting from verts, but grid is on.

Differential Revision:

5 years agoBMesh: support connecting single-edge island links
Campbell Barton [Wed, 16 Dec 2015 18:02:39 +0000 (05:02 +1100)]
BMesh: support connecting single-edge island links

Handle these cases by temporarily disconnecting the single links to ensure isolated islands,
then link back up after.

5 years agoBMesh: utility function to split off wire edges
Campbell Barton [Wed, 16 Dec 2015 18:02:14 +0000 (05:02 +1100)]
BMesh: utility function to split off wire edges

5 years agocleanup: C99
Mike Erwin [Wed, 16 Dec 2015 06:24:15 +0000 (01:24 -0500)]
cleanup: C99

- for loop scope
- tighter scope on local vars
- more bool
- more const

5 years agoBGE clean up: use float version of trigonometric functions
Jorge Bernal [Wed, 16 Dec 2015 00:52:30 +0000 (01:52 +0100)]
BGE clean up: use float version of trigonometric functions

5 years agoBGE Ketsji clean-up: double-promotion warnings
Jorge Bernal [Wed, 16 Dec 2015 00:31:38 +0000 (01:31 +0100)]
BGE Ketsji clean-up: double-promotion warnings

5 years agoCycles: Fix wrong assert failure happening after recent de-duplicate
Sergey Sharybin [Tue, 15 Dec 2015 16:01:56 +0000 (21:01 +0500)]
Cycles: Fix wrong assert failure happening after recent de-duplicate

This is actually intended behavior to return NULL when the socket is not
found. It's used in certain BSDF nodes to query whether some inputs exists
or not.

Perhaps we can be more explicit here and have dedicated logic to query
socket existance and keep assert in place.

In any case, even if we lost assert() for the constant fold now it's
still somewhat better than duplicated code. Perhaps.

5 years agoCycles: De-duplicate utility functions in ccl::Graph
Sergey Sharybin [Tue, 15 Dec 2015 15:04:00 +0000 (20:04 +0500)]
Cycles: De-duplicate utility functions in ccl::Graph

5 years agoTemp workaround: Object mode pie glitches since 'Edit Strokes' mode was introduced
Julian Eisel [Tue, 15 Dec 2015 14:29:23 +0000 (15:29 +0100)]
Temp workaround: Object mode pie glitches since 'Edit Strokes' mode was introduced

To ensure all items of a pie are always at the same position, invisible dummy buttons were added for unavailable items. This caused mainly two issues: Command line printed warning because of the > 8 elements, and some modes weren't visible in some cases ('Object Mode' entry was missing in stroke edit mode).
To solve this nicely, we had to support > 8 items per pie. Will look into that this week, but for now, drawing dummy buttons is disabled.

From a user POV this has two ugly consequences: 1. While this temporary workaround is used, *some* pie items are positioned differently than before, 2. The 'Edit Strokes' mode entry might change its position depending on the amount of available modes.

5 years agoTemporary solution for Add/Subtract toggles being meaningless for some GPencil brushes
Joshua Leung [Tue, 15 Dec 2015 13:57:06 +0000 (02:57 +1300)]
Temporary solution for Add/Subtract toggles being meaningless for some GPencil brushes

For now, we just change the labels of these toggles so that it makes sense what
results we should expect from each. A better solution may be to create separate
"direction" props for the different brush types here, so that we can also define
more appropriate tooltips too to go with the labels.

5 years agoCompositor: Expose track velocity via the Track Position node
Sergey Sharybin [Tue, 15 Dec 2015 08:51:09 +0000 (13:51 +0500)]
Compositor: Expose track velocity via the Track Position node

velocity is measured in pixels per frame. It is basically a coordinate
difference of track coordinate at current frame and previous one (no future
prediction happens).

It's not really most intuitive place for such a things, but historically the
node was called this way..

Track velocity could be used to face effects like motion blur bu piping it
to the vector blur node.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Subscribers: hype, sebastian_k

Differential Revision:

5 years agoCorrect own error in knife edge-net cutting
Campbell Barton [Tue, 15 Dec 2015 07:44:21 +0000 (18:44 +1100)]
Correct own error in knife edge-net cutting

Need to ensure no duplicate edges in the array.

5 years agoCleanup: math lib naming
Campbell Barton [Tue, 15 Dec 2015 07:14:22 +0000 (18:14 +1100)]
Cleanup: math lib naming

Distinguish between line / line_segment

5 years agoCleanup: math lib naming
Campbell Barton [Tue, 15 Dec 2015 07:06:24 +0000 (18:06 +1100)]
Cleanup: math lib naming

Rename not-very-descriptive (p1, d) -> (ray_origin, ray_direction)

5 years agoCleanup: consistent naming for closest_to_line api
Campbell Barton [Tue, 15 Dec 2015 06:49:31 +0000 (17:49 +1100)]
Cleanup: consistent naming for closest_to_line api

5 years agoBMesh: split-py-edge now splices verts into edges
Campbell Barton [Tue, 15 Dec 2015 05:08:33 +0000 (16:08 +1100)]
BMesh: split-py-edge now splices verts into edges

Edge chains spanning faces or ending without a connecting edge
are now supported by splicing verts into the face boundaries.

5 years agoFix split-py-edge assuming valid face indices
Campbell Barton [Mon, 14 Dec 2015 05:09:40 +0000 (16:09 +1100)]
Fix split-py-edge assuming valid face indices

Also reduce variable scope

5 years agoOpenGL: remove utility functions that take doubles
Mike Erwin [Tue, 15 Dec 2015 03:40:41 +0000 (22:40 -0500)]
OpenGL: remove utility functions that take doubles

Kill these before someone is tempted to use them! Discourage use of fp64

5 years agouse float (not double) for font matrix
Mike Erwin [Mon, 14 Dec 2015 02:19:45 +0000 (21:19 -0500)]
use float (not double) for font matrix

Following up on recent double --> float commits in the game engine.

5 years agoFix T46936: cycles GLSL should not draw outlines for transparent materials.
Brecht Van Lommel [Tue, 15 Dec 2015 01:07:26 +0000 (02:07 +0100)]
Fix T46936: cycles GLSL should not draw outlines for transparent materials.

5 years agoFix T46951: invalid OpenGL mipmaps when using high bit depth textures.
Brecht Van Lommel [Tue, 15 Dec 2015 00:38:59 +0000 (01:38 +0100)]
Fix T46951: invalid OpenGL mipmaps when using high bit depth textures.

5 years agoFix 'change path' opening file browser with wrong filter for sound strips
Julian Eisel [Mon, 14 Dec 2015 22:52:01 +0000 (23:52 +0100)]
Fix 'change path' opening file browser with wrong filter for sound strips

Changing path of a sound strip (select strip->C->'Path/Files') opened a file browser without filter for sound files, so sound files weren't visible.
Also, for movie/image files, now only movie **or** image files are visible in the file browser by default (instead of both).

Reported by @venomgfx, thanks!

5 years agoUsual i18n fixes, and cleanup: fix 'randomise' -> 'randomize' spelling in code.
Bastien Montagne [Mon, 14 Dec 2015 18:20:31 +0000 (19:20 +0100)]
Usual i18n fixes, and cleanup: fix 'randomise' -> 'randomize' spelling in code.

5 years agoGraph Editor: "Add at Cursor" options for Insert Key operator in Graph Editor
Joshua Leung [Mon, 14 Dec 2015 15:03:25 +0000 (04:03 +1300)]
Graph Editor: "Add at Cursor" options for Insert Key operator in Graph Editor

* Added the ability to add a keyframe at the current cursor location in the
  Graph Editor. This is useful for precisely defining the shape of driver F-Curves.

* Fixed a bug where the wrong cursor-x time was being used in Drivers mode
  (i.e. it was still using time, and not just any time-value, but the NLA-mapped time!)

5 years agoFix: NLA Mapping should not apply to keyframes of Driver FCUrves
Joshua Leung [Mon, 14 Dec 2015 12:53:13 +0000 (01:53 +1300)]
Fix: NLA Mapping should not apply to keyframes of Driver FCUrves

5 years agoBLI_storage: util function BLI_file_read_as_mem
Campbell Barton [Mon, 14 Dec 2015 06:12:16 +0000 (17:12 +1100)]
BLI_storage: util function BLI_file_read_as_mem

Use for text loading and pasting from file.

5 years agoBGE Physics clean up: double-promotion warnings
Jorge Bernal [Mon, 14 Dec 2015 05:49:56 +0000 (06:49 +0100)]
BGE Physics clean up: double-promotion warnings

5 years agoBGE Scenegraph clean up: double-promotion warnings
Jorge Bernal [Mon, 14 Dec 2015 05:39:52 +0000 (06:39 +0100)]
BGE Scenegraph clean up: double-promotion warnings

5 years agoOpenGL: system info tweaks
Mike Erwin [Sun, 13 Dec 2015 20:58:01 +0000 (15:58 -0500)]
OpenGL: system info tweaks

- show extensions one per line in order for easier human scanning
- show DrawElements vertex & index limits
- assume GL version >= 2 for GLSL limit queries

5 years agoCleanup: unused args
Campbell Barton [Sun, 13 Dec 2015 16:24:42 +0000 (03:24 +1100)]
Cleanup: unused args

5 years ago3D Cursor: Add option to lock it in place to prevent accidental modification
Joshua Leung [Sun, 13 Dec 2015 14:06:06 +0000 (03:06 +1300)]
3D Cursor: Add option to lock it in place to prevent accidental modification

This option helps users protect themselves from accidentally changing the cursor
location (and not being aware of this until it has already caused problems)
when drawing using Grease Pencil (or with other tools where this is equally likely).
It seems to occur most frequently when using a tablet.

Currently, this only affects the use of the mouse to set the cursor, as this is
where most accidental invocations occur.

(I'm aware that this change may turn out to be quite contentious. Fortunately, it
should be simple to just revert this commit in that case :)

5 years agoRemoved duplicated define
Joshua Leung [Sun, 13 Dec 2015 13:58:46 +0000 (02:58 +1300)]
Removed duplicated define

5 years agoDopesheet: Mirroring GPencil keyframes now works again
Joshua Leung [Sun, 13 Dec 2015 13:36:02 +0000 (02:36 +1300)]
Dopesheet: Mirroring GPencil keyframes now works again

5 years agoDopesheet: IKEY (Insert Keyframe) operator now works in GPencil Mode
Joshua Leung [Sun, 13 Dec 2015 13:07:27 +0000 (02:07 +1300)]
Dopesheet: IKEY (Insert Keyframe) operator now works in GPencil Mode

It will create blank keyframes, or copies of the prevailing keyframe,
depending on whether "Additive Drawing" is enabled or not.

5 years agoFix yet one more Intel driver with crappy dfdy support in offscreen
Antony Riakiotakis [Sun, 13 Dec 2015 13:17:24 +0000 (14:17 +0100)]
Fix yet one more Intel driver with crappy dfdy support in offscreen

5 years agoBMesh: split-face by edges support isolated edges
Campbell Barton [Sun, 13 Dec 2015 13:15:36 +0000 (00:15 +1100)]
BMesh: split-face by edges support isolated edges

Previously edges needed to be connected to the faces.

5 years agoBMesh: replace BLI_array w/ BLI_buffer
Campbell Barton [Sun, 13 Dec 2015 10:34:12 +0000 (21:34 +1100)]
BMesh: replace BLI_array w/ BLI_buffer

Also reuse temporary buffer between calls.

5 years agoBMesh: add BKE_bmbvh_find_face_closest
Campbell Barton [Sun, 13 Dec 2015 13:10:40 +0000 (00:10 +1100)]
BMesh: add BKE_bmbvh_find_face_closest

5 years agoGP Sculpt: WheelUp/Down can be used to control brush size/strength while a sculpt...
Joshua Leung [Sun, 13 Dec 2015 12:12:42 +0000 (01:12 +1300)]
GP Sculpt: WheelUp/Down can be used to control brush size/strength while a sculpt stroke is in progress

5 years agoFixed incomplete comment
Joshua Leung [Sun, 13 Dec 2015 12:09:28 +0000 (01:09 +1300)]
Fixed incomplete comment

5 years agoFix: unreported crash with misconfigured nvidia opengl drivers
Ines Almeida [Sun, 13 Dec 2015 10:35:16 +0000 (10:35 +0000)]
Fix: unreported crash with misconfigured nvidia opengl drivers

5 years agoBMesh: don't use total faces to detect edits
Campbell Barton [Sun, 13 Dec 2015 08:42:12 +0000 (19:42 +1100)]
BMesh: don't use total faces to detect edits

Possible a boolean operation edits the mesh while keeping the same number of faces.

5 years agoBMesh: no need to tag edges created to fill holes
Campbell Barton [Sun, 13 Dec 2015 08:35:08 +0000 (19:35 +1100)]
BMesh: no need to tag edges created to fill holes

Was selecting these edges after applying boolean,
which isnt useful since selection is supposed to be along the cuts.

5 years agoCleanup: style/warnings
Campbell Barton [Sun, 13 Dec 2015 08:50:59 +0000 (19:50 +1100)]
Cleanup: style/warnings

5 years agoGPencil: Bump subversion and ensure that the datablock-level onionskinning flag is...
Joshua Leung [Sun, 13 Dec 2015 08:09:47 +0000 (21:09 +1300)]
GPencil: Bump subversion and ensure that the datablock-level onionskinning flag is set correctly

5 years agoGrease Pencil: Merge GPencil_Editing_Stage3 branch into master
Joshua Leung [Sun, 13 Dec 2015 08:03:13 +0000 (21:03 +1300)]
Grease Pencil: Merge GPencil_Editing_Stage3 branch into master

This commit merges all the work done in the GPencil_Editing_Stage3 branch
as of ef2aecf2db981b5344e0d14e7f074f1742b0b2f7 into master. For more details
about the changes that this brings, see the WIP release notes:

5 years agoBGE Rasterizer clean up: double-promotion warnings
Jorge Bernal [Sun, 13 Dec 2015 02:17:19 +0000 (03:17 +0100)]
BGE Rasterizer clean up: double-promotion warnings

5 years agoMoto Clean-up: double-promotion warnings
Jorge Bernal [Sun, 13 Dec 2015 01:50:30 +0000 (02:50 +0100)]
Moto Clean-up: double-promotion warnings

5 years agoBGE: Use float as default instead of double in Moto library.
Porteries Tristan [Sun, 13 Dec 2015 01:01:28 +0000 (02:01 +0100)]
BGE: Use float as default instead of double in Moto library.

Use float in moto instead of double for MT_Scalar.
This switch allow future optimization like SSE.
Additionally, it changes the OpenGL calls to float versions as they are
very bad with doubles.

Reviewers: campbellbarton, moguri, lordloki

Reviewed By: lordloki

Subscribers: brecht, lordloki

Differential Revision:

5 years agoKnife: use BM_face_split_edgenet for detecting holes
Campbell Barton [Sat, 12 Dec 2015 16:46:36 +0000 (03:46 +1100)]
Knife: use BM_face_split_edgenet for detecting holes

Knife had its own code for detecting holes which worked quite well,
but would prefer to use generic bmesh API call here.

5 years agoCorrect own mistake in 3e499c1a
Campbell Barton [Sat, 12 Dec 2015 14:57:57 +0000 (01:57 +1100)]
Correct own mistake in 3e499c1a

5 years agoUse material remapping for bmesh-boolean
Campbell Barton [Sat, 12 Dec 2015 13:34:09 +0000 (00:34 +1100)]
Use material remapping for bmesh-boolean

5 years agoFix T46958: NLA Editor's 'Add Modifier' button is the wrong size on Retina Display
Joshua Leung [Sat, 12 Dec 2015 10:09:29 +0000 (23:09 +1300)]
Fix T46958: NLA Editor's 'Add Modifier' button is the wrong size on Retina Display

5 years agoCleanup: style/spelling
Campbell Barton [Sat, 12 Dec 2015 04:10:03 +0000 (15:10 +1100)]
Cleanup: style/spelling

5 years agoBMesh: editmode booleans ignored when no faces cut
Campbell Barton [Sat, 12 Dec 2015 02:58:03 +0000 (13:58 +1100)]
BMesh: editmode booleans ignored when no faces cut

For the intersect tool this made sense, but booleans can use cuts which overlap edges exactly.

5 years agoCorrect error in last boolean commit
Campbell Barton [Sat, 12 Dec 2015 02:15:09 +0000 (13:15 +1100)]
Correct error in last boolean commit

Side was flipped

5 years agoBGE: Improve clock management
Arnaud Degroote [Sat, 12 Dec 2015 01:37:42 +0000 (02:37 +0100)]
BGE: Improve clock management

This patch improves clock management in BGE, to be able to accelerate /
slow the time, and also to finely synchronize clock with external
engines. Several new python functions have been added and existence ones
have been improved for that purpose. Now we have:

- getClockTime(): Get the current BGE render time, in seconds. The BGE
render time is the simulation time corresponding to the next scene that
will be rendered.

- getFrameTime(): Get the current BGE frame time, in seconds. The BGE
frame time is the simulation time corresponding to the current call of
the logic system. Generally speaking, it is what the user is interested

- getRealTime(): Get the number of real (system-clock) seconds elapsed
since the beginning of the simulation.

- getTimeScale(): Get the time multiplier between real-time and
simulation time. The default value is 1.0. A value greater than 1.0
means that the simulation is going faster than real-time, a value lower
than 1.0 means that the simulation is going slower than real-time.

- setTimeScale(time_scale): Set the time multiplier between real-time
and simulation time. A value greater than 1.0 means that the simulation
is going faster than real-time, a value lower than 1.0 means that the
simulation is going slower than real-time. Note that a too large value
may lead to some physics instabilities.

- getUseExternalClock(): Get if the BGE use the inner BGE clock, or rely
or on an external clock. The default is to use the inner BGE clock.

- setUseExternalClock(use_external_clock): Set if the BGE use the inner
BGE clock, or rely or on an external clock. If the user selects the use
of an external clock, he should call regularly the setClockTime method.

- setClockTime(new_time): Set the next value of the simulation clock. It
is preferable to use this method from a custom main function in python,
as calling it in the logic block can easily lead to a blocked system (if
the time does not advance enough to run at least the next logic step).

Rationale are described more precisely in the thread

See also T37640

Reviewers: sybren, panzergame, #game_engine, lordloki, moguri

Reviewed By: sybren, panzergame, #game_engine, lordloki, moguri

Subscribers: moguri, hg1, sybren, panzergame, dfelinto, lordloki

Projects: #game_engine

Maniphest Tasks: T37640

Differential Revision:

5 years agoFix T46945: Mesh Deform binding to a cage object with modifiers is unreliable.
Bastien Montagne [Fri, 11 Dec 2015 16:22:14 +0000 (17:22 +0100)]
Fix T46945: Mesh Deform binding to a cage object with modifiers is unreliable.

Binding code was re-building its own DM for the cage, now it uses given one instead.
I cannot see really any good reason not to use 'visual' modified cage for binding process,
using base mesh instead was breaking any 'advanced' binding as described in the report.

5 years agoFix for invalid void* to typed pointer assignment in bmesh when used in C++ code.
Lukas Tönne [Fri, 11 Dec 2015 15:16:11 +0000 (16:16 +0100)]
Fix for invalid void* to typed pointer assignment in bmesh when used in C++ code.

C++ does not allow the assignment of a void pointer to a typed pointer without
explicit casting. Since we use a generic macro in bmesh for iterators we only
ever get a void* back and cannot cast it to the target type. However, casting
the target to a void* as well solves that issue.

This tweak is #ifdef'd to be used in C++ code only.

5 years agoCommend timing prints for boolean
Campbell Barton [Fri, 11 Dec 2015 14:30:03 +0000 (01:30 +1100)]
Commend timing prints for boolean

5 years agoBMesh: boolean wasn't ignoring hidden faces
Campbell Barton [Fri, 11 Dec 2015 13:51:45 +0000 (00:51 +1100)]
BMesh: boolean wasn't ignoring hidden faces

Needed for editmode use

5 years agoFix T46949: Latest blender builds are using shared pcre and xml2 libraries
Sergey Sharybin [Fri, 11 Dec 2015 12:18:37 +0000 (17:18 +0500)]
Fix T46949: Latest blender builds are using shared pcre and xml2 libraries

5 years agoBMesh: Add option to use BMesh boolean modifier
Campbell Barton [Fri, 11 Dec 2015 09:24:39 +0000 (20:24 +1100)]
BMesh: Add option to use BMesh boolean modifier

This uses a bmesh-intersection, BLI_kdtree and watertight intersections to perform boolean operations.

For now keep both BMesh and Carve booleans usable at once for testing & bug reports,
however we plan to phase out Carve by next release.

5 years agoUse Python3.5's unpacking generalizations
Campbell Barton [Fri, 11 Dec 2015 07:14:02 +0000 (18:14 +1100)]
Use Python3.5's unpacking generalizations

5 years agoMistake in last commit
Campbell Barton [Fri, 11 Dec 2015 07:12:46 +0000 (18:12 +1100)]
Mistake in last commit

5 years agoBMesh: Boolean as an edit-mode tool
Campbell Barton [Fri, 11 Dec 2015 06:46:19 +0000 (17:46 +1100)]
BMesh: Boolean as an edit-mode tool

Works much the same as intersect operator,
expose as a new operator since for users its quite different.

Access from face menu.

Internally, this adds boolean args to BM_mesh_intersect function.

5 years agoCorrect error in recent commit w/ hole-filling
Campbell Barton [Fri, 11 Dec 2015 05:18:24 +0000 (16:18 +1100)]
Correct error in recent commit w/ hole-filling

edge-groups weren't being sorted with 2d-coords applied.

5 years agoFix T46951: GLSL draw mode missing some textures.
Brecht Van Lommel [Fri, 11 Dec 2015 01:53:21 +0000 (02:53 +0100)]
Fix T46951: GLSL draw mode missing some textures.

5 years agoBMesh: hole support for intersect tool
Campbell Barton [Fri, 11 Dec 2015 00:47:54 +0000 (11:47 +1100)]
BMesh: hole support for intersect tool

Support cutting many outlines into a single face (creating edges between isolated regions).

5 years agoBMesh: Add BM_face_kill_loose
Campbell Barton [Fri, 11 Dec 2015 00:45:27 +0000 (11:45 +1100)]
BMesh: Add BM_face_kill_loose

Removes edges/verts that become unused.

5 years agoMemutil: remove some unused code.
Brecht Van Lommel [Fri, 11 Dec 2015 00:46:28 +0000 (01:46 +0100)]
Memutil: remove some unused code.

5 years agoIK Solver: remove unused and outdated test code.
Brecht Van Lommel [Fri, 11 Dec 2015 00:42:09 +0000 (01:42 +0100)]
IK Solver: remove unused and outdated test code.

5 years agoMoto: remove some unused code.
Brecht Van Lommel [Fri, 11 Dec 2015 00:34:22 +0000 (01:34 +0100)]
Moto: remove some unused code.

5 years agoMath Lib: 2d ray-segment intersection function
Campbell Barton [Fri, 11 Dec 2015 00:25:24 +0000 (11:25 +1100)]
Math Lib: 2d ray-segment intersection function

5 years agoIK Solver: replace TNT math library with Eigen.
Brecht Van Lommel [Thu, 10 Dec 2015 22:05:45 +0000 (23:05 +0100)]
IK Solver: replace TNT math library with Eigen.

Performance is about the same or slightly better for typical IK chains.
In extreme cases with many bones and multiple targets, of which some are
unreachable, I've seen 2x speedups.

5 years agoIK solver: replace Moto math library with Eigen.
Brecht Van Lommel [Thu, 10 Dec 2015 18:12:26 +0000 (19:12 +0100)]
IK solver: replace Moto math library with Eigen.

5 years agoMSVC 2015 fix, /WX warnings as errors is to restrictive for msvc 2015 currently for...
Martijn Berger [Thu, 10 Dec 2015 16:23:59 +0000 (17:23 +0100)]
MSVC 2015 fix, /WX warnings as errors is to restrictive for msvc 2015 currently for bmesh

5 years agoMSVC 2015 fix hack around internal compiler crash on openmp atomic
Martijn Berger [Thu, 10 Dec 2015 13:59:17 +0000 (14:59 +0100)]
MSVC 2015 fix hack around internal compiler crash on openmp atomic

Eigen3 bug report:

5 years agoFix for mistake in intersect duplicate list check
Campbell Barton [Thu, 10 Dec 2015 13:43:51 +0000 (00:43 +1100)]
Fix for mistake in intersect duplicate list check

In practice this hardly ever happened.

5 years agoBMesh: minor optimization for intersect
Campbell Barton [Thu, 10 Dec 2015 12:39:50 +0000 (23:39 +1100)]
BMesh: minor optimization for intersect

Avoid double lookup on insertion ghash

5 years agoUpdate Eigen to version 3.2.7
Martijn Berger [Thu, 10 Dec 2015 11:37:46 +0000 (12:37 +0100)]
Update Eigen to version 3.2.7

The main purpose of this is to get MSVC 2015 fixes

5 years agoBegin to add some MSVC 2015 support
Martijn Berger [Thu, 10 Dec 2015 10:49:53 +0000 (11:49 +0100)]
Begin to add some MSVC 2015 support

5 years agoCleanup: quiet warning
Campbell Barton [Thu, 10 Dec 2015 10:18:50 +0000 (21:18 +1100)]
Cleanup: quiet warning

5 years agoUse 'peek' instead of 'last' for stack macro
Campbell Barton [Thu, 10 Dec 2015 10:08:10 +0000 (21:08 +1100)]
Use 'peek' instead of 'last' for stack macro

5 years agoEigen: fold remaining OpenNL code into intern/eigen.
Brecht Van Lommel [Tue, 24 Nov 2015 19:42:10 +0000 (20:42 +0100)]
Eigen: fold remaining OpenNL code into intern/eigen.

Differential Revision:

5 years agoEigen: move C API into intern/eigen.
Brecht Van Lommel [Thu, 10 Dec 2015 00:18:01 +0000 (01:18 +0100)]
Eigen: move C API into intern/eigen.

5 years fix (hopefully) broken OSL building on modern RPM-like distro.
Bastien Montagne [Wed, 9 Dec 2015 20:56:47 +0000 (21:56 +0100)] fix (hopefully) broken OSL building on modern RPM-like distro.

Those stupid ones only have one version of llvm (obviously not 3.4 one ;) ), so we have to build again
LLVM3.4 in those cases. Thing is,
* I did not update LLVM magic number when fixed a stupid typo breaking OSL building (the terminfo thing),
  so many people were still using previously-built LLVM.
* Even worse, options passed to OSL to specify own LLVM from /opt/lib were wrong (not sure when this got
  out of sync...).

Thanks to mib2berlin and slikdigit for the report & testings!

5 years fix utmost stupid typo breaking 'skip-osl' option on RPM-based distro...
Bastien Montagne [Wed, 9 Dec 2015 19:49:49 +0000 (20:49 +0100)] fix utmost stupid typo breaking 'skip-osl' option on RPM-based distro...

5 years print correct set of sources tested when a wget fails...
Bastien Montagne [Wed, 9 Dec 2015 19:45:50 +0000 (20:45 +0100)] print correct set of sources tested when a wget fails...

5 years agoCycles: Comment out unused arguments
Sergey Sharybin [Wed, 9 Dec 2015 13:37:43 +0000 (18:37 +0500)]
Cycles: Comment out unused arguments

5 years raise default py version to 3.5.1 (due to some obscure bugs with...
Bastien Montagne [Wed, 9 Dec 2015 13:33:41 +0000 (14:33 +0100)] raise default py version to 3.5.1 (due to some obscure bugs with OPM and 3.5.0).

5 years add '-U' update commands to onle-liner CMake-based build command...
Bastien Montagne [Wed, 9 Dec 2015 12:32:13 +0000 (13:32 +0100)] add '-U' update commands to onle-liner CMake-based build command line.

Avoid user to have to edit themselves their CMake config.

Thanks a bunch @campbellbarton for the tip! :D

5 years agoCMake: include eigen as a system header
Campbell Barton [Wed, 9 Dec 2015 07:55:01 +0000 (18:55 +1100)]
CMake: include eigen as a system header

5 years agoBMesh: move BM_face_split_edgenet to its own file
Campbell Barton [Wed, 9 Dec 2015 05:21:43 +0000 (16:21 +1100)]
BMesh: move BM_face_split_edgenet to its own file

Isolate edge-net splitting in preparation for other functions to be added here.