8 years agoBGE: Adding a Python interface for handling joysticks without needing logic bricks...
Mitchell Stokes [Fri, 21 Dec 2012 02:28:59 +0000 (02:28 +0000)]
BGE: Adding a Python interface for handling joysticks without needing logic bricks. These new SCA_PythonJoystick objects can be accessed using bge.logic.joysticks, which is a list of joysticks. The length of the list is the number of maximum supported joysticks, and indexes that do not have a joystick available are set to None. This means joysticks can be checked for using something like:

if bge.logic.joysticks[0]:

if bge.logic.joysticks[1]:


The interface exposed by SCA_PythonJoystick is very similar to the joystick logic brick except for one key difference: axis values are normalized to a -1.0 to 1.0 range instead of -32767 to 32767, which is what the logic brick exposed.

8 years agominor cleanup to ui_get_but_vectorf / ui_set_but_vectorf, change the vector with...
Campbell Barton [Fri, 21 Dec 2012 00:11:45 +0000 (00:11 +0000)]
minor cleanup to ui_get_but_vectorf / ui_set_but_vectorf, change the vector with one function call if its size 3.

8 years agoCycles: reduce memory usage of instanced objects by about 40%, as long as the
Brecht Van Lommel [Thu, 20 Dec 2012 19:26:57 +0000 (19:26 +0000)]
Cycles: reduce memory usage of instanced objects by about 40%, as long as the
motion vector pass is not enabled.

8 years agoUI fixes, from the todo:
Ton Roosendaal [Thu, 20 Dec 2012 19:18:46 +0000 (19:18 +0000)]
UI fixes, from the todo:

- Button panel animation didn't work for 3D View properties and similar regions.
- Akey on View3d overlapping panel: was accidentally passed on as event to the main window.

8 years agoBugfix, irc collection:
Ton Roosendaal [Thu, 20 Dec 2012 18:18:09 +0000 (18:18 +0000)]
Bugfix, irc collection:

Copy/Paste from and to color swatches now includes alpha.
Buttons without alpha have this value on '1' on copy.

8 years agoRestored old hack to open/close panels on A-key.
Ton Roosendaal [Thu, 20 Dec 2012 18:04:06 +0000 (18:04 +0000)]
Restored old hack to open/close panels on A-key.
Notes in code:

- This has to become a decent handler
- Actually "A" should open/close all?

Currently, Enter key does open/close too, but only on headers.
This because Enter on a button gets handled by buttons... that's
why the Akey was proposed :)

8 years agoSmall fix in drawing 'selection circle' in outliner. It wasn't circular.
Ton Roosendaal [Thu, 20 Dec 2012 17:40:30 +0000 (17:40 +0000)]
Small fix in drawing 'selection circle' in outliner. It wasn't circular.

8 years agoUI todo:
Ton Roosendaal [Thu, 20 Dec 2012 16:50:39 +0000 (16:50 +0000)]
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:

8 years agoBetter cursor centering for text editor
Sergey Sharybin [Thu, 20 Dec 2012 16:37:07 +0000 (16:37 +0000)]
Better cursor centering for text editor

8 years agoFix #33630: DDS compressed textures were not actually using mipmaps for minification.
Brecht Van Lommel [Thu, 20 Dec 2012 15:49:59 +0000 (15:49 +0000)]
Fix #33630: DDS compressed textures were not actually using mipmaps for minification.

8 years agoFix #33629: DDS DXT5 with alpha not loaded correctly, Y flipping code was wrong.
Brecht Van Lommel [Thu, 20 Dec 2012 15:45:42 +0000 (15:45 +0000)]
Fix #33629: DDS DXT5 with alpha not loaded correctly, Y flipping code was wrong.

8 years agoBug fix:
Ton Roosendaal [Thu, 20 Dec 2012 14:45:56 +0000 (14:45 +0000)]
Bug fix:

Laptop trackpad scroll was inverted for 3d window.
Now movement is consistent among editors and follows system prefs.

