Commit Graph

47594 Commits

Author SHA1 Message Date
Campbell Barton
df3116b326 Fix for un-subdivide creating duplicate faces 2014-03-06 01:00:18 +11:00
Tamito Kajiyama
26b1406f6e Freestyle: Fix for incorrect comparisons of Nature values with integer and boolean values.
The problem is that comparisons involving the constants Nature.POINT (for vertices) and
Nature.NO_FEATURE (for edges) were evaluated in a wrong way.  It is recalled that the
Nature class is a subclass of Python's built-in int type, and that these two constants are zero
when evaluated as numbers.  The issue was caused by the implementation of the constants
in an incompatible way for comparison with Python int (and boolean) values.  Specifically,
the zero of Python int is represented by an empty array of digits, whereas the zero-valued
Nature constants were represented by an array of size 1.  Python int comparison operators
first check the lengths of the arrays of two operands, and then start comparing the digits
only when the array length is the same.  For this reason, the two Nature constants were
not properly compared with int values (and thus with boolean values).  It is noted that the
zero-valued Nature constants may result from bitwise operations on other Nature constants
(e.g., Nature.SILHOUETTE & Nature.BORDER), so this issue must have affected many
existing style modules.

The problem was reported by Folkert de Vries (flokkievids) through personal communications.
Thanks a lot!
2014-03-05 21:56:38 +09:00
Campbell Barton
f5d2b46b37 Code cleanup: remove long unused gamma correction tables 2014-03-05 22:41:44 +11:00
Campbell Barton
e49e78e414 Fix for negative gamma correction rounding to int 2014-03-05 22:41:44 +11:00
Sergey Sharybin
6ddb1faca9 Fix T38962: Boolean modifier crashes when only right operand has UV layer 2014-03-05 14:29:02 +06:00
Campbell Barton
40a276368d Edit to last commit, use the version veriable 2014-03-05 06:45:29 +11:00
Jens Verwiebe
ac7fba322d OSX/cmake: copy release/site-packages for OSX ( static py for now ) 2014-03-04 20:31:20 +01:00
Campbell Barton
7cb8b6f538 Build system: add cmake option to install requests 2014-03-05 05:40:47 +11:00
Antony Riakiotakis
9ecf73f703 Follow up to the offset scale fix for texture painting: texture mask had
the same issue.
2014-03-04 20:36:03 +02:00
Campbell Barton
2c4c4a56b8 Build system copy release/site-packages for windows 2014-03-05 04:13:35 +11:00
Antony Riakiotakis
f53014d642 Fix simplify brush not supporting autosmooth. There is no reason why
this should be so and it's useful to quickly decimate and smooth at the
same time.
2014-03-04 18:57:45 +02:00
Thomas Dinges
1754c0de33 Fix T38945, empty "System Bookmarks" and "Recent" panel were drawn in the File Browser, although these were disabled in User Preferences. 2014-03-04 16:47:07 +01:00
Howard Trickey
37ef7f3537 Fix T38936 Bevel strange flickering on big meshes.
Last change to bevel had a check for what was supposed
to be an "on edge" new vertex being off the edge.
The test tolerance was too small. This fixes that.
2014-03-04 09:31:20 -05:00
Thomas Dinges
58bd0e53f1 Fix T38944, Fonts too small in Movie Clip Editor on Retina display.
Thanks to Sergey for suggesting this fix.
2014-03-04 14:27:56 +01:00
Campbell Barton
c436c78de1 Build system support for numpy on ms-windows 2014-03-05 00:22:51 +11:00
Antony Riakiotakis
6ebbcbd5df Fix F62828. UV stitch code did not handle non manifold edges very well.
This made loops in linked lists of uvedges from duplicate members
causing a hang. Now check all previous links before adding a new one. It
is not much slower in practice because non-manifolds are not that
frequent.
2014-03-04 14:37:06 +02:00
Lukas Tönne
a31571481b Fix for regression noted in T38942: Blender Internal rendering can lead
to wrong obmats of nested dupli objects.

Restoring obmats after BI nested dupli object rendering has to happen
in reverse order, so higher level omats are applied last.
2014-03-04 11:22:56 +01:00
Bastien Montagne
dad9600004 Fix T38941: Laplacian Deform crashes on OSX
When vgroup was invalid somehow (e.g. empty, as in this case) and bind could not happen, code was dereferencing a NULL pointer...
2014-03-04 09:09:38 +01:00
Campbell Barton
46682d8812 Icon for LineStyle
patch T37008 from Michael P.
2014-03-04 04:22:32 +11:00
Brecht Van Lommel
53b03eff96 Fix T36496: unwanted behavior with NLA strip blend mode Replace.
If you have two overlapping NLA strips it automatically blends between them.
However it was also blending between the first strip and the rest pose
(e.g. 0,0,0 for locations and 1,1,1 for scale).

This is ok if the blend mode is Add or Multiply since then you are adding onto
the rest pose, but for Replace you want to be able to mix between two poses
and not take the rest pose into account at all.

What this does is that to not do any blending for the first strip if it has
blend mode Replace. If someone wants the old behavior (from bugfix commit
27d792fa9c) they can still make an action with the rest pose and use that
as the first strip.
2014-03-03 16:34:10 +01:00
Campbell Barton
1ae3108984 Fix for bmesh triangulate creating duplicate edges 2014-03-04 02:07:23 +11:00
Campbell Barton
6f80980847 Debug function to check valid bmesh now detects duplicate edges 2014-03-04 01:53:19 +11:00
Campbell Barton
0e47e29823 UI: Splash text for 'a' releases and the upcoming 'Release Candidate'
This avoids re-uploading splashes for minor version changes.

