Commit Graph

47594 Commits

Author SHA1 Message Date
Campbell Barton
4fe94b2ef6 there were more places hook modifier type wasn't checked and could crash - add utility function which doest this. 2013-02-13 15:14:29 +00:00
Campbell Barton
fe855a83d7 fix for missing typecheck on hook-assign operator.
fix for POSELIB_OT_pose_rename getting an enum as an int.
2013-02-13 15:03:36 +00:00
Campbell Barton
5016ea5cb2 update python module loading test. 2013-02-13 14:11:04 +00:00
Bastien Montagne
43f4f807d9 Fix physics' name not translated in main physics panel (reported on bf-translations ML).
This also revealed another bug, as you could not explicitely set default context to text_ctxt UI func parameter (None is not accpeted by RNA string props), so I had to change default context from py POV to "*" instead of None.

Anyway, that physics UI translation remains weak, as the trick used here (helper func) prevents message extractor script to directly find them. Currently it works because specified labels are also defined elsewhere, but it would be nice to have some kind of "translation markers" in py code too (similar to our N_/CTX_N_ C macros, unfortunately python does not have preprocessing ;) )...
2013-02-13 11:52:01 +00:00
Brecht Van Lommel
35629a623b Fix #34216: uv unwrap with some faces pinned to point the normals down will now
automatically flip the unpinned faces to point down too, instead of trying to
unwrap them in the other direction and giving bad results.

