Commit Graph

30129 Commits

Author SHA1 Message Date
Benoit Bolsee
b5bd86e590 svn merge -r 37212:37306 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2011-06-07 21:20:25 +00:00
Benoit Bolsee
9de407f13f sync addons and tests with trunks 2011-06-07 20:34:23 +00:00
Campbell Barton
7fd1fe9fc8 draw sequences with invalid effect frame ranges pink to highlight they are invalid and wont render. 2011-06-07 18:34:33 +00:00
Campbell Barton
299602b360 fix for vertex group copy to selected
- was using un-initialized stack memory if the source / target object had no vertex group.
- if the target object had no vertex groups it would fails silently (not a bug but not very good functionality)
- added an error message if any copying fails.
2011-06-07 18:04:03 +00:00
Campbell Barton
d16c1f3665 fix for sequencer transform with effects strips where the effects could be moved to invalid times to avoid overlap but would immediately refresh back to overlapping locations after. 2011-06-07 16:47:25 +00:00
Campbell Barton
e44ae2c2a9 disable the readonly state while rna property callbacks run. 2011-06-07 16:08:49 +00:00
Ton Roosendaal
53939ee4e9 Fix: correct spacing for file select items, using font size + dpi. 2011-06-07 15:33:01 +00:00
Campbell Barton
9c8cc9fe60 rna option not to save certain properties for redoing later, currently only used by operator presets. 2011-06-07 10:54:57 +00:00
Campbell Barton
3cd3cc892f fix for edge slide snapping values being incorrect (reported by Nether Hound).
Also dont call the value a 'Percent' and clamp the range displayed in the header.
snap range being
2011-06-07 09:35:20 +00:00
Campbell Barton
617a08162f update ctest md5sums for import/export to match changes to the scripts, also some minor formatting change for bpy_props.c 2011-06-07 08:47:33 +00:00
Campbell Barton
8ae4476fc4 getting useful results out of the round compo node was tricky, use the second value to determine how much to round by (can be used like a posterize filter) 2011-06-07 08:16:42 +00:00
Campbell Barton
044ae5e3c8 error pointed out by Jeroen Bakker with the math nodes round function. was incorrectly using the output rather then the input. 2011-06-07 07:57:26 +00:00
Campbell Barton
82a0461361 fix for glitch in previous commit with 0.00002 displaying as 0.000020, this uses 2 calls to double_round which I'd rather avoid but at least it now works right for users. 2011-06-07 05:26:10 +00:00
Campbell Barton
06c3756db8 smarter precision calculation, so 0.000001 isn't displayed as 0.00.
there is a minor problem with this commit:
 0.00001 --> 0.00001 # good
 0.000015 --> 0.000015 # good
 0.0000199 --> 0.00002 # ok
 0.00002 --> 0.000020 # wrong, has trailing 0

Tried to fix this but the case is hard to check for without more calculations which Id like to avoid.
2011-06-07 04:06:10 +00:00
Campbell Barton
34b0c217f8 Move UI float precission calculation into its own function. 2011-06-07 02:39:40 +00:00
Antony Riakiotakis
474d9c0274 A line of code -can- wreck your day. Should work now, :) 2011-06-06 23:19:25 +00:00
Antony Riakiotakis
b481524fde fix for float projection painting, now updating correctly.
This fix also allows for partial update of the image, speeding up painting. 
The different code path implemented will be used to upload high resolution images to OpenGL when onion branch is merged.
Due to conversion of float textures to/from sRGB, corrections made to brush color sampling to take account of the image profile. This is not 100% correct yet as texture images used for projection painting strokes are not converted to/from sRGB yet(This has been decided due to loss of precision for 8-bit formats). It will have to do for now, though.

last-minute update, exr image loading is broken, will fix asap
2011-06-06 22:10:05 +00:00
Brecht Van Lommel
9088b69f7a UI: fix render properties panel order, it didn't match order in startup.blend,
so was different when opening a new property editor.
2011-06-06 20:04:58 +00:00
Brecht Van Lommel
841c988179 UI: rename mesh Settings panel to Texture Space, since it only contains
settings related to that. Also close by default.
2011-06-06 19:44:28 +00:00
Sergey Sharybin
13dbae76e6 One more debug line was deleted from multires bakers.
Now it would work really fast.
2011-06-06 19:33:38 +00:00
Sergey Sharybin
fff0592738 Fix for new baker and float images. Also removed code used for debugging. 2011-06-06 19:06:44 +00:00
Ton Roosendaal
5fca1aa323 2.5 todo:
User setting "DPI" now works for outliner too.
(todo: color picker, brush menu, nodes, fileselect path buttons, view2d sliders, ...)
2011-06-06 18:04:57 +00:00
Campbell Barton
8cee328546 Support for update callbacks in python defined RNA properties as discussed last meeting.
This means script authors can perform actions using these callbacks rather then on drawing which puts blender in a readonly state.

Simple example:

import bpy
def up_func(self, context):
    print("test")

bpy.types.Scene.testprop = bpy.props.FloatProperty(update=up_func)
bpy.context.scene.testprop = 11

