Commit Graph

47512 Commits

Author SHA1 Message Date
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
Bastien Montagne
fd6ab0564d This should at least prevent crash in [#35172]... 2013-05-01 17:11:07 +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
a1cdccc3d8 Fix Show Brush button being missing from the UI for paint modes, the feature was
already implemented, it's in the Appearance panel now. Also added that panel to
the image editor now since it's relevant there too.
2013-05-01 15:28:56 +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
Lukas Toenne
8843eb9063 Fix for bug reported by Thomas Dinges on IRC: OSL script node was not initializing the data_type variable for shader sockets and so tried to set a non-existing float RNA property, leading to failed assert. 2013-05-01 13:28:44 +00:00
Thomas Dinges
0440d77dbc Cycles / OSL:
* Add a few more OSL templates to the Text Editor, so people can use some of the OSL only shaders and closures.

* Temperature (Kelvin) to RGB converter
* Wavelength to RGB converter
* Ramp closure (Phong and Diffuse)
* Toon closure (Diffuse and Specular)
2013-05-01 13:21:15 +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
Michael Fox
5a91db3d1f [Bug #35108] Shortcuts 3dsmax blender 2.67RC
Quad View: ALT + W
Switch Wireframe / Solid: F3
Render: F10
Properties: F12
Ortho / perspective View: P
Zoom to selected center: Z
Select/ Deselect all: CTRL + A

in changing A hotkeys ctrl-a hotkeys are now ctrl-shift-a and GameEngine is now ctrl-alt-shift-p
2013-05-01 11:35:36 +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
56e6c14e1e fix for exception in console auto-completing an object with __getitem__ but no __len__ (BMEdge). 2013-04-30 23:01:12 +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
Thomas Dinges
256a84ea7e Properties Editor / UI:
* Render Passes -> Passes, same as Cycles.
2013-04-30 18:57:04 +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
Brecht Van Lommel
3b04b861bd Fix another part of #35141: there was no way to reset the stencil transform after e.g.
scaling it along one axis, now there's a Reset Transform button.

The Image Aspect button is now also hidden unless the texture is an image texture.
And also hide the color wheel for painting tools that don't use colors.
2013-04-30 10:32:02 +00:00
Brecht Van Lommel
9461af89f1 Fix #35141: stencil and 3D texture mode did not work with 2D image paint. 2013-04-30 09:59:40 +00:00
Lukas Toenne
f01986c97c Fix for #35147, view in backdrop and image editor in compositor don't work anymore. The active_viewer_key which sets the active node tree to use for the viewer image was not initialized in do_versions yet. 2013-04-30 07:40:15 +00:00
Sergey Sharybin
39ac11a302 Partial fix for #35108: Shortcuts 3dsmax Blender 2.67RC
Made keyap use the same select_or_deselect_all operator
as used for maya keymap instead of tricks with deselect_all.

Solves issue with selection in editor mode (reported as #3
in the original bug report).
2013-04-30 07:34:23 +00:00
Sergey Sharybin
6b974ad0f1 Changes for updated operators 2013-04-30 07:18:07 +00:00
Brecht Van Lommel
63f05576b8 More image painting fixes:
* 2D image painting support for masking to limit the max contribution of a stroke
  to a pixel, to get it working compatible with projection painting. Not strictly
  a bugfix, but the inconsistency here was annoying.

* Fix python errors in Texture Mask panel in image editor, was missing overlay
  options.

* Clamp paint mask to 0..1 in case some texture exceeds it, this could give black
  pixels due to integer overflow.
2013-04-30 06:07:42 +00:00
Sergey Sharybin
b735402c19 Fix #35144: Image editor is not updateing if in new window
Was a regression in own optimization on which viewer node to
update -- need to check all the windows' screens, not just
active one.
2013-04-30 06:03:17 +00:00
Campbell Barton
def15f275d fix [#35156] Edge slide gg shortcut brings up wrong settings.
switch operator types from transform, this would normally be problematic, but transform operators share callbacks so it can be supported.
2013-04-30 03:44:03 +00:00
Campbell Barton
cba25a6d90 fix for an issue raised in [#35154],
the cross icon to clear a field wasn't working within popups.
2013-04-30 02:45:57 +00:00
Campbell Barton
f9ed2bf9e9 use const vars for UI arrays. 2013-04-30 01:51:25 +00:00
Campbell Barton
844a59afc2 fix [#35154] Python: UI issues with invoke_props_dialog()
- highlighed buttons that were never pressed could be activated by accident when canceling search popup. 
- canceling a search popup on a popup would close both.
2013-04-30 01:08:55 +00:00
Campbell Barton
f46e3f0f92 convert macro PASS_EVENT_TO_PARENT_IF_NONACTIVE into a static function. (having flow control in a macro is bad practice), own doing. 2013-04-29 21:44:28 +00:00
Brecht Van Lommel
9a6468357d Fix for previous noisy stroke fix, mask didn't converge to the right strength
value, formula should have been simpler actually.
2013-04-29 20:52:27 +00:00
Campbell Barton
1edf56e7a5 fix [#35150] Crash when bmesh operation called from within a Panel draw()
accessing a bmesh from python would reallocate all customdata layers.

add an assert to BM_data_layer_free(), when its called unnecessarily since its reallocating all layers.
2013-04-29 20:21:19 +00:00
Brecht Van Lommel
aa2a0e4ab0 More build fixes for visual studio 2012.
Patch #35019, #35131 and #35152 by Jurgen Herrmann.
2013-04-29 19:15:56 +00:00
Brecht Van Lommel
cd60848dd0 Fix collada module build for visual studio 2012.
Patch #35153 by Jurgen Herrmann.
2013-04-29 19:15:53 +00:00