Commit Graph

43273 Commits

Author SHA1 Message Date
Ton Roosendaal
35dd893c36 Bugfix, irc collection:
With larger header sizes (via DPI setting), splitting an area horizontally (using
left-bottom corner widget, move up) stopped immediate after split, not allowing 
to drag it to a position.

Culprit was code to check minimum header size, and area operator using the same
flags. Now ScrVert has two flags - one for internal use, one for the tools to set.
2012-12-15 09:45:34 +00:00
Campbell Barton
81d240c8c8 avoid using strlen() for comparisons in for loops. for expanding whitespace in the text editor and ui paste. 2012-12-15 07:57:16 +00:00
Campbell Barton
34b7495523 prevent the text 3d cursor from z-fighting with the text. 2012-12-15 06:12:40 +00:00
Campbell Barton
11ffc7f5c2 remove modifiers_indexInObject(), just call BLI_findindex directly. 2012-12-15 05:46:41 +00:00
Campbell Barton
865b547b44 add checks to style checker script for 'a . b' and 'a []'
also use BLI_findindex for modifiers_indexInObject
2012-12-15 04:44:10 +00:00
Campbell Barton
cc32540c48 style cleanup: stop the style checker script from complaining about '!*ptr' 2012-12-15 02:48:25 +00:00
Erwin Coumans
1b37f8dca8 Hi there, it has been a while, just curious if my SVN account still works :)
This commit is an attempt to improve collisions between moving Bullet rigid bodies using (concave) triangle mesh bounds.
Instead of using Gimpact, this we create a btCompoundShape with child shape tetrahedra derived from the surface triangles.
For each triangle, we add a fourth vertex using the centroid, shifting inwards using the triangle normal.
If the centroid hits an internal triangle, we stop. The default depth could be exposed as 'advanced' setting in the user interface.
This solution will be a slower than the original/gimpact solution, but a bit more reliable. 
In the future, it is better to add HACD, convex decomposition to Blender, for moving concave meshes.
See http://kmamou.blogspot.com and the Bullet SDK's Demos/ConvexDecompositionDemo.
2012-12-15 01:01:35 +00:00
Antony Riakiotakis
96f6a5cf20 Restoring default theme made the panel regions opaque again. 2012-12-14 23:20:11 +00:00
Antony Riakiotakis
defaf1d028 initialize static island colour display on reverting to default theme 2012-12-14 22:39:03 +00:00
Brecht Van Lommel
1e6f6e8780 Fix #33539: shift+numpad 2/4/8 shortcuts for zoom in image and clip editor
don't work in Windows. These shortcuts are taken by the operating system,
so ctrl+numpad 2/4/8 now work as well and are the shortcuts shown in menus.
2012-12-14 22:08:19 +00:00
Brecht Van Lommel
071a43f754 Fix #33497: seting object scale to 0 on one axis made moving verts in edit mode
impossible. In this case matrix inversion failed and didn't give a useful result.
Now it falls back to a pseudoinverse in that case, so that moving along the
other axes still works.

There may be other places that can benefit from this, but this is a place where
it has no significant performance impact, doing this in general for e.g. bone
matrices could be quite slow.
2012-12-14 21:41:22 +00:00
Brecht Van Lommel
f1d487d1c4 Fix mac build error with SDK < 10.7, this version is not then defined then as
pointed out by Patrick Boelens on the mailing list.
2012-12-14 20:56:14 +00:00
Ton Roosendaal
073669dd85 Bug fix, irc submitted:
On saving a first .blend after startup, the file would load back as if it was not
saved (showing no name in header). 

The whole FILEFLAGS and G.relabase_valid and G.file_saved etc is messy.
This commit fixes issues, but only adds more mess :)