8 years agoChange region drawing callbacks to work much closer to how blender manages them inter...
Campbell Barton [Thu, 20 Dec 2012 13:29:58 +0000 (13:29 +0000)]
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.

  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')

8 years agoUpdated icon svg and bitmaps. Now has the movieclip editor again :)
Ton Roosendaal [Thu, 20 Dec 2012 12:56:46 +0000 (12:56 +0000)]
Updated icon svg and bitmaps. Now has the movieclip editor again :)

8 years agoBug fix #28915 and #33538
Ton Roosendaal [Thu, 20 Dec 2012 12:01:15 +0000 (12:01 +0000)]
Bug fix #28915 and #33538

Mac OS X trackpad and 'mighty mouse' fix.

An old commit from Damien in 2010 tried to make mighty mouse touches work as if
this is a scrollwheel. The error in that code was that the "kinetic scrolling"
feature failed. When releasing your fingers, the events passed on to Blender
then switched from "trackpad pan" to "mousewheel zoom".

This commit makes trackpads and mighty mouse behave identical. Only difference
is that trackpad panning needs 2 fingers, mighty mouse only one.

Note that trackpad and mighty mouse 3d zoom works with holding ctrl!

All works nice with this kinetic feature now. Fun :)

8 years agoMac Retina fix:
Ton Roosendaal [Thu, 20 Dec 2012 11:14:52 +0000 (11:14 +0000)]
Mac Retina fix:

Mouse coordinates were not mapped correctly for code that allows to use
multiple windows efficiently (mouse over not-active windows).

Apple's high-density display mode works a bit strange, requiring some hacks :/

- Desktop coordinate system (mouse pos and for windows) is as usual
  (set by display resolution settings)
- However, the available pixels in a window is always on 'retina' level.
  (full screen - 2880 wide, but window can be 1440 or 1920 wide)

In order to get this to work for opengl and Blender, we use internally the
coordinates on pixel level. That means that window positions and sizes have
to mappend in our code.

Once all issues for retinas have been tackled, I'll check on clean API for
it, so you can also use it in future for other high density screens.

8 years agoCamera tracking: synchronize changes with own branch
Sergey Sharybin [Thu, 20 Dec 2012 11:03:39 +0000 (11:03 +0000)]
Camera tracking: synchronize changes with own branch

Should be no functional changes.

8 years agoMake the get_node_type method in Node subtype an actual classmethod by setting the...
Lukas Toenne [Thu, 20 Dec 2012 09:49:15 +0000 (09:49 +0000)]
Make the get_node_type method in Node subtype an actual classmethod by setting the new FUNC_USE_SELF_TYPE flag.

8 years agoAssociate Node RNA subtypes with their respective bNodeType on registration. This...
Lukas Toenne [Thu, 20 Dec 2012 09:49:11 +0000 (09:49 +0000)]
Associate Node RNA subtypes with their respective bNodeType on registration. This has to be done in blenkernel, since RNA node types are actually registered before the node types. Future dynamic node types registered using the API will register their own explicit RNA types and don't need this hack.

8 years agoSupport for actual class methods in the RNA/bpy. Previously all functions with FUNC_N...
Lukas Toenne [Thu, 20 Dec 2012 09:33:12 +0000 (09:33 +0000)]
Support for actual class methods in the RNA/bpy. Previously all functions with FUNC_NO_SELF were treated as static methods, which is not sufficient for getting actual type information if the function can not be generated in advance in makesrna. Now the FUNC_USE_SELF_TYPE flag can be set in addition to FUNC_NO_SELF (if FUNC_NO_SELF is not set, FUNC_USE_SELF_TYPE has no effect). Such functions will be interpreted as class methods and must take a StructRNA pointer argument. This pointer is the same as the type member in PointerRNA, but can be passed without an actual data/id instance.

8 years agoScons / Windows Release Builds:
Thomas Dinges [Thu, 20 Dec 2012 08:54:37 +0000 (08:54 +0000)]
Scons / Windows Release Builds:
* Don't put -release- string into the final .exe name.
blender-2.65-release-windows32.exe --> blender-2.65-windows32.exe

