6 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.

6 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.

6 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.

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

6 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.


6 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.

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

6 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.

6 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.

6 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.

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

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

6 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%

6 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.

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

6 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.


6 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

6 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.

6 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! :)

6 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.

6 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

6 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

6 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.

6 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.

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

6 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.

6 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.

6 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

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

6 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.

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

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

6 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

6 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.

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

6 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.

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

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

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

6 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.

6 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.

6 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.

6 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.

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

6 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.

6 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...

6 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.

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

6 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

6 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

6 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.

6 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.

6 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

6 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.

6 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.

6 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.

6 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.

6 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.

6 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!

6 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.

6 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.

6 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

6 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.

6 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.

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

6 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.

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

6 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.

6 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.

6 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...

6 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.

6 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!

6 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.

6 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.

6 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.

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

6 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.

6 years agofix for own error in recent commit with active pose mode, depended on an uninitialize...
Campbell Barton [Tue, 18 Dec 2012 07:38:02 +0000 (07:38 +0000)]
fix for own error in recent commit with active pose mode, depended on an uninitialized flag.

6 years agoadd support for active-element in pose mode and armature editmode.
Campbell Barton [Tue, 18 Dec 2012 06:36:35 +0000 (06:36 +0000)]
add support for active-element in pose mode and armature editmode.
This works most usefully when combined with Normal orientation.

6 years agocode cleanup
Campbell Barton [Tue, 18 Dec 2012 05:38:21 +0000 (05:38 +0000)]
code cleanup