Will discuss a nicer implementation of all of this.
2012-12-14 18:54:22 +00:00
Campbell Barton
da7ce6a3cc use UI_view2d_getscale() to get the scale for image cursor drawing and ED_mask_pixelspace_factor(). - was getting the image width/height when its not needed before. 2012-12-14 16:51:02 +00:00
Campbell Barton
bb26d80ad8 code cleanup and move alternate shell calculation method into its own function: BM_vert_calc_shell_factor_ex 2012-12-14 16:10:46 +00:00
Campbell Barton
e5407ef8d9 workaround for ndof events showing in view3d menu items. (add before other keys, eventually we may want to have some kind of priority here) 2012-12-14 16:09:31 +00:00
Brecht Van Lommel
0f5b5bb5f1 Cycles: make "Open Shading Language" a boolean toggle, the other option "GPU Compatible" was confusing. 2012-12-14 15:26:49 +00:00
Campbell Barton
16003d2738 commands to convert svg-to-png as shell scripts (just for convenience), and center prvicons.svg so the resulting image is sized properly. 2012-12-14 15:17:53 +00:00
Ton Roosendaal
0990c84f3f Fixes for correct UI scaling display:
- Move to layer (and more popups) didn't scale yet
- User Prefs and render window now open on right location on Mac Retinas
- Brush sizes for painting now scale for Mac Retina
2012-12-14 15:09:59 +00:00
Thomas Dinges
fec6b9d89d Blender Internal / Texture UI:
* Ocean Texture was not in alphabetical order.
2012-12-14 14:59:16 +00:00
Sergey Sharybin
e00e649063 SCons: clean up code which was commented out since 2007 2012-12-14 12:06:24 +00:00
Sergey Sharybin
7fe2ac8e9a SCons; cleanup linux-config.py from using deprecated libraries from svn
This was already done for CMake and mentioning this paths in scons only
messes things up.
2012-12-14 12:06:09 +00:00
Brecht Van Lommel
4961b2a789 Fix #33532: vertex paint subtract mode was broken, always resulting in black. 2012-12-14 12:00:59 +00:00
Sergey Sharybin
edabf35aff Fix #33530: Blender Crash when selecting "Point select mode" in Particle Mode with and 0 hairs object 2012-12-14 09:47:05 +00:00
Campbell Barton
d38881706c add back a key to access view-cursor (alt+home) 2012-12-14 09:40:32 +00:00
Sergey Sharybin
f9f53ca728 Fix #33526: Bezier Curve Tilt in transform panel does not work beyond 360 degrees
No need to clamp tilt value in transform panel, til beyond 360 degrees works
fine and clamping it in panel lead to some unexpected behavior.
2012-12-14 09:29:05 +00:00
Sergey Sharybin
dbe158f0bb Fix #33525: Mask points are add offset for the mouse when adding on viewer node with aspect != 1
It was strange logic in code from 2010 which forced image aspect to be 1 for
viewer nodes and render results.

Not sure why it's needed, was only used for unwrapping aspect correction,
but render result/viewer images are already handled differently there.
2012-12-14 09:19:13 +00:00
Jens Verwiebe
3d99ba125f OSX/nativePixel: fix compile for OSX < 10.7 2012-12-14 08:48:48 +00:00
Campbell Barton
20846bee03 correct scrollbars not working properly with DPI in the console/info view. 2012-12-14 08:05:56 +00:00
Campbell Barton
48661fd663 tweaks to text selection and highlight drawing. 2012-12-14 06:12:04 +00:00
Campbell Barton
30c365908a code cleanup: minor edits to the console. 2012-12-14 05:27:53 +00:00
Alex Fraser
f276b3a3cd Adding a new SPH solver that is more physically accurate. See patch #29681
http://projects.blender.org/tracker/index.php?func=detail&aid=29681&group_id=9&atid=127

The solver was mostly implemented by John Mansour at VPAC, with help from me and with funding from the AutoCRC. The SPH formulation is due to Gingold and Monaghan, and the smoothing kernel is due to Wendland.