# prints -> test
2011-06-06 17:50:20 +00:00
Campbell Barton
0c1298f972 avoid cd'ing with the makefile stub 2011-06-06 16:00:32 +00:00
Brecht Van Lommel
4d254f23ca Keymaps: fix keymap items created in python being added with the python
operator names instead of the internal names. This wasn't really noticeable,
expect that it broke automatically looking up shortcuts for display in menus.
2011-06-06 13:35:43 +00:00
Thomas Dinges
111b0bf698 2.5 Text Editor:
* Added back Red Alert for "Resolve External conflicts" warning.
2011-06-06 12:52:26 +00:00
Campbell Barton
fc6dcdf17f bug [#27582] Screen Editing > Split and Join area don't work.
added 'INTERNAL' operator flag so operators which are only meant to be called by other operators or internal use are not displayed to the user.

Currently only use this flag for the operator search toolbox, is ignored in debug mode.
2011-06-06 11:56:54 +00:00
Sergey Sharybin
a43309e8d4 Added cancel callbacks to modal operators which allocates memory
in invoke callback. This prevents unfreed memory blocks when quiting
Bledner with modal operator running.
2011-06-06 11:04:54 +00:00
Campbell Barton
4d0026f7b9 fix for 2D paint being off by 1 pixel on x/y axis, most obvious when zoomed in. 2011-06-06 10:08:27 +00:00
Campbell Barton
6a1e74418c use the same stippled drawing for colorband background as alpha color swatches, with low DPI would look squashed, also use the same colors for both. 2011-06-06 09:12:03 +00:00
Campbell Barton
2f5c7623b0 fix/workaround [#27559] Color picker fails with a very small brush
fade out small brushes so the brush wont interfere with the color directly under the cursor.
2011-06-06 08:43:17 +00:00
Campbell Barton
7b9eabb6f2 fix from nico_ga on IRC, building on MSVC with jack but not ffmpeg. 2011-06-06 08:40:47 +00:00
Campbell Barton
e8bc3fe0e3 object-mode lattice bounds were not taken into account when calculating min/max.
effected view-selected, center-origin & local view.
2011-06-06 07:29:57 +00:00
Campbell Barton
e55833a094 fix [#27572] Mirror Shapekey and Mirror vertex Group not working for Lattice. 2011-06-06 06:40:09 +00:00
Campbell Barton
dd4f0f0b9d Resolve 2 theme issues
[#27056] default active and selected colors need to be visually different
[#27584] Please change sharpness/seam color
2011-06-06 03:53:22 +00:00
Campbell Barton
7c9d76199c spelling corrections 2011-06-06 00:48:10 +00:00
Campbell Barton
e4bb5403d3 fix for crash opening the file selector twice with multiple windows open (when the mouse was over the inactive window). 2011-06-06 00:42:36 +00:00
Dalai Felinto
7da45bcbcb replacing -> arrows by proper ASCII arrows on Transformation Constraint
Note: Text Editor doesn't support this chr(187) properly. I hardcoded and commented the ui file. I hope it's fine.
2011-06-05 23:38:11 +00:00
Matt Ebb
5922b69501 Fix [#27438] Volume Material Density Inaccuracy
Lower density limit for shading optimisation was set too high
2011-06-05 22:35:37 +00:00
Sergey Sharybin
a1c22262fe Bake from multires mesh
=======================

Added option to baked named "Bake From Multires" which is avaliable for
normals baking and displacement baking.

If this option is enabled, then no additional hi-res meshes and render
structures would be created . This saves plenty of memory and meshes
with millions of faces could be successfully baked in few minutes.

Baking happens from highest level against viewport subdivision level,
so workflow is following:
  - Set viewport level to level at which texture would be applied
    during final rendering.
  - Choose Displacement/Normals baking.
  - Enable "Bake From Multires" option.
  - You're ready to bake.

Displacement baker had aditional option named "Low Resolution Mesh".
This option is used to set if you want texture for realtime (games)
usage.

Internally it does the following:
  - If it's disabled, displacement is calculated from subdivided
    viewport level, so texture looks "smooth" (it's how default
    baked works).
  - If it's enabled, dispalcement is calculated against unsubdivided
    viewport levels. This leads to "scales". This isn;t useful for
    offline renders much, but very useful for creating game textures.

Special thanks to Morten Mikkelsen (aka sparky) for all mathematics
and other work he've done fr this patch!
2011-06-05 20:54:04 +00:00
Nick Samarin
5ceb8b3d35 synched with trunk at revision 37212 2011-06-05 18:51:00 +00:00
Jason Wilkins
a580b5ec80 fixed warning, signed/unsigned mismatch, blo/readfile.c line 1742 2011-06-05 18:00:24 +00:00
Campbell Barton
68a3303013 operator buttons get a red highlight when alert is set for the layout 2011-06-05 17:02:57 +00:00
Campbell Barton
68d4c64db8 own commit r37199 gave problems with duplicating objects, use different fix. 2011-06-05 15:29:50 +00:00
Campbell Barton
08f44adba9 file selector now scales with DPI better 2011-06-05 14:00:06 +00:00
Campbell Barton
56befd2666 colorband and image header were ignoring DPI size 2011-06-05 13:20:30 +00:00
Ton Roosendaal
485a89f5d3 Bugfix: new DPI-controlled UI size code was setting 'view2d re-init'
flag on ED_area_initialize(). This however was causing 2 problems;
- the view state got reset (popping window view back)
- the view2d operator polls failed (sliders didnt work)

This re-init was only needed for the headers though, limiting it
to these types of regions solves it.
2011-06-05 12:57:09 +00:00
Campbell Barton
619df86fad panel headers were not scaling with DPI properly 2011-06-05 12:47:17 +00:00
Campbell Barton
24292793a0 scale the file selector UI with the DPI, the region size can still be wrong though. 2011-06-05 10:05:13 +00:00
Campbell Barton
1d236097ab workaround for supremely annoying UI glitch where you could accidentally hide the file selector header by accident.
using the logic - that a header taking up the full screen-area height will not have an action-zone added for resizing.
2011-06-05 09:22:14 +00:00