Enabling now so any glitches can be found before we do the real rc.
2014-03-03 17:29:03 +11:00
Campbell Barton
11112a8953 Fixes for view3d rotate axis snapping
- turntable would lockup when snapping, not allowing further rotation.
- userpref rotate-about-selection was ignored (causing strange panning)
2014-03-03 15:08:28 +11:00
Antony Riakiotakis
3c3c2cd53c Fix issue with texture painting: Tex slot scale was being applied twice. 2014-03-02 19:40:39 +02:00
Lukas Tönne
a89ef76136 Fix for own mistake: arc diff swallowed a commit somehow, breaking
compilation.
2014-03-02 17:04:24 +01:00
Antony Riakiotakis
503a9733d1 Switch Dyntopo enable back to Ctrl-D.
Grease pencil straight line can still be enabled by first pressing D
then Ctrl and looks like there is no final consensus on key shortcut.
Better leave this as before and solve after release.
2014-03-02 17:22:14 +02:00
Lukas Tönne
fd553c5b7b Fix T37334: Better "internal links" function for muting and node disconnect.
Implements a more flexible internal connect function for standard nodes
(compositor, shader, texture). Allow feasible datatype connections by
priority.

The priorities for common datatypes in compositor, shader and texture
nodes are encoded in a simple function. Certain impossible connections
(e.g. color -> cycles shader) are excluded by giving them -1 priority.

Priority overrides link status: If a higher priority input can be found,
this will be used regardless of link status. Link status only comes into
play for inputs with same priority.

Reviewers: brecht

CC: sebastian_k

Differential Revision: https://developer.blender.org/D356
2014-03-02 16:04:25 +01:00
Campbell Barton
6137ae29c1 Fix for problem with fly speed, caused by other speed tweaks. 2014-03-03 01:09:40 +11:00
Campbell Barton
e60fb0fd29 Fix for collapse ignoring pinned panels 2014-03-02 12:49:30 +11:00
Bastien Montagne
f01d19431d Fix T38873: Crashing on undo of ocean modifier.
Issue of this bug is that most part of fftw is not thread safe, only compute-intensive fftw_execute & co are.

Since smoke was affected by this issue as well, a global fftw mutex was added to BLI_threads.
Audaspace also uses fftw in one of its readers (AUD_BandPassReader.cpp),
but this is not an issue currently since this code is disabled in CMake/scons files.

There was another threading issue with smoke, we need to copy dm used by emit_from_derivedmesh(),
as it is modified by this func.

Reviewers: sergey, brecht

Reviewed By: brecht

CC: brecht

Differential Revision: https://developer.blender.org/D374
2014-03-01 21:05:50 +01:00
Campbell Barton
6b693ab7bf NDOF: add navigation modes to user preferences
also comment debug prints for raytracing
2014-03-01 21:47:46 +11:00
Campbell Barton
176f1aad3d Fix for using non camera objects as a camera having zero area view-frame 2014-03-01 21:41:07 +11:00
Campbell Barton
9737717234 Fix for some unlikely memory leaks, remove redundant checks 2014-03-01 20:14:20 +11:00
Campbell Barton
9742a6f6cb Resolve T38899: changes to Ctrl+Selectmouse conflict with LMB select 2014-03-01 19:26:55 +11:00
Campbell Barton
519ee151a3 Fix for memory leak in particle brush 2014-03-01 16:25:37 +11:00
Campbell Barton
d3ec3fd968 Fix Snap to Symmetry failing to select the vertex from the right side 2014-03-01 15:40:20 +11:00
Campbell Barton
3b5ea6b972 Fix for own error with updating view2d for NDOF 2014-03-01 15:28:51 +11:00
Campbell Barton
13ea967cce Code cleanup: correct abs use and quiet warnings 2014-03-01 14:26:18 +11:00
Campbell Barton
315d85faa1 Fix for baked FCurve subframe interpolation (bad abs use) 2014-03-01 14:12:56 +11:00
Campbell Barton
ca4dde48f3 Fix for sequencer invalid rounding, double wipe at 0 angle 2014-03-01 13:39:36 +11:00
Campbell Barton
6cc5bdc99e FCurve Transform: scaling no longer changes hansle types
This matches 3d view and means you can change the amplitude of a curve
while keeping auto-clamped handles.
2014-03-01 13:06:07 +11:00
Campbell Barton
f29dadc5ea Code cleanup: comment unused code in calchandleNurb_intern
Also remove outdated comments.
2014-03-01 12:58:52 +11:00
Howard Trickey
1582dd5e4d Partial fix for T38871, Bevel could create a far-out spike.
There needed to be a check that when a newly created point is
supposed to be on an edge, that it stays within the bounds
of either end of the edge.
This fixes the hole-in-cube example in the bug, but not
the boolean modifier one, which still needs more work.
2014-02-28 13:56:17 -05:00
Brecht Van Lommel
da5e6b98c9 Fix T38887: error in (still unused) freestyle math function implementation. 2014-02-28 18:15:24 +01:00
Brecht Van Lommel
7f24b34dcc Fix T38885: missing image editor paint brush updates after recent UI changes. 2014-02-28 18:12:05 +01:00
Campbell Barton
a32588b174 Fix for transform setting T_CAMERA
This was only set when the camera was active, however non active cameras
can be transformed too.
2014-03-01 01:28:15 +11:00
Sergey Sharybin
e4996b49f5 Proper solution for crash of GP when marker is not exist on current frame 2014-02-28 19:05:38 +06:00
Campbell Barton
45fc0514fb Fix for crash copying from non RNA color buttons 2014-02-28 23:45:31 +11:00
Campbell Barton
a04c132a7e NDOF: minor tweaks based on feedback.
- invert Y axis when swap YZ is enabled.
- allow rotating when not in ortho mode.
2014-02-28 22:07:53 +11:00