Commit Graph

39077 Commits

Author SHA1 Message Date
Campbell Barton
854fd94016 bge py api: raise an overflow exception when assigning a float to a bge object which is out of the float range.
also avoid raising exceptions by ConvertPythonToValue when they will be ignored.
2013-05-03 01:13:51 +00:00
Campbell Barton
d92bd6bb04 fix [#35194] Change view while LoopCut is active breaks the cut options
use edge-index rather then mouse coords for loopcut so the viewport doesn't interfere.
2013-05-03 00:22:22 +00:00
Campbell Barton
91ba6c9ced adjustment to own commit r56463.
when strings use 'PROP_NEVER_NULL' we still want them to show an unlink button.
2013-05-02 21:27:19 +00:00
Campbell Barton
fe208a895a fix for mistake in own commit r56399, it broke click-dragging to open and select a menu item. 2013-05-02 19:51:32 +00:00
Brecht Van Lommel
92450a29fb Fix #35157: export key configuration did not export text input events correctly. 2013-05-02 19:43:52 +00:00
Brecht Van Lommel
cc86176a60 Fix #35190: texture mask stencil Reset Transform did not work properly. 2013-05-02 17:55:17 +00:00
Ton Roosendaal
12db4f3eae Revert fix for #34822
Allowing any-key modifiers to work is cool, but this needs more work.
My previous fix made overlapping key presses (where you release key 1
just after pressing key 2) to not register as valid shortcuts.
2013-05-02 15:10:24 +00:00
Brecht Van Lommel
4a4f091155 Fix #35174: dynamic paint displacement missing in render.
A previous bugfix disabled the dynamic paint modifier for orco texture
coordinate evaluation of the modifier stack. However the MOD_APPLY_USECACHE
flag is not a good way to check if the modifier is evaluated for orcos.

Instead I've added a MOD_APPLY_ORCO flag. Also removed a bunch of
applyModifierEM callbacks, none of them served a purpose except for the
subsurf modifier.
2013-05-02 14:42:05 +00:00
Bastien Montagne
4a8663d66e A bit more clear error message... 2013-05-02 14:03:56 +00:00
Daniel Genrich
396222bd01 Fix [#35173] Object's draw_type resets when removing smoke
New behaviour:
* On creation, smoke modifier only changes the drawtype for domain to WIRE.
* On deletion, smoke modifier does not change the drawtype.
2013-05-02 10:21:39 +00:00
Sergey Sharybin
0cd35ada0d Fix #35177: Press P Crashes Blender After Fracture of Cube
Root of the issue was fixed by Brecht in svn rev56441.
This change only prevents crash of files created in
blender before that fix, and also gives more useable
information about what's wrong (apparently, assert
here was doing nothing).
2013-05-02 09:45:00 +00:00
Sergey Sharybin
f06343e0d8 Fix #35182: VSE - speed control Trim duration (soft) end reset to 0
Was a regression in rev53509, whic hallowed manual edit of properties
which weren't supposed to be editing manually.

Added the same effects length update as in trnaslation code, so now
updating strip frames from py/interface will keep things consistent.
2013-05-02 08:25:22 +00:00
Campbell Barton
0408684763 avoid per-vertex mask layer lookups for dyntopo. 2013-05-02 06:09:05 +00:00
Campbell Barton
d5b36bf027 fix [#35178] Autoselect-in-list for Vertex Group selection doesn't work.
disallow assigning values that don't exist into a text field with a search-box.
2013-05-02 04:59:52 +00:00
Campbell Barton
e2e1b0d20d interface: clear red-alert flag when editing a button, confuses and makes it seem the edited value is also wrong. 2013-05-02 04:30:05 +00:00
Campbell Barton
479b330ac5 don't show an 'X' next to never-null pointer search menus.
also set ShapeKey.relative_key to never-null.
2013-05-02 04:16:41 +00:00
Campbell Barton
0fadb7e479 add missing call to update rv3d->persmatob, mostly this worked except with active-unselected object 2013-05-02 02:39:30 +00:00
Campbell Barton
29ffcf408f remove re-allocations while building weight paint color array, move button to show weightpaint below other overlay buttons in the 'Mesh Display' panel. 2013-05-02 01:49:10 +00:00
Campbell Barton
dee33e8097 fix [#34609] mesh.getVertex doesn't work as spected with poly.getMaterialIndex() and poly vertex indexes
revert r22906 (own old commit, was incorrectly trying to make vertex indices absolute)
2013-05-01 22:41:55 +00:00
Campbell Barton
3bbf11761a make rna layer access less cryptic by using ARRAY_HAS_ITEM(), modified this to use unsigned offset. 2013-05-01 22:39:34 +00:00
Brecht Van Lommel
d7e8356846 Fix 2D painting gave squares rather than a disk for the "Max" curve falloff shape. 2013-05-01 19:50:37 +00:00
Sv. Lockal
9fe63e82c3 Fix double free error in OpenEXR when file cannot be saved 2013-05-01 19:07:32 +00:00
Brecht Van Lommel
34b5bd7283 Fix #35081: opening .blend files with chinese characters not working. For
compressed files we were not passing the full wide char path to zlib, so not
all file names worked. Now we use gzopen_w available in new zlib versions.

Patch by Tamito Kajiyama, I added an extra check for the zlib version so it
keeps compiling with older versions for now.


For platform maintainers:

Part of this commit are zlib 1.2.8 libraries for windows 32 bit. We still
need update libraries for windows 64 bit and mingw. There's a readme.txt
and build.bat included with instructions on how to build.
2013-05-01 17:43:33 +00:00
Campbell Barton
75aeb37a18 edge_inside_circle was doing redundant float -> int -> float conversion, also dist_squared_to_line_segment_v2 is quite simple so remove radius checks. 2013-05-01 17:27:14 +00:00
Campbell Barton
e5344adda3 fix error running ED_view3d_project_float_v3_m4 on 2d vec (thanks Sergey for pointing out!), also remove redundant vector copy in knife project. 2013-05-01 17:03:00 +00:00
Brecht Van Lommel
1701ebe5dc Fix missing brush cursor redraw for texture paint when no pixels changed in the
image, no images need to be refreshed then but the cursors needs to be redrawn
still. Otherwise it gets stuck, especially annoying in unexpected cases where the
mask has reached the maximum for all pixels in the brush.
2013-05-01 14:59:50 +00:00
Brecht Van Lommel
c8cf9415de Fix #35149: solidify modifier + vertex parent not working after going in and out
of editmode on the child object.

Problem was that the object custom data mask was not taken into account when
rebuilding the derivedmesh in some cases, which is needed for the derivedmesh
to contain the mapping back to the original vertices. Now this data mask is
used for any derivedmesh build that will be cached.

Also problematic was that the datamask for the active object was applied to
all objects in the scene, which caused the parent object to be recalculated
when it didn't need to be. Now this datamask is only used for the active object.
2013-05-01 14:34:12 +00:00
Tamito Kajiyama
04cbb3ad14 Fix for [#35116] Freestyle StringUtils::toAscii breakes non-ascii path values.
Just removed all calls of StringUtils::toAscii() as well as the function definitions.
2013-05-01 13:34:56 +00:00
Brecht Van Lommel
4b0051b59c Fix missing brush texture mask in texture properties, for cycles. Handling this
properly with blender internal is probably for after release, when we can add
the same system to gather textures from brushes, modifiers, force fields, ...
2013-05-01 12:58:37 +00:00
Brecht Van Lommel
2c662f8be8 Fix #35171: crash rendering cube with two subsurf modifier in some circumstances.
Problem was actually integer overflow in the requested data layers (1 << 31) does
not fit in an integer, it only goes up to (1 << 31) - 1.
2013-05-01 12:35:31 +00:00
Brecht Van Lommel
96c2ff9523 Fix #35166: texture paint mask texture stencil not scaling properly. 2013-05-01 11:57:31 +00:00
Campbell Barton
586a97166f replace error reports with poll() function for editmesh select ungrouped 2013-05-01 06:07:26 +00:00
Campbell Barton
2cda8a9efb fix for select ungrouped vertices not flushing, also group select menu items more logically. 2013-05-01 05:59:58 +00:00
Campbell Barton
30c7183874 use 'normal' orientation rather then 'local' with individual origins to use the per-element axis-matrix. 2013-05-01 05:26:10 +00:00
Brecht Van Lommel
12476d157a Fix projection paint clone/soften/smear no longer working with textures,
Moved the code after the masking check so we can skip the texture lookup
if the pixel is done, is a bit faster. Also hide the color wheel for these
tools, only did it for 2D paint in previous commit.
2013-05-01 03:28:14 +00:00
Campbell Barton
950b4f5ec9 style cleanup 2013-05-01 02:53:45 +00:00
Campbell Barton
77a0d70cdb fix [#35164] UV unwrapping crash blender
(own fail with misuse of alloca)
2013-05-01 02:40:53 +00:00
Campbell Barton
5c009b5c9e remove headers from FRS_freestyle.h 2013-05-01 00:26:47 +00:00
Campbell Barton
9e75d276e3 holding ctrl when using arrow keys in the text editor didn't navigate newlines. 2013-05-01 00:15:22 +00:00
Campbell Barton
04234c5287 fix for missing slot in edge bisect bmesh operator. 2013-04-30 23:35:02 +00:00
Campbell Barton
6af6c96e85 fix for yet another off by one error in console code, could crash deleting words (but mostly it was hidden by guardedalloc), hopefully the last of this kind in console. 2013-04-30 22:46:41 +00:00
Campbell Barton
edd6327455 remove direct freestyle data access from bmesh, was crashing and this should really only be done via customdata layer support. 2013-04-30 22:27:52 +00:00
Antony Riakiotakis
2caeb1517c Fix tiled overlay not matching up with stroke result in 2d painting. 2013-04-30 22:14:19 +00:00
Antony Riakiotakis
d3fdb4c582 Fix: Overlay was getting invalidated too often in image editor making
refresh extremely slow.
2013-04-30 21:17:21 +00:00
Antony Riakiotakis
8b80b49721 Fix: texture alpha masking not functional after recent commits. Mask is
used to see if area has been covered by brush, so exclude the texture
alpha and texture alpha masks from mask comparisons. Coming next:
texture masks for 2d painting.
2013-04-30 20:57:45 +00:00
Campbell Barton
448186eb43 fix for setting int customdata layer names not ensuring uniqueness.
also use generic layer name callbacks for vert/edge/face/poly/loop.
2013-04-30 17:30:40 +00:00
Brecht Van Lommel
576e579925 More painting fixes:
* 2D image painting with textures that contained alpha did not work correctly,
  had been broken for a while.

* 2D image panels texture (mask) panels showed wrong buttons for texture overlay.

* Texture map mode 3D now also uses masking, like Tiled and Stencil the texture
  does not move along with the brush so it works fine.

* 2D image paint View mapping did not work correct, especially noticeable with
  Rake rotation.

* Masking is now disabled for the smear tool, this can't really work because
  the original image is constantly changing and gave artifacts.
2013-04-30 16:07:52 +00:00
Ton Roosendaal
7a0bdbc550 Bug fix #35151
NLA editor: the channel list and the main area were not perfectly aligned, and could
jump a bit around. Easy fix.
2013-04-30 15:17:20 +00:00
Sergey Sharybin
bb89b523e7 Fix compilation in release mode with strict flags 2013-04-30 12:18:09 +00:00
Ton Roosendaal
1ed6ab2f8c Bug fix #35143
Animplayer treated .tif extensions as movie files, so that didn't work.
Added another hardcoded check for it, like for png tga exr jpg etc.

Why FFmpeg thinks .tif is a movie... that's for another day :)
Quicktime QTKit did same btw.
2013-04-30 11:11:18 +00:00