Commit Graph

43320 Commits

Author SHA1 Message Date
Bastien Montagne
ab2c273b12 Added GPL header to sconscripts!
Also changed shebang to '#!/usr/bin/env python', this is more portable across unixes...
2012-12-17 08:01:43 +00:00
Campbell Barton
c92dd5fa40 bpy/rna api: add support for classmethods.
So RNA can expose functions from the type, eg:
  bpy.types.Objects.some_function()
2012-12-17 06:58:19 +00:00
Campbell Barton
18cb2d208c code cleanup: use 'const float *' when getting the 3d cursor and not editing it. 2012-12-17 05:38:50 +00:00
Campbell Barton
9ac713bdb5 missed this recent commit, while drawing grease pencil, draw if 'Render Only' is on. 2012-12-17 05:36:00 +00:00
Campbell Barton
fe006c0426 don't draw the sequencer grease pencil panel when in the channel view or scopes.
also don't draw grease pencil over scopes.
2012-12-17 04:44:39 +00:00
Campbell Barton
519378fca6 patch [#33441] Remove unneeded strcpy()'s from makesdna.c 2012-12-17 02:46:30 +00:00
Campbell Barton
f9ec10688a fix [#33501] Grease pencil in OpenGL render
With the view3d 'Render Only' option, grease pencil wouldn't draw, but for OpenGL render it did.

Since grease pencil can be very useful in opengl renders, enable grease pencil drawing with 'Render Only' option in the viewport,
and add a checkbox in the grease pencil header not to draw (unchecking each layer is annoying and applies to all spaces).
2012-12-17 02:34:53 +00:00
Campbell Barton
bc0e1211de fix [#33551] End Caps on a curve array with subsurf crashes blender when entering Edit Mode
DM_to_bmesh_ex could merge a 'dm' into an existing BMesh, in that case CD_ORIGINDEX values needed to be set to ORIGINDEX_NONE.
2012-12-17 00:39:03 +00:00
Howard Trickey
f596cb2721 Fix knife cut-through bug #33571.
The code to connect across a face didn't stop after it found one.
2012-12-17 00:31:59 +00:00
Miika Hamalainen
c5e46863a2 Fix [#33565]: Dynamic Paint modifier surfaces not copied
Dynamic Paint canvas surfaces were not copied with modifier.
2012-12-16 19:19:45 +00:00
Ton Roosendaal
7b5784e37c Test print in bugfix... 2012-12-16 14:50:50 +00:00
Campbell Barton
9a2290cf5f fix for bevel using the wrong property name when shift was held. 2012-12-16 14:22:48 +00:00
Ton Roosendaal
7965b6995e Bug fix 33563
Region sizex/sizey should store the actual used sizes, for hide/reveal.
Didn't happen correctly, resulting in opening button regions of size 1.
2012-12-16 14:19:29 +00:00
Campbell Barton
54787a8855 fix own error [#33529] Bevel on a certain edgeloop results in segmentation fault
relied on edges having a loop, now use overlap apiflag instead.
2012-12-16 14:17:15 +00:00
Ton Roosendaal
0514299331 Bugfix #33458
Tooltips in Blender were not scaling when zooming in/out on UI elements.
(They did follow DPI though, but tooltips were in a 'global' fixed size).

Error was that for tooltips on large scaled popups (like in Node editor)
the drawing was entirely wrong even.

Now tooltips scale correctly, also for fonts.
2012-12-16 13:31:56 +00:00
Brecht Van Lommel
a0855a95db Cycles: add "Textures" panel in particle properties, to make it possble to add
textures when Cycles is selected as render engine.
2012-12-16 12:55:52 +00:00
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
Campbell Barton
dd582e0308 set compositor background scale to 1.0 2012-12-16 09:41:39 +00:00
Brecht Van Lommel
176292067e Cycles OSL: small optimization to geometry node, tangent output still was
not properly optimized out in some cases.

For reference, setting this will give detailed information about OSL shaders:
export OSL_OPTIONS="statistics:level=1,debug=1,llvm_debug=1"
2012-12-16 09:37:32 +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
5310961523 update themes 2012-12-16 05:48:27 +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
Brecht Van Lommel
caf2324d56 Fix cycles build error with OSL disabled. 2012-12-15 20:43:25 +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
Jens Verwiebe
b0edc38856 OSX: makeKeyAndOrderFront would show window from orderedWindows list on every loop, so use makeKeyWindow only to avoid flicker when closing app 2012-12-15 18:32:53 +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
722999e6d0 Better tooltip for "Install Theme..." 2012-12-15 16:27:12 +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
Brecht Van Lommel
06888b7beb Cycles OSL minor optimizations: recycle shading context, don't do memory
allocations for trace data, avoid some virtual function calls. Only helps
a few percentages.
2012-12-15 10:18:42 +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