Commit Graph

43504 Commits

Author SHA1 Message Date
Brecht Van Lommel
ec85a4370f UI DPI: use a sharper filter when scaling icons, when the scale matches a mipmap
level, this has no effect, it's for the zoom levels in between. There's a
tradeoff here between blurring and aliasing, I think this looks better.

Before: http://www.pasteall.org/pic/show.php?id=42090
After: http://www.pasteall.org/pic/show.php?id=42091
2012-12-19 12:51:43 +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
Ton Roosendaal
1dbb84c1c9 UI DPI scaling fix:
2D views with scale prints (numbers over slider) now follow the text size.
2012-12-19 12:22:15 +00:00
Bastien Montagne
0d00741bf5 Sync (ui) names between composite node files and rna nodetree types (Pixelate was even missing from RNA!)
We really need Luckas' work, maintaining those two different stuff is completely stupid! :)
2012-12-19 11:56:10 +00:00
Ton Roosendaal
a970991da6 Icon scaling fix: for zoom levels near 1, icon positions are moved to exact pixel
locations. Makes default headers and menus always crisp.
2012-12-19 11:55:41 +00:00
Campbell Barton
56bfd3235c fix [#33616] Documentation not matching the behaviour of bmesh.utils
incorrect api docs
2012-12-19 11:18:08 +00:00
Bastien Montagne
10fdfb54b5 Minor enhancements to end message of build_deps.sh 2012-12-19 11:07:10 +00:00
Ton Roosendaal
bc9bbb02db Outliner "restrict" buttons (visibility, renderable, etc) were drawing in wrong size.
Made them appear blurry.
2012-12-19 11:03:59 +00:00
Brecht Van Lommel
a4cb186df5 DPI: icons were still drawing with color fringing when scaled up/down, opengl
texture needs to be premul alpha for correct results.
2012-12-19 10:12:58 +00:00
Bastien Montagne
0a1f8ada34 Minor fix 2012-12-19 09:50:31 +00:00
Campbell Barton
2cb39ea9da use BM_face_create() over BM_face_create_ngon() in bevel and extrude individual faces to get some speedup. 2012-12-19 09:45:56 +00:00
Campbell Barton
fbf4f57cd6 bmesh optimization: use BM_face_create() rather then BM_face_create_ngon() in BM_mesh_copy(), gives ~30% overall speedup in my tests. 2012-12-19 09:13:06 +00:00
Sergey Sharybin
62988549a1 Multirs baker: support for threaded baking 2012-12-19 08:13:41 +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
Campbell Barton
5837c7f092 fix error in recent addition - reporting property changes, setting None would crash. 2012-12-19 06:41:19 +00:00
Campbell Barton
192e00b0c9 code cleanup: use interp_v3_v3v3() 2012-12-19 04:59:47 +00:00
Campbell Barton
1f3e3b0d68 include cleanup 2012-12-19 04:49:32 +00:00
Campbell Barton
3134407c48 code cleanup: remove unneeded include's and rename some static functions in text_format_py.c 2012-12-19 04:23:02 +00:00
Campbell Barton
f43923d86d generalize formatting code so different formatters can be registered and each has their own source file,
Since we will likely have OSL formatting added soon.
2012-12-19 04:02:19 +00:00
Mitchell Stokes
bfde24a368 Fixing some messed up comments from r53146 and changing a C++ style comment in C code to a C style comment (from r53152). 2012-12-19 02:15:33 +00:00
Campbell Barton
acfe74351b improve info view property output for properties.
- Include RNA properties when checking for matches.
- Don't include the context's property store (these are normally set by the UI code and not accessible by a script author)

Note: added CTX_data_dir_get_ex() which has options for returning different members from the context.
2012-12-19 02:08:58 +00:00
Campbell Barton
0ddc77f913 code cleanup: warnings 2012-12-19 01:48:54 +00:00
Campbell Barton
2349370a51 fix for typo in r53145 2012-12-19 01:42:28 +00:00
Campbell Barton
efc75018d7 yet another fix-for-fix, missing NULL check in id_us_ensure_real() 2012-12-19 01:28:00 +00:00
Campbell Barton
f6c5a72e3f fix [#33606] Adding the Decimate modifier will crash Blender
own regression since 2.65 release.
2012-12-19 01:24:12 +00:00
Mitchell Stokes
f10dea7e3b BGE: Removing the VBO raster_storage option from the UI. 2012-12-18 21:19:15 +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
Brecht Van Lommel
6b2af22d37 DPI: fix wrong scaling of editor type choosing buttons, and for menu arrows
overlapping or being too close to icons in small buttons.
2012-12-18 20:00:52 +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
Bastien Montagne
7e56e5ac94 Adding "build_options" to bpy.app, a frozenset containing strings matching optional feature's build defines (like 'FFMPEG', 'MOD_BOOLEAN', 'INTERNATIONAL', etc.) for all enabled elements.
Note I tried to select all interesting defines, but this might be extended if needed...
2012-12-18 18:02:20 +00:00
Sergey Sharybin
979de84def Made motion tracking data aware of DPI in clip editor.
Also synchronized tracking dopesheet channels height/spacing with fcurve dopesheet.
2012-12-18 17:47:05 +00:00
Sergey Sharybin
debe07d9e4 Fix #33586: Encoding to mpeg4 makes first frame(s) blocky
Issue was caused by rc_initial_buffer_occupancy being set for context
Commented this option for now -- it's not used in ffmpeg.c.

Now encoding seems to be working nice for MPEG4 and other codecs as well.

However, if there're some gurus around please check :)
2012-12-18 17:46:59 +00:00
Sergey Sharybin
460a961975 Multires baker: made octree aware of user-defined resolution in performance panel 2012-12-18 17:46:54 +00:00
Sergey Sharybin
9e2b1900a8 Multires baker: noneed to tag display as invalid after every flushed pixel 2012-12-18 17:46: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
Sergey Sharybin
6b3e880311 Move multires baker into own file in render/
Currently will only keep object editor a bit clearer, but in
the future will be needed because of using some internal renderer
data structures.
2012-12-18 17:46:26 +00:00
Campbell Barton
e0d585b6c9 fix for crash in recent changes, missing NULL check 2012-12-18 17:06:31 +00:00
Campbell Barton
63731453e2 make sure color picker and color swatch buttons have rnaindex of -1.
Some were 0 some -1, but this messed up reporting - making it think that only red was being changed for each button.
2012-12-18 17:00:49 +00:00
Campbell Barton
27796a34b1 fix for crash in own commit - happend when changing userprefs. 2012-12-18 16:52:46 +00:00
Campbell Barton
54bab21ca0 use 'bpy.context' when printing properties in the info window. 2012-12-18 16:20:30 +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
Campbell Barton
5fcb12d754 changing RNA properties now prints python script in the info view.
next will add context so bpy.data.xxx[id] are not used for all references.
2012-12-18 15:22:06 +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
Brecht Van Lommel
f91eefcc62 Fix region expander (+) drawing too narrow. 2012-12-18 14:55:51 +00:00
Lukas Toenne
615d90b6e2 Class method 'get_node_type' for node RNA types. This can be used to map RNA types and Python classes to the associated node type by means of the node type identifier. 2012-12-18 14:49:32 +00:00
Brecht Van Lommel
c21c4b0774 Fixes for ctrl+click on panel header:
* It collapsed panels in other tabs too
* Ctrl + click next to the panel header still caused panels do be collapsed
* Ctrl + Return over panel header now works as well
2012-12-18 14:46:00 +00:00
Campbell Barton
957604f895 functions to make a string representation of a property & assignment. 2012-12-18 14:11:19 +00:00
Brecht Van Lommel
2a657345c7 Fix #33600: copying objects with point caches did not copy the external,
disk cache and lib path settings.
2012-12-18 14:05:54 +00:00
Ton Roosendaal
9c90cf3ca4 Nicer function for drawing text in 3d window:
ED_region_visible_rect(ar, rect)
Returns the visible rect inside a region, subtracting the overlapping UI regions.

Added with minimal overhead, only called once per region draw.

Also fixes the 'Auto Key' warning print in 3d window (was behind properties)
2012-12-18 13:59:47 +00:00