8 years agoadd a comment
Morten Mikkelsen [Thu, 20 Dec 2012 05:07:14 +0000 (05:07 +0000)]
add a comment

8 years agomust use permutation table
Morten Mikkelsen [Thu, 20 Dec 2012 05:03:00 +0000 (05:03 +0000)]
must use permutation table

8 years agopy api: add restrict state context manager (thats python's context not blenders context),
Campbell Barton [Thu, 20 Dec 2012 03:56:22 +0000 (03:56 +0000)]
py api: add restrict state context manager (thats python's context not blenders context),
which restricts bpy.context and

enable this for loading scripts in 'startup' too.

8 years agoadd a test to the addons loaded that tries to load all addons then lists addons that...
Campbell Barton [Thu, 20 Dec 2012 03:10:30 +0000 (03:10 +0000)]
add a test to the addons loaded that tries to load all addons then lists addons that fail.

8 years agopy api: be more strict with boolean assignment, only accept 0 or 1, True/False. Would...
Campbell Barton [Thu, 20 Dec 2012 03:08:27 +0000 (03:08 +0000)]
py api: be more strict with boolean assignment, only accept 0 or 1, True/False. Would allow any nonzero value.

8 years agostyle cleanup
Campbell Barton [Thu, 20 Dec 2012 00:29:31 +0000 (00:29 +0000)]
style cleanup

8 years agoCycles OSL: diffuse_toon and specular_toon closures. These are toon shaders with
Brecht Van Lommel [Wed, 19 Dec 2012 21:17:16 +0000 (21:17 +0000)]
Cycles OSL: diffuse_toon and specular_toon closures. These are toon shaders with
a size parameter between 0.0 and 1.0 that gives a angle of reflection between
0° and 90°, and a smooth parameter that gives and angle over which a smooth
transition from full to no reflection happens.

These work with global illumination and do importance sampling of the area within
the angle. Note that unlike most other BSDF's these are not energy conserving in
general, in particular if their weight is 1.0 and size > 2/3 (or 60°) they will
add more energy in each bounce.


8 years agoAnimation system small fix:
Ton Roosendaal [Wed, 19 Dec 2012 18:36:20 +0000 (18:36 +0000)]
Animation system small fix:

On browsing actions in DopeSheet editor, the animation state didn't update.

8 years agoMore tweaks to WeighVG icon
Bastien Montagne [Wed, 19 Dec 2012 16:48:06 +0000 (16:48 +0000)]
More tweaks to WeighVG icon

8 years agoAnother patch for changes in file format...
Ton Roosendaal [Wed, 19 Dec 2012 16:45:47 +0000 (16:45 +0000)]
Another patch for changes in file format...

- Since 2.50, the .blends have the current file name stored
- In versions up to 2.65.0 this didn't save for files saved from startup
  (i.e. files saved without loading a file)

Code now adds the file name after all, except for recovery loads.

8 years agoBugfix, in 2.61.1
Ton Roosendaal [Wed, 19 Dec 2012 16:16:20 +0000 (16:16 +0000)]
Bugfix, in 2.61.1

Overlapping regions now hide automatic when too little space is left.

8 years agoUI DPI scaling:
Ton Roosendaal [Wed, 19 Dec 2012 15:44:47 +0000 (15:44 +0000)]
UI DPI scaling:

Recoded the (2.65.1 version) region scale, which happened on loading files with
different saved size windows. Also scaling window itself was affected.

Old method: scaled region widths based on area/editor scaling factors.
That was leading to too small or too large button regions easily.

New method: region width/height now are in DPI control. Much nicer!
- On changing dpi, buttons remain visually same widths.
- On changing window sizes, the button views and zooms stick to exactly same.

Caveat: people who were using Blender with 'extreme' dpi setting, might find
the layouts slightly differ. Not sure if this is worth version patching...

Todo: overlapping regions that overlap together draw badly. Fix underway.

8 years agouse DPI for scrollbar width
Campbell Barton [Wed, 19 Dec 2012 15:22:39 +0000 (15:22 +0000)]
use DPI for scrollbar width

8 years agoextrude individual was crashing.
Campbell Barton [Wed, 19 Dec 2012 15:15:00 +0000 (15:15 +0000)]
extrude individual was crashing.

8 years agopatch [#33306] Default file format: PNG, 90%
Campbell Barton [Wed, 19 Dec 2012 15:02:51 +0000 (15:02 +0000)]
patch [#33306] Default file format: PNG, 90%

8 years agoicon update [#33448] Adding Vector Sources for Icons
Campbell Barton [Wed, 19 Dec 2012 14:57:01 +0000 (14:57 +0000)]
icon update [#33448] Adding Vector Sources for Icons
from: Blender ICONS - v.2.5.08 (GPL).svg

also updated the shell script.

8 years agoChange version char to 'a'.
Sergey Sharybin [Wed, 19 Dec 2012 14:02:50 +0000 (14:02 +0000)]
Change version char to 'a'.

8 years agoUI DPI: use a sharper filter when scaling icons, when the scale matches a mipmap
Brecht Van Lommel [Wed, 19 Dec 2012 12:51:43 +0000 (12:51 +0000)]
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.


8 years agoMultires baker: renamed Number of Rays to Samples after discussion with Brecht
Sergey Sharybin [Wed, 19 Dec 2012 12:30:39 +0000 (12:30 +0000)]
Multires baker: renamed Number of Rays to Samples after discussion with Brecht

8 years agoUI DPI scaling fix:
Ton Roosendaal [Wed, 19 Dec 2012 12:22:15 +0000 (12:22 +0000)]
UI DPI scaling fix:

2D views with scale prints (numbers over slider) now follow the text size.

8 years agoSync (ui) names between composite node files and rna nodetree types (Pixelate was...
Bastien Montagne [Wed, 19 Dec 2012 11:56:10 +0000 (11:56 +0000)]
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! :)

8 years agoIcon scaling fix: for zoom levels near 1, icon positions are moved to exact pixel
Ton Roosendaal [Wed, 19 Dec 2012 11:55:41 +0000 (11:55 +0000)]
Icon scaling fix: for zoom levels near 1, icon positions are moved to exact pixel
locations. Makes default headers and menus always crisp.

8 years agofix [#33616] Documentation not matching the behaviour of bmesh.utils
Campbell Barton [Wed, 19 Dec 2012 11:18:08 +0000 (11:18 +0000)]
fix [#33616] Documentation not matching the behaviour of bmesh.utils

incorrect api docs

8 years agoMinor enhancements to end message of
Bastien Montagne [Wed, 19 Dec 2012 11:07:10 +0000 (11:07 +0000)]
Minor enhancements to end message of

8 years agoOutliner "restrict" buttons (visibility, renderable, etc) were drawing in wrong size.
Ton Roosendaal [Wed, 19 Dec 2012 11:03:59 +0000 (11:03 +0000)]
Outliner "restrict" buttons (visibility, renderable, etc) were drawing in wrong size.
Made them appear blurry.

8 years agoDPI: icons were still drawing with color fringing when scaled up/down, opengl
Brecht Van Lommel [Wed, 19 Dec 2012 10:12:58 +0000 (10:12 +0000)]
DPI: icons were still drawing with color fringing when scaled up/down, opengl
texture needs to be premul alpha for correct results.

8 years agoMinor fix
Bastien Montagne [Wed, 19 Dec 2012 09:50:31 +0000 (09:50 +0000)]
Minor fix

8 years agouse BM_face_create() over BM_face_create_ngon() in bevel and extrude individual faces...
Campbell Barton [Wed, 19 Dec 2012 09:45:56 +0000 (09:45 +0000)]
use BM_face_create() over BM_face_create_ngon() in bevel and extrude individual faces to get some speedup.

8 years agobmesh optimization: use BM_face_create() rather then BM_face_create_ngon() in BM_mesh...
Campbell Barton [Wed, 19 Dec 2012 09:13:06 +0000 (09:13 +0000)]
bmesh optimization: use BM_face_create() rather then BM_face_create_ngon() in BM_mesh_copy(), gives ~30% overall speedup in my tests.

8 years agoMultirs baker: support for threaded baking
Sergey Sharybin [Wed, 19 Dec 2012 08:13:41 +0000 (08:13 +0000)]
Multirs baker: support for threaded baking

8 years agodissallow access to the context while addons import and register.
Campbell Barton [Wed, 19 Dec 2012 07:27:23 +0000 (07:27 +0000)]
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)

8 years agofix error in recent addition - reporting property changes, setting None would crash.
Campbell Barton [Wed, 19 Dec 2012 06:41:19 +0000 (06:41 +0000)]
fix error in recent addition - reporting property changes, setting None would crash.

8 years agocode cleanup: use interp_v3_v3v3()
Campbell Barton [Wed, 19 Dec 2012 04:59:47 +0000 (04:59 +0000)]
code cleanup: use interp_v3_v3v3()

8 years agoinclude cleanup
Campbell Barton [Wed, 19 Dec 2012 04:49:32 +0000 (04:49 +0000)]
include cleanup

8 years agocode cleanup: remove unneeded include's and rename some static functions in text_form...
Campbell Barton [Wed, 19 Dec 2012 04:23:02 +0000 (04:23 +0000)]
code cleanup: remove unneeded include's and rename some static functions in text_format_py.c

8 years agogeneralize formatting code so different formatters can be registered and each has...
Campbell Barton [Wed, 19 Dec 2012 04:02:19 +0000 (04:02 +0000)]
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.

8 years agoFixing some messed up comments from r53146 and changing a C++ style comment in C...
Mitchell Stokes [Wed, 19 Dec 2012 02:15:33 +0000 (02:15 +0000)]
Fixing some messed up comments from r53146 and changing a C++ style comment in C code to a C style comment (from r53152).

8 years agoimprove info view property output for properties.
Campbell Barton [Wed, 19 Dec 2012 02:08:58 +0000 (02:08 +0000)]
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.

8 years agocode cleanup: warnings
Campbell Barton [Wed, 19 Dec 2012 01:48:54 +0000 (01:48 +0000)]
code cleanup: warnings

8 years agofix for typo in r53145
Campbell Barton [Wed, 19 Dec 2012 01:42:28 +0000 (01:42 +0000)]
fix for typo in r53145

8 years agoyet another fix-for-fix, missing NULL check in id_us_ensure_real()
Campbell Barton [Wed, 19 Dec 2012 01:28:00 +0000 (01:28 +0000)]
yet another fix-for-fix, missing NULL check in id_us_ensure_real()

8 years agofix [#33606] Adding the Decimate modifier will crash Blender
Campbell Barton [Wed, 19 Dec 2012 01:24:12 +0000 (01:24 +0000)]
fix [#33606] Adding the Decimate modifier will crash Blender

own regression since 2.65 release.

8 years agoBGE: Removing the VBO raster_storage option from the UI.
Mitchell Stokes [Tue, 18 Dec 2012 21:19:15 +0000 (21:19 +0000)]
BGE: Removing the VBO raster_storage option from the UI.

8 years agoBGE: Some as of yet unmerged work I did in the Swiss branch. These changes include:
Mitchell Stokes [Tue, 18 Dec 2012 20:56:25 +0000 (20:56 +0000)]
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.

8 years agoDPI: fix wrong scaling of editor type choosing buttons, and for menu arrows
Brecht Van Lommel [Tue, 18 Dec 2012 20:00:52 +0000 (20:00 +0000)]
DPI: fix wrong scaling of editor type choosing buttons, and for menu arrows
overlapping or being too close to icons in small buttons.

8 years agoIcons now draw good again!
Ton Roosendaal [Tue, 18 Dec 2012 19:35:54 +0000 (19:35 +0000)]
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.


- 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)

8 years agoVarious minor fixes to i18n code (mostly, translation of enum items' tooltips was...
Bastien Montagne [Tue, 18 Dec 2012 18:25:48 +0000 (18:25 +0000)]
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.

8 years agoAdding "build_options" to, a frozenset containing strings matching optional...
Bastien Montagne [Tue, 18 Dec 2012 18:02:20 +0000 (18:02 +0000)]
Adding "build_options" to, 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...

8 years agoMade motion tracking data aware of DPI in clip editor.
Sergey Sharybin [Tue, 18 Dec 2012 17:47:05 +0000 (17:47 +0000)]
Made motion tracking data aware of DPI in clip editor.

Also synchronized tracking dopesheet channels height/spacing with fcurve dopesheet.

8 years agoFix #33586: Encoding to mpeg4 makes first frame(s) blocky
Sergey Sharybin [Tue, 18 Dec 2012 17:46:59 +0000 (17:46 +0000)]
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 :)

8 years agoMultires baker: made octree aware of user-defined resolution in performance panel
Sergey Sharybin [Tue, 18 Dec 2012 17:46:54 +0000 (17:46 +0000)]
Multires baker: made octree aware of user-defined resolution in performance panel

8 years agoMultires baker: noneed to tag display as invalid after every flushed pixel
Sergey Sharybin [Tue, 18 Dec 2012 17:46:48 +0000 (17:46 +0000)]
Multires baker: noneed to tag display as invalid after every flushed pixel

8 years agoAmbient occlusion baker from multi-resolution mesh
Sergey Sharybin [Tue, 18 Dec 2012 17:46:42 +0000 (17:46 +0000)]
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.

8 years agoMove multires baker into own file in render/
Sergey Sharybin [Tue, 18 Dec 2012 17:46:26 +0000 (17:46 +0000)]
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.

8 years agofix for crash in recent changes, missing NULL check
Campbell Barton [Tue, 18 Dec 2012 17:06:31 +0000 (17:06 +0000)]
fix for crash in recent changes, missing NULL check

8 years agomake sure color picker and color swatch buttons have rnaindex of -1.
Campbell Barton [Tue, 18 Dec 2012 17:00:49 +0000 (17:00 +0000)]
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.

8 years agofix for crash in own commit - happend when changing userprefs.
Campbell Barton [Tue, 18 Dec 2012 16:52:46 +0000 (16:52 +0000)]
fix for crash in own commit - happend when changing userprefs.

8 years agouse 'bpy.context' when printing properties in the info window.
Campbell Barton [Tue, 18 Dec 2012 16:20:30 +0000 (16:20 +0000)]
use 'bpy.context' when printing properties in the info window.

8 years agoFix part of #33469: cloth preroll had a wrong tooltip and low limit of 200 frames.
Brecht Van Lommel [Tue, 18 Dec 2012 15:44:04 +0000 (15:44 +0000)]
Fix part of #33469: cloth preroll had a wrong tooltip and low limit of 200 frames.

8 years agochanging RNA properties now prints python script in the info view.
Campbell Barton [Tue, 18 Dec 2012 15:22:06 +0000 (15:22 +0000)]
changing RNA properties now prints python script in the info view.

next will add context so[id] are not used for all references.

8 years agoBlender icons now are in the 21st century too!
Ton Roosendaal [Tue, 18 Dec 2012 15:10:54 +0000 (15:10 +0000)]
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!

8 years agoFix region expander (+) drawing too narrow.
Brecht Van Lommel [Tue, 18 Dec 2012 14:55:51 +0000 (14:55 +0000)]
Fix region expander (+) drawing too narrow.

8 years agoClass method 'get_node_type' for node RNA types. This can be used to map RNA types...
Lukas Toenne [Tue, 18 Dec 2012 14:49:32 +0000 (14:49 +0000)]
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.

8 years agoFixes for ctrl+click on panel header:
Brecht Van Lommel [Tue, 18 Dec 2012 14:46:00 +0000 (14:46 +0000)]
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

8 years agofunctions to make a string representation of a property & assignment.
Campbell Barton [Tue, 18 Dec 2012 14:11:19 +0000 (14:11 +0000)]
functions to make a string representation of a property & assignment.

8 years agoFix #33600: copying objects with point caches did not copy the external,
Brecht Van Lommel [Tue, 18 Dec 2012 14:05:54 +0000 (14:05 +0000)]
Fix #33600: copying objects with point caches did not copy the external,
disk cache and lib path settings.

8 years agoNicer function for drawing text in 3d window:
Ton Roosendaal [Tue, 18 Dec 2012 13:59:47 +0000 (13:59 +0000)]
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)

8 years agosome speedup by avoiding translation on entire enum arrays, and just translate the...
Campbell Barton [Tue, 18 Dec 2012 13:46:37 +0000 (13:46 +0000)]
some speedup by avoiding translation on entire enum arrays, and just translate the single name that ends up being used.

8 years agofix for include and use break statement (may as well not loop more then needed).
Campbell Barton [Tue, 18 Dec 2012 13:25:23 +0000 (13:25 +0000)]
fix for include and use break statement (may as well not loop more then needed).

8 years agoadd index argument to RNA_property_as_string() - currently unused.
Campbell Barton [Tue, 18 Dec 2012 13:21:32 +0000 (13:21 +0000)]
add index argument to RNA_property_as_string() - currently unused.

8 years agoFix #33599: VBO textured draw mode did not update correctly when an image filepath
Brecht Van Lommel [Tue, 18 Dec 2012 12:42:13 +0000 (12:42 +0000)]
Fix #33599: VBO textured draw mode did not update correctly when an image filepath
was changed to an invalid one. Also fixed Object Color not being displayed correctly
with VBO's.

The way it has to clear the VBO buffers here is quite poor though and slow, we
really need textures and materials in the depsgraph to do this quicker.

8 years agoBug fix, IRC collection. (Fix for recent commit)
Ton Roosendaal [Tue, 18 Dec 2012 12:14:14 +0000 (12:14 +0000)]
Bug fix, IRC collection. (Fix for recent commit)

On saving new files (after loading startup.blend), the user prefs were included.
G.fileflags again...

8 years agofix [#33598] Regression in 2.65 while opening a 2.64 file
Campbell Barton [Tue, 18 Dec 2012 11:17:20 +0000 (11:17 +0000)]
fix [#33598] Regression in 2.65 while opening a 2.64 file

VBO's were using a material limit half the size of the rest of blender.

8 years agoCorrection for own commit r53006, removed some ndof keymaps, bad!
Campbell Barton [Tue, 18 Dec 2012 10:57:46 +0000 (10:57 +0000)]
Correction for own commit r53006, removed some ndof keymaps, bad!

8 years agoFixed template so that it uses hit points in world...
Luke Frisken [Tue, 18 Dec 2012 10:43:06 +0000 (10:43 +0000)]
Fixed template so that it uses hit points in world space to give correct selection. Also set selected object to active.

8 years agoAdding Amharic (i.e. ethiopic) language.
Bastien Montagne [Tue, 18 Dec 2012 09:13:04 +0000 (09:13 +0000)]
Adding Amharic (i.e. ethiopic) language.

8 years agoAdding Amharic (i.e. ethiopic) glyphs.
Bastien Montagne [Tue, 18 Dec 2012 09:03:21 +0000 (09:03 +0000)]
Adding Amharic (i.e. ethiopic) glyphs.

8 years agoAdded WeightVG modifier icon to svg file (and tried enhance it slightly).
Bastien Montagne [Tue, 18 Dec 2012 08:50:22 +0000 (08:50 +0000)]
Added WeightVG modifier icon to svg file (and tried enhance it slightly).

8 years agofix [#33580] Masking keyframes disappear from dope sheet when using undo.
Campbell Barton [Tue, 18 Dec 2012 08:41:38 +0000 (08:41 +0000)]
fix [#33580] Masking keyframes disappear from dope sheet when using undo.