Commit Graph

6100 Commits

Author SHA1 Message Date
Ton Roosendaal
566d350369 UI todo:
- Recoded soft shadow drawing for menus, giving better predictable results
  (and round off nicer on top side, was looking bad still)
- Brought it under DPI control
- Added Theme setting to control size and strength for it.

Max size 24 pix:
http://wiki.blender.org/index.php/File:MenuShadow.png
2012-12-20 16:50:39 +00:00
Campbell Barton
0e3d637ad0 Change region drawing callbacks to work much closer to how blender manages them internally.
- yes, this does break scripts, but the api is marked experimental.


ED_region_draw_cb_activate() adds a callback to a region type whereas the api made it look like the callback was being added to the region instance.
Use a class method on bpy.types.Space to manage region drawing, eg.

was:
  self._handle = context.region.callback_add(draw_callback_px, args, 'POST_PIXEL')

is now:
  self._handle = bpy.types.SpaceView3D.draw_handler_add(draw_callback_px, args, 'WINDOW', 'POST_PIXEL')
2012-12-20 13:29:58 +00:00
Ton Roosendaal
80bcc20835 Updated icon svg and bitmaps. Now has the movieclip editor again :) 2012-12-20 12:56:46 +00:00
Campbell Barton
423994bf39 py api: add restrict state context manager (thats python's context not blenders context),
which restricts bpy.context and bpy.data.

enable this for loading scripts in 'startup' too.
2012-12-20 03:56:22 +00:00
Campbell Barton
3bc3e178b3 style cleanup 2012-12-20 00:29:31 +00:00
Bastien Montagne
be67de7cab More tweaks to WeighVG icon 2012-12-19 16:48:06 +00:00
Campbell Barton
17c5c9935c icon update [#33448] Adding Vector Sources for Icons
from:	Blender ICONS - v.2.5.08 (GPL).svg

also updated the shell script.
2012-12-19 14:57:01 +00:00
Sergey Sharybin
cdb6aad54c Multires baker: renamed Number of Rays to Samples after discussion with Brecht 2012-12-19 12:30:39 +00:00
Campbell Barton
ef665b3d18 dissallow access to the context while addons import and register.
Since the window manager is needed for keymaps this is kept as an exception.

some addons will need updating, but in every case I've seen addons should not be accessing the context while registering.
(bad stuff! - declaring the scene as a global variable - which crashes when the users loads a new file, manipulating the active object or scene... tsk tsk)
2012-12-19 07:27:23 +00:00
Mitchell Stokes
ef0473994b BGE: Some as of yet unmerged work I did in the Swiss branch. These changes include:
* Cleaning up the conversion code to avoid a per-face material conversion. Materials are now stored in buckets and only converted if a new material is found. This replaces some of Campbell's earlier work on the subject. His work wasn't as thorough, but it was much safer for a release.
  * Shaders are only compiled for LibLoaded materials once. Before they could be compiled twice, which could really slow things down.
  * Refactoring the rasterizer code to use a strategy design pattern to handle different geometry rendering methods such as immediate mode, vertex arrays and vertex buffer objects. VBOs are added, but they will be disabled in a following commit since they are still slower than vertex arrays with display lists. However, VBOs are still useful for mobile, so it's good to keep them around.
  * Better multi-uv support. The BGE should now be able to handle more than two UV layers, which should help it better match the viewport.
2012-12-18 20:56:25 +00:00
Ton Roosendaal
8168fba972 Icons now draw good again!
- Exported via Inkscape a 16 and 32 pixel bitmap version
- Use these as mipmap levels for OpenGL texture drawing.
- Changed code to get right sizes for drawing icons - better than last week's method.

Todo:

- Custom icons don't work yet (old one)
- Missing icons in the svg
- The .sh script for inkscape needs changed to support this
  (now do manual saving)
2012-12-18 19:35:54 +00:00
Bastien Montagne
edf826d924 Various minor fixes to i18n code (mostly, translation of enum items' tooltips was wrongly bound to iface option, not tooltips one, and recent changes in r53119 were incorectly using BLF_pgettext, made them simpler by using CTX_IFACE_ macro).
Also fixed CTX_FOO_ macros when building without i18n, those were kinda wrong.

And hid i18n ui section in userpreferences when built without its support too.
2012-12-18 18:25:48 +00:00
Sergey Sharybin
6571713ddb Ambient occlusion baker from multi-resolution mesh
This implements AO baking directly from multi-resolution mesh with much
less memory overhead than regular baker.

Uses rays distribution implementation from Morten Mikkelsen, raycast
is based on RayObject also used by Blender Internal.

Works in single-thread yet, multi-threading would be implemented later.
2012-12-18 17:46:42 +00:00
Brecht Van Lommel
ae15de6816 Fix part of #33469: cloth preroll had a wrong tooltip and low limit of 200 frames. 2012-12-18 15:44:04 +00:00
Ton Roosendaal
3c2b5e7fc0 Blender icons now are in the 21st century too!
Default size for bitmap now is 32x32 pixels. Code change for higher densities is easy,
all under review. Let's first check this!
2012-12-18 15:10:54 +00:00
Luke Frisken
fa617f1d2a Fixed operator_modal_view3d_raycast.py template so that it uses hit points in world space to give correct selection. Also set selected object to active. 2012-12-18 10:43:06 +00:00
Bastien Montagne
b7e3967134 Adding Amharic (i.e. ethiopic) language. 2012-12-18 09:13:04 +00:00
Bastien Montagne
9064f0cb51 Adding Amharic (i.e. ethiopic) glyphs. 2012-12-18 09:03:21 +00:00
Bastien Montagne
c1976dfd28 Added WeightVG modifier icon to svg file (and tried enhance it slightly). 2012-12-18 08:50:22 +00:00
Bastien Montagne
cfd6282a80 Minor update to i18n spell check stuff... 2012-12-17 20:32:25 +00:00
Campbell Barton
dd582e0308 set compositor background scale to 1.0 2012-12-16 09:41:39 +00:00
Campbell Barton
5310961523 update themes 2012-12-16 05:48:27 +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
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
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
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
60800669d5 patch [#33448] Adding Vector Sources for Icons
add additional icons to the svg.
2012-12-13 23:18:38 +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
Campbell Barton
97bea740f8 svg source files from jendrzych, v. 2.5.06
split SVG in two to match the PNG's.

Original URL: http://pixel-sized.blogspot.nl/2012/05/two-years-of-absence-here.html#more
2012-12-13 11:54:39 +00:00
Campbell Barton
b83f105588 update themes for added alpha channel 2012-12-13 10:29:31 +00:00
Campbell Barton
15634fd22e fix for sequence size mismatch when loading themes, addition of alpha channel caused themes not to load. 2012-12-13 09:46:24 +00:00
Alex Fraser
9a848c1a9d Can now set a lower bound on the number of subframes (i.e. an upper bound on the time step size) for fluid simulations. Previously, the "subframes" parameter was not available when the adaptive time step was enabled; now they can both be set. The two settings can be used together to greatly increase simulation stability. 2012-12-12 22:42:55 +00:00
Ton Roosendaal
12b642062c Holiday coding log :)
Nice formatted version (pictures soon):
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability

Short list of main changes:

- Transparent region option (over main region), added code to blend in/out such panels.
- Min size window now 640 x 480
- Fixed DPI for ui - lots of cleanup and changes everywhere. Icon image need correct size still, layer-in-use icon needs remake.
- Macbook retina support, use command line --no-native-pixels to disable it
- Timeline Marker label was drawing wrong
- Trackpad and magic mouse: supports zoom (hold ctrl)
- Fix for splash position: removed ghost function and made window size update after creation immediate
- Fast undo buffer save now adds UI as well. Could be checked for regular file save even...
  Quit.blend and temp file saving use this now.
- Dixed filename in window on reading quit.blend or temp saves, and they now add a warning in window title: "(Recovered)"
- New Userpref option "Keep Session" - this always saves quit.blend, and loads on start.
  This allows keeping UI and data without actual saves, until you actually save.
  When you load startup.blend and quit, it recognises the quit.blend as a startup (no file name in header)
- Added 3D view copy/paste buffers (selected objects). Shortcuts ctrl-c, ctrl-v (OSX, cmd-c, cmd-v). 
  Coded partial file saving for it. Could be used for other purposes. Todo: use OS clipboards. 
- User preferences (themes, keymaps, user settings) now can be saved as a separate file.
  Old option is called "Save Startup File" the new one "Save User Settings".
  To visualise this difference, the 'save startup file' button has been removed from user preferences window. That option is available as CTRL+U and in File menu still.
- OSX: fixed bug that stopped giving mouse events outside window.
  This also fixes "Continuous Grab" for OSX. (error since 2009)
2012-12-12 18:58:11 +00:00
Campbell Barton
3c4df7dd20 style cleanup: also change node selection method not to compare nodes a lot. 2012-12-12 15:41:15 +00:00
Lukas Toenne
6a6bede3f6 A few basic Python operators for adding nodes in the node editor tree. These operators basically have the same functionality as the 'Add' menu (which currently does not even use operators itself). They can be used in customized tools.
The node_add_move operator is an extended variant which starts the (modal) transform operator right after adding a node, as a quicker way of inserting nodes in a tree.
2012-12-12 12:50:43 +00:00
Sergey Sharybin
dd0e554d9e Sequencer: add textured solid option for opengl preview 2012-12-12 12:42:12 +00:00
Sv. Lockal
dd2d54bae9 Use own list of actions for Vertex Group Lock operator instead of reusing Select All actions.
Previous actions and descriptions were confusing, e. g. UnLock All used the description of Deselect All.
2012-12-12 10:21:24 +00:00
Brecht Van Lommel
cb2ad513bb Splash template XCF file for Gimp. 2012-12-11 08:01:05 +00:00
Sergey Sharybin
e1100cb655 Fix for maya keymap 2012-12-10 14:06:57 +00:00
Brecht Van Lommel
cc551ed218 Splash screen for 2.65, created by Jordan Schur. 2012-12-10 14:01:08 +00:00
Campbell Barton
7376fb2913 make cppcheck run with quiet flag when QUIET env var is set, make bpy.ops.image.project_apply() only use local images. 2012-12-09 14:17:33 +00:00
Campbell Barton
22505c10f8 fix [#33442] Units
adding meshes were scaling the user input values so the distance on the button didnt relate to the scale of the object added.

Now use an invoke function that scales unset default values.
2012-12-09 10:48:18 +00:00
Campbell Barton
a20a0ce7c7 console auto-complete button looked silly when aligned against a menu. 2012-12-09 05:18:56 +00:00
Campbell Barton
7b9adab594 fix [#33431] Impossible to add "None" string to a property 2012-12-08 09:43:02 +00:00
Campbell Barton
7c64de3eb8 update themes with update_themes.py 2012-12-08 02:16:17 +00:00