6 years agofix [#33575] Manipulator showing incorrect local axes in armature pose mode.
Campbell Barton [Tue, 18 Dec 2012 05:29:56 +0000 (05:29 +0000)]
fix [#33575] Manipulator showing incorrect local axes in armature pose mode.

6 years agostyle cleanup
Campbell Barton [Tue, 18 Dec 2012 01:52:18 +0000 (01:52 +0000)]
style cleanup

6 years agostyle cleanup
Campbell Barton [Tue, 18 Dec 2012 01:46:15 +0000 (01:46 +0000)]
style cleanup

6 years agoFix #33487: game engine did not convert objects with rotation modes other than
Brecht Van Lommel [Mon, 17 Dec 2012 21:40:28 +0000 (21:40 +0000)]
Fix #33487: game engine did not convert objects with rotation modes other than
Euler XYZ correctly, was never implemented;

6 years agoFix #33505: various issues
Brecht Van Lommel [Mon, 17 Dec 2012 20:37:10 +0000 (20:37 +0000)]
Fix #33505: various issues
* Motion blur with shutter time > 1 did result in the correct evaluation
  of some modifiers because it set the subframe to values > 1, and some
  places assume the current frame to be set to the integer coordinate and
  the subframe to be a value between 0 and 1.
* Shape keys did not take subframe time offsets into account.
* Point density texture was using an current frame value that was never set.

6 years agoMinor update to i18n spell check stuff...
Bastien Montagne [Mon, 17 Dec 2012 20:32:25 +0000 (20:32 +0000)]
Minor update to i18n spell check stuff...

6 years agoMinor tweaks to some UI messages...
Bastien Montagne [Mon, 17 Dec 2012 20:16:37 +0000 (20:16 +0000)]
Minor tweaks to some UI messages...

6 years agouv edge based stitch. Useful to disambiguate betwen islands
Antony Riakiotakis [Mon, 17 Dec 2012 20:14:07 +0000 (20:14 +0000)]
uv edge based stitch. Useful to disambiguate betwen islands
 when uvs are shared by more than two islands. Uv edges
 usually belong to only two islands, making for much cleaner
 stitches. To change between stitch modes, press TAB.
 Initial mode depends on the selection mode of the image
 editor. Documentation can also be found on the release wiki

6 years agoFix [#33590] The Screw Tool in Edit Mode isn't calculating the correct angle step...
Bastien Montagne [Mon, 17 Dec 2012 19:26:09 +0000 (19:26 +0000)]
Fix [#33590] The Screw Tool in Edit Mode isn't calculating the correct angle step divisions per turn.

Degrees were used as radians... :p
Also tweaked min values of steps and turns!

6 years agoObject Layer property now has tag "not animatable".
Ton Roosendaal [Mon, 17 Dec 2012 18:45:13 +0000 (18:45 +0000)]
Object Layer property now has tag "not animatable".

Even with new depsgraph that'll be a big problem to support.
For as long layers define relationships or define evaluation
this should remain a static state.

Instead, animate outliner "visibility".

6 years agoUI fixes:
Ton Roosendaal [Mon, 17 Dec 2012 17:37:48 +0000 (17:37 +0000)]
UI fixes:

- on setting lower DPI, the regions that were scrolled down would start moving down
  1 pixel on every draw. Caused by rounding error. (int + 0.1 vs int -0.1)
  (Ancient bug)

- circles used in outliner - to denote selection/active - now draw bigger, and better
  centered. (2.66 fix only)

6 years agofix [#33581] Vertex Color Layer
Campbell Barton [Mon, 17 Dec 2012 15:17:51 +0000 (15:17 +0000)]
fix [#33581] Vertex Color Layer

vertex colors were added to meshes with no faces whenver exiting/entering editmode, while in vertex paint mode outside of editmode. *(making a really big list of vertex colors!)

6 years agofix/workaround [#33493] checker de-select and edge loops
Campbell Barton [Mon, 17 Dec 2012 15:02:26 +0000 (15:02 +0000)]
fix/workaround [#33493] checker de-select and edge loops

Checker de-select by default would give uneven selection on a circle, this isnt really a bug but the offset used would give unevenly spaced selection even if the 3rd vertex for eg could be evenly selected on a circle.

Change how the offset works so the active element always remains selected when the offset is set to zero, this tends to give more even de-selection.

6 years agoBug fix, IRC report.
Ton Roosendaal [Mon, 17 Dec 2012 14:51:06 +0000 (14:51 +0000)]
Bug fix, IRC report.

With 2 windows, 2 scenes, linked objects:
- enter editmode in 1 window.
- the other window allowed to enter editmode too.
- and crash happened on exit editmode.

Since editmode is in Context (scene->obedit) a bad conflict arises.

New function BKE_object_is_in_editmode() returns this info outside of
context. Note I didn't use BMEdit_FromObject() because of the assert().

NOTE: contextual storage of editmode could need rework... five places:
- ob->mode / ob->restore_mode
- scene->object
- CTX_data_edit_object()
- BKE_object_is_in_editmode()
- view3d mode handling menu

6 years agoVersion patch for reading old files (2.50 and before).
Ton Roosendaal [Mon, 17 Dec 2012 12:35:39 +0000 (12:35 +0000)]
Version patch for reading old files (2.50 and before).

In 2.50 a new convention was added to save the filename in the .blend itself.
This to allow recovery of temp saves.

In current svn, it made old files open as if it was a saved home file (not
storing the name in header, or in file history).

Note: file handling for all recovery, remapping etc is in need for cleanup.

6 years agoBugfix 33560
Ton Roosendaal [Mon, 17 Dec 2012 12:03:31 +0000 (12:03 +0000)]
Bugfix 33560

Setup: 2 windows, 2 scenes, shared objects and groups.

- editing in 1 window, didn't correctly update shared stuff in the other
  (like child - parent relations)
- deleting group members in 1 scene, could crash the other.

- On load, only a depsgraph was created for the "active" scene. Now it makes
  depsgraphs for all visible scenes.
- "DAG ID flushes" were only working on active scenes too, they now take
  the other visible into account as well.
- Delete object - notifier was only sent to the active scene.

All in all it's a real depsgraph fix (for once!) :) Using multi-window and
multi-scene setups now is more useful.

6 years agomissed adding show_grease_pencil to node space in recent commit
Campbell Barton [Mon, 17 Dec 2012 09:17:21 +0000 (09:17 +0000)]
missed adding show_grease_pencil to node space in recent commit

6 years agoSmall tweak for using transparent+overlapping regions:
Ton Roosendaal [Mon, 17 Dec 2012 09:02:43 +0000 (09:02 +0000)]
Small tweak for using transparent+overlapping regions:

On mouse-over these regions now become active always (as if they were opaque).
This active state is used by many tools, or for drawing cursors.

Currently, all events (if not handled by button region) are passed on anyway to
the underlying region.

Visible errors were for example drawing the paint brush circle.

6 years agoFix part #33534: Building proxies will remove strip animation
Sergey Sharybin [Mon, 17 Dec 2012 08:45:44 +0000 (08:45 +0000)]
Fix part #33534: Building proxies will remove strip animation

6 years agoAdded GPL header to sconscripts!
Bastien Montagne [Mon, 17 Dec 2012 08:01:43 +0000 (08:01 +0000)]
Added GPL header to sconscripts!
Also changed shebang to '#!/usr/bin/env python', this is more portable across unixes...