This solver does not replace the old one; it is available as an option. Note that the new solver uses different units than the old one. The patch page has a couple of attachments that can be used to test the new solver, particularly sphclassical_dam_s0.01_grav.blend (ignore the earlier tests). The simulation in that file compares well with a physical experimental dam break; details in a paper by Changhong Hu and Makoto Sueyoshi, also referred to on that page.
2012-12-14 04:57:26 +00:00
Campbell Barton
5e9ee25328 style cleanup 2012-12-14 04:38:52 +00:00
Campbell Barton
b8d89be64c UV Warp Modifier:
Based on patch [#30837] UV Offset Modifier
by Pawel Kowal (pkowal)

- Allows you to setup a transformation between objects to apply to UV coords.
- Option to select which axis apply to U/V.
- Option to select the UV center (needed for transformations that scale or rotate).
- Uses from/to objects in a similar way to the Warp modifier.
- Vertex group can be used to adjust influence.
2012-12-14 04:07:30 +00:00
Joshua Leung
455693a6ea SVG Icons: Frame Next/Prev (used for Motion Tracker controls) 2012-12-14 01:52:08 +00:00
Joshua Leung
31ee55ef23 SVG Icons: Back to screen icon 2012-12-14 01:40:09 +00:00
Joshua Leung
370c0ce09f SVG Icons - Ported over some of the animation related icons
* Made SVG versions of the NLA solo (star) icons. These are much nicer than the hack 'n slash bitmap versions, but could still do with some polish. The svg is too heavy to do fine tweaks here.

* Ported over the mute/graph-visible icons
* Recreated Drivers icon

* Moved Blender icon from AD1/DA1 to AD16/DA16, as per the trunk icon sheet
2012-12-14 01:34:11 +00:00
Campbell Barton
566af58e1c add assert if both args to invert_m4_m4 are the same. 2012-12-14 00:49:55 +00:00
Campbell Barton
60800669d5 patch [#33448] Adding Vector Sources for Icons
add additional icons to the svg.
2012-12-13 23:18:38 +00:00
Sergey Sharybin
fd755d2550 Fix #33522: Crash when "rotate arond selection" is on, and when no object in scene
Own regression in recent fix
2012-12-13 20:07:16 +00:00
Ton Roosendaal
ae2a9a6e7a Bug fix, irc report:
Overlapping regions, when you both want them on the same side they should not overlap
each other! (Try F5 on a region to flip position).

Code for subdivision is in need for some cleanup - a branching recursion is needed.
2012-12-13 17:43:12 +00:00
Sergey Sharybin
1d18a77019 Fix for using active scene instead of actually changed one in some RNA callbacks 2012-12-13 17:12:00 +00:00
Sergey Sharybin
d4cd823912 SCons: added static libs path for OIIO, OCIO and Boost
This should make it easier to write user-config.py

Still not sure how to deal with OSL and LLVM in a nice way, they're currently
using some hacks which didn't support specifying this libraries as static.
2012-12-13 16:55:54 +00:00
Ton Roosendaal
28cd603140 Bugfix - own collection.
Very occasionally Timer Events could still get handled, after stopping
a timer - especially with the timer event still in the queue.

This patch disables such events. Introduced a EVENT_NONE to make sure
it gets ignored everywhere.
2012-12-13 16:21:08 +00:00
Antony Riakiotakis
02689df6c0 Part of bratwurst GSOC cleanup of subsurf unwrap code: Ommit subsurf
level in the operator and use the modifier level and subdivision type
instead. Using subsurf only makes sense if the modifier is first so
print an warning and turn off if this is not the case.
2012-12-13 14:33:14 +00:00
Ton Roosendaal
d06876f45a Bugfix, IRC report
(Error in 2.65 release too)

Mac OS X: on closing Blender, it 'flashed', which appeared to be a white window opening
and closing quickly. Caused by code trying to send focus to another opened window, and
accidentally focusing the closed one - causing it to reopen.
2012-12-13 14:25:15 +00:00
Ton Roosendaal
c12a1368ff Feature fix:
Upgraded version to 2.65.1, and check on this to map default region backgrounds
to have an alpha 0.5. This only worked until now for 2.64 savedi startups.
2012-12-13 13:20:01 +00:00
Campbell Barton
b120e649f2 remove unrelated text 2012-12-13 12:52:12 +00:00
Jens Verwiebe
8bd94b0af3 OSX: add plist key High Resolution Capable 2012-12-13 12:46:11 +00:00
Ton Roosendaal
a63f0d320b Bugfix [#33511]
Overlapping regions: when dragging the region to close them, it started the blending
timer - which of course is not meant to happen.
2012-12-13 12:17:57 +00:00