Commit Graph

47594 Commits

Author SHA1 Message Date
Sergey Sharybin
677f519ca5 Bugfix IRC report
Curves heavily scaled down will have render artifacts

Caused by precision issues when computing average normal map
for INDEX3 surface type. Now calculation happens in local object
space instead of world space.
2012-12-16 11:47:13 +00:00
Campbell Barton
dc7a138830 correct bad comment 2012-12-16 10:28:52 +00:00
Brecht Van Lommel
e114459ba3 Fix region overlap drawing over render info text in image editor and 3d view. 2012-12-16 09:37:15 +00:00
Campbell Barton
9a469b62ca replace strcpy with BLI_strncpy or memcpy when the size is known. 2012-12-16 08:43:05 +00:00
Joshua Leung
db4d342223 Bugfix #33541 - Deleting all keyframes leaves dangling action groups
When deleting all keyframes in F-Curves, the corresponding F-Curves are deleted.
If all the F-Curves in an action group were deleted in such a way, the group
wouldn't be removed. This meant that these groups would never be shown (until
F-Curves for these groups were created again), but would still exist, causing
problems when trying to rearrange groups in the animation editors (i.e. groups
would appear to not move). Now these groups get deleted when they get empty.
2012-12-16 06:30:17 +00:00
Campbell Barton
950fb66c38 replace TypeError with Value error for matrix operations where the type is right but it can't succeed because of a property of the instance (normally the wrong col/row size). 2012-12-16 04:10:57 +00:00
Campbell Barton
1886ae38b4 add Matrix.normalized(), handy for transforming normals. 2012-12-16 04:05:16 +00:00
Campbell Barton
48935ac3b5 error in 53006, moved into another keymap rather then just re-ordering. 2012-12-16 02:53:28 +00:00
Ove Murberg Henriksen
635099fdbc Reverting rev 53044 because it broke something and was wrong.
I also added comment to avoid this happening in the future.
2012-12-16 02:29:46 +00:00
Ove Murberg Henriksen
a837d9a896 Fixing name of a function to be consistent with the rest of the code. 2012-12-15 23:52:39 +00:00
Ove Murberg Henriksen
8ec289739e Changed some comments to make more sense. 2012-12-15 22:47:57 +00:00
Ove Murberg Henriksen
0ac1424264 Bugfix: [#33513] Transfer weights mixing up.
Removal of this line fixed the bug. 

But!

I suspect it opens up for an excaption.
I will try to identify the exception and handle it in a different way.
2012-12-15 20:32:32 +00:00
Ove Murberg Henriksen
114459e7f6 Pure style cleanup. 2012-12-15 19:56:25 +00:00
Ton Roosendaal
ce08127caf Bugfix, IRC submitted:
Color Pickers, square versions, didn't draw the 'cursor' correctly.
Was missing colorprofile check.
2012-12-15 18:12:38 +00:00
Brecht Van Lommel
468a6aba62 Attempted fix #33546: GPU mipmap generation is not working on some ATI cards,
causing textures to be missing in textured draw mode. There is apparently a bug
in the ATI drivers, committed a workaround for that now.

http://www.opengl.org/wiki/Common_Mistakes#Automatic_mipmap_generation
2012-12-15 17:15:42 +00:00
Ton Roosendaal
91c5f4a7b4 Cleanup:
Removed unused panel colors (and panel text) from Themes.
2012-12-15 16:35:00 +00:00
Campbell Barton
2681cc66a5 minor edits with recent commits, also avoid calling BKE_mesh_from_object() in vertex paint, just pass the mesh. 2012-12-15 16:31:25 +00:00
Ton Roosendaal
695468a3b9 Finished themes for transparent Button regions in Blender.
Notes and image:
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability

- now each editor has own settings for "show panel header" and
  "show panel background", and colors+alpha for this.

- this setting used to be global for all editors, but it can conflict
  with looks of specific editors. 

- Now you can set for editors to show panels with a 100% transparent
  tool/properties region. 

Note: read XML theme files now might get an error, Campbell will fix.
2012-12-15 16:22:18 +00:00
Campbell Barton
c26746ccec use struct type for VPaintData.vertexcosnos rather then float*. 2012-12-15 16:13:27 +00:00
Campbell Barton
a6bee579e9 move pbvh into BKE, it used many BKE bad level includes.
now blenlib/BLI doesn't depend on any blenkern/BKE functions,
there are still some bad level includes but these are only to access G.background and the blender version define.
2012-12-15 15:59:25 +00:00
Campbell Barton
21a9fa9089 move bpath module from BLI to BKE, it was making many bad level calls into BKE. 2012-12-15 15:31:50 +00:00
Jens Verwiebe
f98c2c936c OSX/availability: use of the numerical value instead of the symbol in the #if MAC_OS_X_VERSION_MIN_REQUIRED comparison clause: If the code is loaded on an older system that does not include the symbol definition, the comparison still works 2012-12-15 11:15:05 +00:00
Ton Roosendaal
11f2348383 Graah! Not using brains for quick fixes... 2012-12-15 11:00:57 +00:00
Ton Roosendaal
1ab3edb108 Classical mistake - fix a bug in 1 feature, but don't test the related ones :/
Previous commit broke dragging area edges.
2012-12-15 10:53:35 +00:00
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
Bastien Montagne
03d67be98d Remove the "ID" stuff from top comments. 2012-12-14 18:57:55 +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
Bastien Montagne
cf7fba6ace Removed 'svn:keywords' and 'svn:mime-type' properties from source/blender/freestyle files. 2012-12-14 18:40:20 +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
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
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
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