Commit Graph

39431 Commits

Author SHA1 Message Date
Ton Roosendaal
754f93f30d Simple usability fix:
Mesh editmode, active face was always drawing same stipple pattern color, 
whether face is selected or not. 
Now it uses selection color + stipple. Looks much more consistent.
2013-05-25 17:42:20 +00:00
Ton Roosendaal
24321d4891 Solving ancient Blender window sizing issue;
- Removed grid-snapping for area coordinates on scaling windows. 
  That caused the areas to shrink or expand, and eventually corrupt screen layouts.

- Added simple but efficient life resize for OSX. I need to know why this is so much
  code for Windows... I suggest Windows to just copy same method; dispatch the queue,
  and just let the event system draw.
2013-05-25 14:08:56 +00:00
Ton Roosendaal
092d9c31a1 Bug fix, irc submitted:
3D Viewport render (internal) didn't render bump maps (it was black even).
2013-05-25 11:52:52 +00:00
Campbell Barton
78c35c7720 bmesh: optimize iterator size using a union for iterator specific data.
on 64bit system reduces the struct to 64bytes, was 120, also avoids initializing unused values.
2013-05-25 09:46:28 +00:00
Campbell Barton
e63ab3505f use math functions rather then macros for bicubic interpolation. 2013-05-25 09:33:08 +00:00
Gaia Clary
08be3e06d9 fix misalignement of timeliner marker with timeline 2013-05-25 09:33:05 +00:00
Campbell Barton
7222d654b2 code cleanup: typo and stop manpage turning '$' into italic. 2013-05-25 02:21:50 +00:00
Campbell Barton
2026e6a7b3 fix [#35500] Material Copy Crash on specific scenes
check material textures exist before using in a pasted material.
2013-05-25 00:23:23 +00:00
Campbell Barton
28937676f3 fix for out of bounds memory access in solidify (harmless with guardedalloc padding but bad practice) 2013-05-25 00:22:04 +00:00
Gaia Clary
16d35ec94f weight tools: added more selection types to limit total operator 2013-05-24 13:50:26 +00:00
Howard Trickey
834c6ca316 Fix bug #35450, bevel make large spikes sometimes.
Needed special case for when beveled edge is
antiparallel to an adjacent edge.
2013-05-24 13:13:05 +00:00
Thomas Dinges
1140051e56 Fix for [#35490] Initial cube is green, turn off matcap and it is correct color
* Own error from r56980, "smooth" is an Interpolation qualifier in GLSL, so use another variable name to avoid the error.
2013-05-24 12:25:18 +00:00
Sergey Sharybin
1693988926 Changes for masks API
Made it more consistent with blender convensions
and now it's very familiar to curve's python api.

- Made it spline.points.add(count) wich is more
  efficient in cases lots of points are adding.
  (points.new was removed tho).

- Removed mask_layer.splines.add(), now it's only
  mask_layer.splines.new(), which is how splines
  are adding for curves.
2013-05-24 11:19:57 +00:00
Campbell Barton
4a2ca34bea style cleanup 2013-05-24 10:59:57 +00:00
Gaia Clary
69515adbc9 fixed memory leak in weight tool: levels 2013-05-24 10:54:26 +00:00
Gaia Clary
31ab91991c weight tools: added more selection types to levels operator 2013-05-24 10:46:37 +00:00
Campbell Barton
22f170f487 fix for building on osx with recent freestyle bugfix. 2013-05-24 10:15:20 +00:00
Bastien Montagne
5fdf868d80 Bring back "Local" as second orientation choice after "Global", as in previuos "manual" menu. Pointed out by sebastian_k on IRC, thanks. 2013-05-24 10:05:25 +00:00
Gaia Clary
26a5b63178 weight tools: added more selection types to invert operator 2013-05-24 09:30:13 +00:00
Sergey Sharybin
663f15cf2b Fix #35493: Blender crash when rendering in terminal mode
Use the same window manager for freestyle bmain as
real bmain uses. This is needed because freestyle's
bmain could be used to tag scenes for update, which
implies call of ED_render_scene_update in some cases
and that function requires proper windoew manager
to present.

Alternative would be to make render scene update does
nothing if there's no window manager, but we wanted
freestyle to be applied in rendered viewport once and
think current change is what we'll need to support
freestyle in viewport.

But a bit further, perhaps that'd make sense to not
register ED_render_scene_update as a scene update
callback when in background mode?
2013-05-24 07:56:32 +00:00
Campbell Barton
dfdb2eb9a8 fix own error in r56649, caused normal calculation to fail, reported as [#35448], also quiet float/double warning. 2013-05-24 06:50:15 +00:00
Campbell Barton
8e6ce736c4 disable auto indent when pasting text into the python console. 2013-05-24 01:04:37 +00:00
Campbell Barton
ebe86abb46 fix [#35478] Spatial Noise crashes Blender on Render 2013-05-24 00:30:22 +00:00
Campbell Barton
30b961abd8 fix own regression with ortho-camera adding points reported as [#35462] 2013-05-24 00:01:20 +00:00
Antony Riakiotakis
ca3905fe77 Follow up to previous commit. Non tiled mask wouldn't work on airbrushes 2013-05-23 21:37:18 +00:00
Campbell Barton
902e3ddd11 fix [#35488] Toggle "Show All Layers" 2013-05-23 21:24:56 +00:00
Campbell Barton
ab2cfd87e0 remove v3d.modeselect, reduce size of other vars in v3d. 2013-05-23 21:14:17 +00:00
Antony Riakiotakis
326c90d41a Fix #35426, masking works wrong in projection painting. When we don't
use tiling, we need to sample the mask texture when determining the
pixel masking.
2013-05-23 21:02:51 +00:00
Campbell Barton
cbc431ec12 style cleanup: also remove unused var 2013-05-23 20:20:24 +00:00
Gaia Clary
999c309b18 Cleaned up draw_selected_name() to avoid redundant BLI_snprintf() calls 2013-05-23 20:02:53 +00:00
Sergey Sharybin
d003a08302 Fix stack corruptions in special cases
Issue was caused by wrong array length used
for result of name_uiprefix_id, which shall
actually be 1 byte bugger than MAX_ID_NAME.

Reported by Sebastian Koenig in IRC.
2013-05-23 18:19:50 +00:00
Gaia Clary
0fcc6baa0b Made display of object : bone : shapes unique for weight painting and armature posing 2013-05-23 18:01:43 +00:00
Thomas Dinges
99b325cebf Cycles / Toon BSDF:
* Added a toon bsdf node to Cycles. This was already available as OSL only closure, but is now available inside the SVM backed as well, for CPU and GPU rendering. 
* There are 2 variations available, diffuse and glossy toon, selectable via a menu inside the node. 

Documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Toon

Example render & blend file:
http://www.pasteall.org/pic/show.php?id=51970
http://www.pasteall.org/blend/21579
2013-05-23 17:45:20 +00:00
Gaia Clary
3b0cc9cfd7 Improved display of active bone (in 3DView) when weight painting a mesh Object 2013-05-23 16:45:12 +00:00
Gaia Clary
f48bab5f06 Added display of active bone (in 3DView) when weight painting a mesh Object 2013-05-23 16:24:36 +00:00
Ton Roosendaal
ec834f8234 Bug fix, IRC report.
Mesh with very strange topology makes loop-select (ALT+select) crash.
Missing NULL check for do-while loop that can return NULL.

For Campbell: here's the file to check: http://www.pasteall.org/blend/21576
2013-05-23 16:01:25 +00:00
Ton Roosendaal
b6a4ea3d95 Bug fix #35481
Browsing screens via menu disabled screen editing (area divider drag) and made
popup menu hanging (select same editor for example).

Caused by bug fix #35434, commit gets rewinded, and report reopened.
2013-05-23 15:10:36 +00:00
Sergey Sharybin
80a6654a81 Masks api improvements
- Added MaskLayer.splines.new (which creates single spline
  and returns pointer to it).
- Added MaskLayer.splines.remove() to remove given spline.
- Added MaskSpline.points.new() which creates new point
  in the origin and returns pointer to it.
- Added MaskSpline.points.remove() to remove given point.
2013-05-23 10:50:55 +00:00
Campbell Barton
0ff22044cd Support for bridge tool subdivisions, smoothing and shape along the profile.
also added the underlying subdivision as a standalone operator in the edge menu, named: subdivide edge-ring.
http://www.graphicall.org/ftp/ideasman42/bridge_subd.png
2013-05-23 06:19:04 +00:00
Brecht Van Lommel
6bc2d57235 Fix #35449: image sequences to drive e.g. particle length or used in modifiers
were no properly updating when rendering animations.

The render engine was only updating the image user current frame on images used
by material textures. Now moved the function that updates all from the editors
to blenkernel level and do it on all frame changes.
2013-05-22 22:17:07 +00:00
Gaia Clary
3f8a146a1e Weight tools: Clean added additional selection options in operator Panel 2013-05-22 22:03:14 +00:00
Gaia Clary
be8649065b wrong list member size for memory setting(was too short) 2013-05-22 20:46:48 +00:00
Brecht Van Lommel
b068563ec8 Fix #35459: global texture coordinates not working with GLSL shaders. Got broken
in shader uniform binding optimizations in revision 55527.
2013-05-22 20:18:17 +00:00
Brecht Van Lommel
81dadaf7bf Fix #35469: image editor smear and soften paint tools not working correct for
float images, was not taking premul/straight convention into account properly.
2013-05-22 20:06:50 +00:00
Tamito Kajiyama
ba4fb6bf43 Temporary fix for [#35467] wrong lines with panoramic camera.
A warning message is shown when the panoramic camera is combined with Freestyle.
2013-05-22 19:21:42 +00:00
Thomas Dinges
f594e9b6ac Texture Nodes:
* Use node size presets as well, some nodes were too small and also too limited in max size.
2013-05-22 17:24:52 +00:00
Sergey Sharybin
1840cb84b2 De-duplicate zero resolution check in marker add operators. 2013-05-22 06:28:59 +00:00
Sergey Sharybin
b1d7205aa9 Fix #35458: SIGSEGV ( crash ) in imagewraposa()
Was missing a NULL-check.
2013-05-22 06:22:28 +00:00
Sergey Sharybin
4c0e50011e Fix #35461: Marker gets initialized to arbitrary position
Use center of currently visible frame part instead of
center of the whole frame for position of marker which
is adding from toolbox.

Used separate operator for this to keep operators more
atomic and not confuse with lots of conflicting properties.
2013-05-22 06:06:22 +00:00
Campbell Barton
aa0caa448e utility bmesh functions, for edge loop creation, optionally pass array BM_edge_split_n() to get verts created. 2013-05-22 06:00:26 +00:00