If there's a mix of faces pinned up and down it will pick the direction with the
biggest area.
2013-02-13 10:38:05 +00:00
Bastien Montagne
3502fdea4a And more mismatches between RNA struct UI names and type UI names in nodes... BSDF nodes were not translated in UI. 2013-02-13 09:07:34 +00:00
Gaia Clary
6f4ce31320 fix: remove extra qualification in header 2013-02-13 08:53:05 +00:00
Campbell Barton
bfb319925d dont draw stippled lines without z-depth in vertex paint mode. (only weight paint). 2013-02-13 05:48:08 +00:00
Tamito Kajiyama
190144ef6e Fix for a crash when the Polygonization geometry modifier is used with a small "error"
parameter value.  The problem was caused by a null pointer reference in CurvePiece::error()
resulting from incorrect lengths of subdivided curves calculated in CurvePiece::subdivide().
Problem report by IRIE Shinsuke with a GDB backtrace log, many thanks!
2013-02-13 05:32:02 +00:00
Campbell Barton
00cad30349 style cleanup 2013-02-13 05:10:38 +00:00
Campbell Barton
5d6f83b179 remove redundant if statement. 2013-02-13 05:07:46 +00:00
Campbell Barton
0ec23efbf2 bmesh operators exceptions were not cleared after raising as a python exception.
also clear before calling the operator.
2013-02-13 04:55:05 +00:00
Campbell Barton
0b8bfbebc8 correct rna identifiers
- compositor viewer: use_straight_alpha -> use_alpha
- bevel tool: percent -> offset
2013-02-13 04:04:14 +00:00
Campbell Barton
b6a60fc6b8 revert own commit, caused regression - hanging on triangulation [#34214].
Postponing further changes for now, too risky before release when unexpected cases can cause eternal loop.
2013-02-13 03:20:30 +00:00
Campbell Barton
0e740f58ba make is_quad_convex_v3() more strict, check if normal is OK before using as a rotation axis.
make is_quad_convex_v2,3() check for ISECT_LINE_LINE_CROSS intersection (that the lines actually cross each other).
2013-02-13 03:13:12 +00:00
Ton Roosendaal
e672e7a070 Small tweak in event debug printing:
- missing print for case event gets handled AND passed on (selecting)
2013-02-12 19:08:04 +00:00
Gaia Clary
8996184ac4 Fixed importing of shapekey names: name is now taken from geometry name instead of deriving it from the mesh name 2013-02-12 17:52:18 +00:00
Ton Roosendaal
751bee1845 Composite node "Alpha over" didn't allow to be dragged wide enough. 2013-02-12 17:39:44 +00:00
Brecht Van Lommel
dcea2800a7 Fix file editor not properly scaling with DPI, this was not implemented yet.
Still todo is high resolution file icons as they look a bit pixelated now.
2013-02-12 17:09:02 +00:00
Brecht Van Lommel
e1419a5bea Fix #34126: report list memory leak when calling operator from python and the
operator context poll failing.
2013-02-12 16:04:58 +00:00
Brecht Van Lommel
cdb8e39565 Fix for own multilayer EXR fix, should not have caused any issues might as well
make sure it works if this function gets called from other places.
2013-02-12 15:58:06 +00:00
Ton Roosendaal
58a6f07649 Bug fix #34213 (2)
Adding non-RGBA float buffers as texture crashes MipMap code.
Images with less than 4 channels not supported (yet). Not sure
if we ever should even... normals, Z, vectors, UV, Index, all
don't like downsampling.
2013-02-12 15:51:05 +00:00
Sergey Sharybin
6886ad2680 Preview image render was missing image buffer release
Reported by Ton in IRC, thanks! Was hunting this one for ages!
2013-02-12 15:49:48 +00:00
Brecht Van Lommel
4f1cf94259 Fix render layer previous/next buttons not respecting DPI. 2013-02-12 14:59:00 +00:00
Brecht Van Lommel
5354998a21 Fix #34213: crash loading openexr multilayer with use alpha disabled. 2013-02-12 14:58:58 +00:00
Sergej Reich
c3c4ef3c6f rigidbody: No need to update mass when changing rigid body type 2013-02-12 14:45:59 +00:00
Sergej Reich
92b6a54e50 rigidbody: Don't cancel add operator if rigid body already exists
In some cases objects might have rigid bodies but aren't in the rigid
body group, just add objects to the group then.

Also allow changing the rigid body type by using the add acive/passive
buttons. This avoids having to remove objects just to change type.
2013-02-12 14:45:57 +00:00
Sergej Reich
ca0e18f88b rigidbody: Clean up wm notifiers in rigid body operators
Remore group notifiers, they're already sent by add/remove group operators.
Add pointcache notifiers.

Fixes UI not being updated properly in some cases.
2013-02-12 14:45:55 +00:00
Ton Roosendaal
7dbce1930a Reports #34042 and #33749
Tweak for new option for Relative Bone parenting
(which transforms child object based on rest pose, so you can change bones 
in editmode to define pivot)

In the original commit it was made default, but that was too invisble for
users. Now it's an option in the Make Parent menu to choose. Communicates
a new feature better.
2013-02-12 14:42:46 +00:00
Sergey Sharybin
7c3ce049ed Fix incorrect display of Sequence layer when rendering animation and
float/byte render results were mixed.
2013-02-12 11:45:16 +00:00
Campbell Barton
42feb45c5f report [#33731] Fastorigin addon crashes on mesh.update()
add a warning when python leaves the modified mesh without calling bmesh.update_edit_mesh()s.
this doesn't fix the crash but points to the likely cause.
2013-02-12 11:04:52 +00:00
Campbell Barton
ddf1d987e5 fix for own commit r54482, PROP_DISTANCE was being checked for by radial control operator. now allow PROP_NONE and treat it as a distance. 2013-02-12 10:33:04 +00:00
Sergey Sharybin
261295180c Fix #34209: Texture preview in brush settings does not update
Was a regression since Cycles preview implementation.

Texture preview would be fine now if Blender Internal render is used,
but seems it's not impossible to support textures preview if Cycles
is set as render engine.

Would check on this a bit further.
2013-02-12 10:07:37 +00:00
Bastien Montagne
027a426c4d Add translation of stats/info string. 2013-02-12 07:32:17 +00:00
Joshua Leung
63d9ace6b8 Added a missing space (between separator and face count in object mode) 2013-02-12 06:24:58 +00:00
Campbell Barton
86793fec42 fix [#34198] Scene unit size and dyntopo detail size
there were 2 bugs here.
- int buttons scaling values on input but not on display.
- pixel distances were using PROP_DISTANCE subtype - which isn't correct.

added assert incase PROP_INT values have PROP_DISTANCE subtype applied in future.
2013-02-12 05:09:35 +00:00
Campbell Barton
631f49d128 fix for own regression [#34096] ocean sim vertex color bug
Caused by my assumption that alpha wasn't used for vertex colors.

Infact it is used by blender-internal rendering, but typically only for blending strand particles.
Updated comments to note this.
2013-02-12 01:52:55 +00:00
Campbell Barton
5eec86c6b2 fix [#34203] Editing bones, parenting, blender quits
'Set Inverse' was mixing up pose/object constraints
2013-02-12 01:20:14 +00:00
Campbell Barton
533f359c0d code cleanup: some style edits, also allow mul_v2_m2v2() to have the same value as in-out, since this is a convention for existing matrix functions. 2013-02-12 00:35:31 +00:00
Antony Riakiotakis
fcbd9c3a33 Old bug fix: Uv smart stitch failed to detect angle if islands were
rotated close to 180 degrees and there were edges both below and above
the 180 degree threshhold. Separating and averaging the negative and
positive angles seems to solve the issue making the tool a bit more
robust ;)
2013-02-11 22:52:13 +00:00
Gaia Clary
eb9c3f6aec [#34062] Collada: fixed redundant transform information and order of creation for the loc/rot/trans 2013-02-11 22:45:48 +00:00
Gaia Clary
3dfd736d45 Fix: Collada Import of armatures only added the root bone 2013-02-11 20:21:10 +00:00
Bastien Montagne
b063bdbb5f Please stop adding points in tooltips, unless it is absolutely necessary! Commas, parenthesis, en quads, etc., do exist!
I took time to add basics about our UI messages conventions in blender code style guide (http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#UI_Messages), so I’d like to stop wasting time over such stupid things. Especially when I alredy did it one day ago!
2013-02-11 18:47:06 +00:00
Mitchell Stokes
8997e5ae06 BGE: Fix for issue #32606 "Raycasts are locked to the scene of calling object" reported by Josiah Lane (solarlune). The raycasting functions were using the active scene instead of the object's scene. 2013-02-11 18:29:19 +00:00
Campbell Barton
7c5e72460a fix [#34169] dynamic paint bake from python + command line = segfault 2013-02-11 15:48:43 +00:00
Campbell Barton
a867fbf026 check for divide by zero for dynamic paint modifier. 2013-02-11 15:43:09 +00:00
Campbell Barton
5da828317a error in own recent commit 2013-02-11 15:35:38 +00:00
Miika Hamalainen
203301e26e Additional smoke fix for r54464: floating point precision still sometimes produced way too high values. Now values are also clamped within correct range. 2013-02-11 15:03:22 +00:00
Miika Hamalainen
1647725913 Fix: smoke simulator flow sometimes produced NaN values, causing fire to disappear from the simulation. 2013-02-11 13:28:18 +00:00
Sergey Sharybin
7fcc1ac48b Implemented delayed partial rect update for image buffers
Used by image painting mode, so every brush step would mark area
if affected on, but actual color space conversion would happen
later when actually displaying image.

Implemented as a rcti stored in ImBuf which is getting merged with
partial rect passed to IMB_partial_display_buffer_update_delayed.

This makes painting as fast as it currently possible and finally
solves #33935: Texture painting slow down with mouse, but not with tablet
2013-02-11 13:24:35 +00:00