Commit Graph

47594 Commits

Author SHA1 Message Date
Campbell Barton
2247465b99 style cleanup: nodes 2013-05-27 08:04:07 +00:00
Campbell Barton
d612fc0426 style cleanup: nodes 2013-05-27 07:57:17 +00:00
Campbell Barton
ac0a8af414 fix [#35518] UV Mapping crashes the Blender with specific image file
2 bugs here
- missing NULL check in IMB_colormanagement_display_settings_from_ctx()
- deadlock in draw_image_paint_helpers()

Simple solution is to not draw paint helpers for render/viewer images.
2013-05-27 06:06:35 +00:00
Campbell Barton
ec8d277c64 BLI_math rename functions:
- mult_m4_m4m4 -> mul_m4_m4m4
- mult_m3_m3m4 -> mul_m3_m3m4

these temporary names were used to avoid problems when argument order was switched.
2013-05-26 18:36:25 +00:00
Campbell Barton
4cf069a41d the viewport align-active option was flipping the viewport direction,
now you can add an object, enable align to view, then align the view back to the object without flipping.
2013-05-26 18:24:13 +00:00
Gaia Clary
add5167b8d Fixed own error: used wrong iteration count for cleaning weight groups 2013-05-26 17:34:03 +00:00
Campbell Barton
5e347c4f71 code cleanup: typos 2013-05-26 12:02:29 +00:00
Campbell Barton
1014dbaea1 bmesh: replace BLI_array reallocs with alloca, also don't check all faces for connecting verts. 2013-05-25 23:34:25 +00:00
Campbell Barton
4c66463218 code cleanup: quiet pedantic warning in array macro. 2013-05-25 22:26:41 +00:00
Campbell Barton
7e9fdd97ba fix for incorrect type casting when checking macros exec() functions.
infact this worked by accident, but didn't crash.
2013-05-25 22:07:21 +00:00
Alexander Kuznetsov
b9817cd207 Live resize on Windows. Based on Ton's patch for mac.
Removing old resize stuff. 
Windows has resize lag, which creates black gap with openGL. Still looking to fix it.
2013-05-25 21:59:34 +00:00
Campbell Barton
b7c36b9511 bmesh: replace array reallocation with a single face array and use STACK macros. 2013-05-25 21:24:09 +00:00
Campbell Barton
b2f1720d41 bmesh: copy function - replace use of array reallocations with alloca in a static function. 2013-05-25 20:47:06 +00:00
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