Commit Graph

36826 Commits

Author SHA1 Message Date
Brecht Van Lommel
e3b2df5806 Fix #34315: memory leak cancelling move to layer operator, after change to make
it not execute immediately when opening the popup.
2013-02-19 13:37:48 +00:00
Campbell Barton
f784856906 make asserts that check for unit length vectors into a macro.
this was really not nice logic to try to fit into an assert.
2013-02-19 13:15:34 +00:00
Campbell Barton
0528162eb6 patch [#34320] Cross compiling with mingw-w64 on ubuntu
from Martijn Berger (juicyfruit)

applying since this is only corrects header case which is ignored on windows anyway.
2013-02-19 12:05:38 +00:00
Joshua Leung
0f359c41ea Style tweak - missing braces 2013-02-19 10:31:29 +00:00
Joshua Leung
c5e6a35e85 Remove ztrans_hack. Looks like just keeping the angles compatible works well
enough.
2013-02-19 10:10:09 +00:00
Sergey Sharybin
fdb25a1d27 Fix #34249: collapse edges crash blender with a specific mesh
OpenMP block was using shared variable, which for sure leads to
threading issues.
2013-02-19 09:51:32 +00:00
Campbell Barton
2d2164f10b fix [#34295] Color picker brightness to infinity
simply clamp the color to the buttons softrange since color conversion can cause the value to scale outside the intended button limits.
2013-02-19 09:41:48 +00:00
Sergey Sharybin
e5a135e0b2 Fixes for alpha mode do_versions code
Before this change only old flag "Premultiply" was used to
detect alpha mode, which is not enough actually.

Now the logic here is:

- If "Premultiply" was enabled it is likely float image with
  straight alpha, which shall be premultiplied before usage.

  In this case image/sequence Alpha Mode is set to Straight.

- Otherwise use default alpha mode for image format based on
  an extension. This could fail in some cases like TIFF, but
  this wasn't handled fully correct in older blender anyway.

Initial discovered issue was that EXR images saved in older
Blender versions were set to Straight alpha mode, which is
obviously a straight way to lots of headache.
2013-02-19 08:37:08 +00:00
Campbell Barton
c68d5325d0 fix for [#34283] wasn't working in my tests (attached to original report),
made bone roll get compatible angle values with the original roll.
2013-02-19 04:37:28 +00:00
Joshua Leung
926e0e7eb7 Bugfix [#34283] armature bones losing their roll setting upon translation in
edit mode

My earlier fix for [#33974] (in r.54061) was causing some problems where
manually specified roll values on horizontal or angled bones were getting reset.
This could be nasty as you might not notice the changes for a while (especially
when using stick bones without axes displayed).

I've now put in place a hacky compromise solution which should catch both of
these situations nicely. For z-axis (i.e. vertical) movements, the r.54061 fix
is used, while for everything else (moving or just touch-n-go), the old setting
is used.
2013-02-19 03:26:18 +00:00
Campbell Barton
6550fb8452 bpy.props.RemoveProperty() had incorrect docstring. 2013-02-19 02:48:14 +00:00
Campbell Barton
098e4234b1 minor change to own recent commit with transform fcurve centers and some style edits and typo corrections. 2013-02-19 02:30:02 +00:00
Alex Fraser
4e73ff0d63 Fix for [#34099] Particles leaking from moving meshes
This was caused by a floating point precision error. During collision detection, Newton-Raphson iteration is used to find the exact time of the collision. But when using subframes, the initial Newton step was too small. Now the initial step is given in absolute units. When subframes = 0, this should behave almost the same as before.

Thanks to Janne Karhu, Lukas Toenne and Ton Roosendaal for their help with this patch, and to AutoCRC for funding.
2013-02-19 02:24:52 +00:00
Pablo Vazquez
47c29c1c2e Themes: disabled items on menus were using a color mix of text and text_selected, this didn't work nice with dark themes and text shadows and overall didn't make much sense.
Now, disabled items use a mix of text and menu item background (inner) color. Same results, but allows dark themes with bright selected text to use shadows.

Example case: http://pasteall.org/pic/show.php?id=45697
2013-02-18 21:19:43 +00:00
Sergey Sharybin
167dcc88c7 Force movie clips always use default alpha mode, before this straight
alpha was used for them which doesn't work for cleaned footage stored
in EXR file format.

Perhaps we need to support configurable alpha mode for clips, but
that's for later (maybe even after release),
2013-02-18 19:34:14 +00:00
Brecht Van Lommel
525da1f872 Fix wrong alpha channel for OpenGL render results with transparent textures or
materials, the typical glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); blend
function does not give correct destination alpha.
2013-02-18 17:39:44 +00:00
Campbell Barton
9ab3d4ff1e fix [#34303] Rotation fcurves don't work with transforming with individual centers 2013-02-18 16:35:13 +00:00
Campbell Barton
4cd487d731 checking for V3D_LOCAL was duplicated in transform.c, and both checks not quite correct.
- When checking edimode, make sure its mesh editmode.
- Graph editor supports this option but wasn't being checked.
2013-02-18 15:47:13 +00:00
Ton Roosendaal
bd7648b2d2 Bug fix #34292
CTRL + MMB zoom in 2d editors now depends on 'max zoom' level. This makes
zooms in UI (very limited) go smoother, but for fcurve or timeline it's same.
2013-02-18 15:14:34 +00:00
Brecht Van Lommel
5ba0eb0ae5 Fix some popups being too small on retina display, among them the new image dialog. 2013-02-18 15:08:27 +00:00
Brecht Van Lommel
b0c6f87e2d Fix #34290: backface culling option in 3d view was not interacting well with the
option in the material in texture draw mode, now it always overrides the material.
2013-02-18 15:08:23 +00:00
Brecht Van Lommel
98c5da4a81 Fix #34276: OpenGL render not doing color space conversion to linear correctly
with transparency, would show as too dark colors on edges.

Found a strange issue here though, the alpha value in the OpenGL render result
is not the same as the one specified in the material. It's not clear to me why
this happens, color space conversions should not influence the alpha channel.
2013-02-18 14:03:50 +00:00
Bastien Montagne
d7058f12e5 Make list_id mandatory when using default UI_UL_list class for a template_list. 2013-02-18 14:03:26 +00:00
Sergej Reich
b187d33751 pointcache: Set start frame soft limit to 1
Right now most simulations can't handle cache start frame < 1
unfortunately.

There are two main problems:
1. frame 0 is a special case so some simulations will just pop back to
their initial state on frame 0.
2. blender doesn't allow playing the animation starting from negative
start frames, so most simulations only work when baked and not during
regular playback.

Just change soft limit since sart frame < 1 can work in some cases, but
this needs to be fixed properly in the individual simulations if we
really want to allow it.
2013-02-18 13:51:01 +00:00
Sergey Sharybin
21ab95c7d1 Fix #34289: Wrong grid color on light background
Grid was blending with wrong theme color.

Since r53636 TH_HIGH_GRAD is used as a background and this
color shall be used for blending.

This is possible other usages of TH_BACK are wrong here as
well, but would want Antony to check on this.
2013-02-18 13:43:18 +00:00
Bastien Montagne
b99dcf3b51 Minor precision in template_list doc, to always use a custom list_id when using default UI_UL_list class. 2013-02-18 13:34:26 +00:00
Campbell Barton
1c216337f0 make autocomplete use unicode character stepping (needed for bugfix). 2013-02-18 12:00:17 +00:00
Sergey Sharybin
5cc377022b Correction to r54600
Calculate dependent area based on distortion model rather than
using 15% of image resolution for this.

Some assumptions here:

- We're assuming real-life camera calibration is used here
- Maximal undistortion delta would be achieved on frame boundary
- Distortion fully goes inside frame

This makes it possible to approximate margin for distortion by
checking undistortion delta across frame boundary and use it
for dependent area of interest.

We do not use any formula-based equation here because we're likely
support other distortion models and in that case it'll be stupid
to try detecting formula here.
2013-02-18 10:12:44 +00:00
Campbell Barton
a0ede5be1d resolve build error in MSVC, was using a GNU C extension for ternary conditional. 2013-02-18 03:36:10 +00:00
Campbell Barton
d45612aa41 fix [#34279] Python console: Selected region is not highlighted when using white background color 2013-02-18 02:36:36 +00:00
Peter Schlaile
42a81550f9 == Sequencer ==
Made my last fix a little bit faster and more elegant by not playing around 
with seq->tmp (only reseting it to NULL, like the old code).
2013-02-17 22:13:00 +00:00
Peter Schlaile
aefa6261c3 == Sequencer ==
This fixes a bug in sequencer cut tool:

* if you cut two strips of the same name class (MVI_XXXX.MOV and MVI_XXXX.001) 
  the two new generated strips will end up with the same name.
  (easy test case: add a MOV file with it's accompanying audio track to the
  timeline and then cut both strips at once into two pieces)
  
* visible problem: your animation data will get messed up on the way, since
  the animation system doesn't know, which strip it should assign the
  animation.
  
Problem was caused by generating a new list of sequences within the 
cut_seq_list() function:

Since dupli_seq() can't see the members of the new list of sequences, it
won't be able to assign unique names in all cases.
2013-02-17 21:44:13 +00:00
Sergej Reich
3e0725854c rigidbody: Fix regression in background scene fix
Since BKE_object_where_is_calc() might be called outside of
scene_update_tagged_recursive(), we need to fall back to the scene's
rigid body world.
2013-02-17 19:38:08 +00:00
Ton Roosendaal
029686a2fd Bug fix #34281
The RNA path interpretor code was using a function to get the portion between quotes,
this function was not even checking if there *are* quotes at all! Causing bad
memory allocs or crashes.
2013-02-17 18:46:50 +00:00
Gaia Clary
ee64cbaf39 fix #34284 Collada: update problem for vertex weights directly after import. 2013-02-17 18:33:10 +00:00
Brecht Van Lommel
0aabcaca28 Fix #34285: sculpt/paint radial control F key operators did not adjust brush size
to retina pixel size correctly.
2013-02-17 14:53:29 +00:00
Campbell Barton
4529459a07 remove stipple from console selection drawing. 2013-02-17 14:38:35 +00:00
Bastien Montagne
c524b47912 Another huge bunch of UI translation fixes, mostly reported by Leon Cheung, Sv.Lockal, Gabriel Gazzán and Satoshi Yamasaki, thanks! 2013-02-17 13:56:49 +00:00
Campbell Barton
6e0cedd61c code cleanup: operator/function mismatch 2013-02-17 07:17:04 +00:00
Campbell Barton
b0a7370284 vertex slide: dont write clamped value back into TransInfo.values,
this meant toggling clamp didn't take any effect until the mouse was moved. (annoying glitch)
2013-02-17 05:58:18 +00:00
Campbell Barton
18f12c3fa4 allow alt or Ckey to toggle clamping for vertex slide. 2013-02-17 05:39:55 +00:00
Campbell Barton
34805a4752 BLI_mempool totalloc was being used un-initialized, normally this would cause bugs but turns out its not used,
ifdef'd it out but keep in the struct in BLI_mempool for now.
2013-02-17 05:16:48 +00:00
Campbell Barton
00f48914f3 code cleanup: missed r54603, arg reordering. 2013-02-17 04:35:50 +00:00
Campbell Barton
2e0017efd4 code cleanup: change order of args in void BKE_object_where_is_calc_time_ex() so extra arg is at the end (loose convention for *_ex() funcs). also some style cleanup. 2013-02-17 03:57:20 +00:00
Nicholas Bishop
39ee06421c Fix for harmless uninitialized-variable warning 2013-02-16 21:36:26 +00:00
Nicholas Bishop
ed39f334ca Fix performance regression with anchor brush in sculpt mode
When restoring coordinates in sculpt mode (used for several brushes
including anchor brush), can use sculpt_undo_get_node() for
non-dyntopo sculpting instead of sculpt_undo_push_node().

This should bring speed of anchor brush back to 2.65 level for regular
mesh/multires sculpting.

Fixes projects.blender.org/tracker/?func=detail&atid=498&aid=34208&group_id=9
2013-02-16 21:32:05 +00:00
Jeroen Bakker
772a3b1e1e Fix for [#34182] Movie Distortion and Bilateral Blur doesn't work together
* added area of interest based on a radius around the input tile.
If someone can implement a correct formula (based on K1, K2 and K3) and send it to me, I will be happy to apply it!

 - At Mind -
2013-02-16 21:21:04 +00:00
Monique Dewanchand
9cd01c6a5c Added option for group node buffering in the compositor.
Justa cluster did not have enough memory to handle all Mango 4k scenes.
Option is default disabled and can be enabled in the performance panel.

 - At Mind -
2013-02-16 20:21:41 +00:00
Sergej Reich
500bc0c5e9 rigidbody: Fix [#34277] Deleting a copied bullet scene crashes blender.
Copying scenes didn't handle rigid body worlds previously.

Since we use groups to keep track of objecs in the rigid body sim it's
tricky to do the right thing here since groups aren't duplicated.
One option would be to create new groups and add the duplicated objects
into those but that has other drawbacks.
So the rigid body world isn't copied for now.

TODO find a better way of handling this.
2013-02-16 19:24:52 +00:00
Sergej Reich
86f7916767 Code cleanup, remove redundant function wrapper 2013-02-16 19:24:50 +00:00