blender.git
7 years agoFix for opencollada building in install_deps.sh script.
Bastien Montagne [Sat, 23 Mar 2013 17:28:24 +0000 (17:28 +0000)]
Fix for opencollada building in install_deps.sh script.

Stick to rev c89cf095c40aa2a518b1104c448825eacc92d174 of opencollada repo, next commit breaks API and prevent blender from building anymore... :(

7 years agocode cleanup: quiet shadow warning.
Campbell Barton [Sat, 23 Mar 2013 17:11:03 +0000 (17:11 +0000)]
code cleanup: quiet shadow warning.

7 years agoFix for cycles group node bug, reported on IRC: Group nodes input proxies did not...
Lukas Toenne [Sat, 23 Mar 2013 16:45:38 +0000 (16:45 +0000)]
Fix for cycles group node bug, reported on IRC: Group nodes input proxies did not get their correct default value set. Forgot to add this during r55440 ...

7 years agoBug fix 34743
Ton Roosendaal [Sat, 23 Mar 2013 16:08:02 +0000 (16:08 +0000)]
Bug fix 34743

Mac OS X full screen: the old option to go full screen now didn't hide the
dock/topbar anymore. Also made it use dock auto-hide now, not permanent hide.

7 years agocode cleanup: remove unused button type HSVSLI
Campbell Barton [Sat, 23 Mar 2013 16:03:13 +0000 (16:03 +0000)]
code cleanup: remove unused button type HSVSLI

7 years agoTheme fix:
Ton Roosendaal [Sat, 23 Mar 2013 12:46:07 +0000 (12:46 +0000)]
Theme fix:

Node Editor and Sequencer were not using grid theme color, but 'back'.

This commit adds versioning to copy background color to grid. I do this
without increasing sub-version, which allows to add correct drawing when
the subversion has to go up anyway for something else.

7 years agoCycles:
Thomas Dinges [Sat, 23 Mar 2013 10:11:29 +0000 (10:11 +0000)]
Cycles:
* Avoid an unnecessary condition in light.cpp, (totarea > 0.0f) is always true inside the "if(kintegrator->use_direct_light)" branch.

7 years agoConstraint UI:
Thomas Dinges [Sat, 23 Mar 2013 08:47:29 +0000 (08:47 +0000)]
Constraint UI:
* Hide Script Constraint from UI, not functional.
* Alphabetical order fix for Motion tracking constraints.

7 years agoCode cleanuo:
Thomas Dinges [Sat, 23 Mar 2013 08:38:53 +0000 (08:38 +0000)]
Code cleanuo:
* Remove already commented "use_radiosity" flag from RNA.
* Remove some commented exceptions for old 2.4x 3D View preview region.
* Remove empty and commented function declarations from 2.4x UI times

7 years agoCode cleanup:
Thomas Dinges [Sat, 23 Mar 2013 08:25:29 +0000 (08:25 +0000)]
Code cleanup:
* Remove already deprecated USER_DISABLE_AA flag from code, only commented DNA flag left.

7 years agoCycles:
Thomas Dinges [Sat, 23 Mar 2013 07:09:04 +0000 (07:09 +0000)]
Cycles:
* Move OpenGL settings out of the film panel into its own.

Imho these should go completely elsewhere, but better separated than mixed with Cycles settings.

7 years agoCode cleanup:
Thomas Dinges [Sat, 23 Mar 2013 06:55:59 +0000 (06:55 +0000)]
Code cleanup:
* Use bpy.app.build_options for UI checks rather than custom ones.

7 years agoOpenGL: Moving the GPU_pass_update_uniforms() call from GPU_material_bind_uniforms...
Mitchell Stokes [Sat, 23 Mar 2013 03:11:48 +0000 (03:11 +0000)]
OpenGL: Moving the GPU_pass_update_uniforms() call from GPU_material_bind_uniforms() to GPU_material_bind(). This way, material specific uniforms don't need to be resent when sending object specific uniforms. This saves uniform update calls in the BGE where one material is bound and multiple objects can be drawn. This doesn't offer much in the way of performance, but it cleans up our OpenGL usage a bit. One test scene went from 8k OpenGL calls to 4k with just this one change.

7 years agoBGE: getting rid of a few maybe-uninitialized warnings.
Mitchell Stokes [Sat, 23 Mar 2013 03:04:02 +0000 (03:04 +0000)]
BGE: getting rid of a few maybe-uninitialized warnings.

7 years agoGHOST_Cocoa, let new fullscreen also appear on 10.6 deployed builds
Jens Verwiebe [Fri, 22 Mar 2013 23:48:26 +0000 (23:48 +0000)]
GHOST_Cocoa, let new fullscreen also appear on 10.6 deployed builds

7 years agofix for buffer out-of-bounds reading for STR_String comparisons with char arrays.
Campbell Barton [Fri, 22 Mar 2013 21:26:59 +0000 (21:26 +0000)]
fix for buffer out-of-bounds reading for STR_String comparisons with char arrays.

7 years agofix for BGE crash replicating a navmesh.
Campbell Barton [Fri, 22 Mar 2013 20:19:55 +0000 (20:19 +0000)]
fix for BGE crash replicating a navmesh.

7 years agoAdd a license file for our i18n "droidsans.ttf" font (I hope I did not forget any...
Bastien Montagne [Fri, 22 Mar 2013 19:11:39 +0000 (19:11 +0000)]
Add a license file for our i18n "droidsans.ttf" font (I hope I did not forget any, the history of this "font" is... complex :/ ).

7 years agoFix [#34721]: Smoke adaptive domain threshold ignores high resolution data.
Miika Hamalainen [Fri, 22 Mar 2013 17:11:32 +0000 (17:11 +0000)]
Fix [#34721]: Smoke adaptive domain threshold ignores high resolution data.

In some cases high resolution domain could have higher density than the low resolution counterpart, causing adaptive domain to clip off areas where density is still above domain threshold. Now also high resolution data is used to determine domain bounds.

7 years agoFix [#34685]: Dynamic paint sub-steps don't work if brush is animated through parent...
Miika Hamalainen [Fri, 22 Mar 2013 17:08:55 +0000 (17:08 +0000)]
Fix [#34685]: Dynamic paint sub-steps don't work if brush is animated through parent chain longer than 2 objects.

Maximum number of parents updated is now 5. Hopefully this will be enough until Blender has better subframe sampling system.

7 years agoPatch [#34680] Updated install_deps script, by Ejner Fergo (ejnersan), thanks!
Bastien Montagne [Fri, 22 Mar 2013 16:26:33 +0000 (16:26 +0000)]
Patch [#34680] Updated install_deps script, by Ejner Fergo (ejnersan), thanks!

The script is updated with:

Arch Linux support
Numpy 1.7.0 final
Fedora 17 / 18 support
OpenSUSE 12.2 / 12.3 support
Use FFMPEG from RPM-distro repos
RPM-distro fixes
Removed Schroedinger codec
Fixes for Cmake/Scons config

Reviewed by Sergey and me.

7 years agoOSX feature:
Ton Roosendaal [Fri, 22 Mar 2013 16:11:00 +0000 (16:11 +0000)]
OSX feature:

Blender now supports the 10.7+ "Full screen" mode, which pushes a window to a permanent
other "screen", with animated zoom and sliding.

Available via the icon in window header (right), Apple+F, or "Window" menu in top.

Works much nicer than Blender's own "full screen" option.

Todo: the zoom effect is still draws a bit ugly, because Blender doesn't have "live resize"
yet.

7 years agocode cleanup: shadowing, adjust type.
Campbell Barton [Fri, 22 Mar 2013 15:47:02 +0000 (15:47 +0000)]
code cleanup: shadowing, adjust type.

7 years agoAdded missing node->id pointer checks in case node groups have unavailable node_tree...
Lukas Toenne [Fri, 22 Mar 2013 15:46:38 +0000 (15:46 +0000)]
Added missing node->id pointer checks in case node groups have unavailable node_tree data blocks.

7 years agoFix #34728, Int values in script Node can't be changed. Was caused by a bad typecast...
Lukas Toenne [Fri, 22 Mar 2013 15:39:10 +0000 (15:39 +0000)]
Fix #34728, Int values in script Node can't be changed. Was caused by a bad typecast of the node socket default_value, which caused invalid value range.

7 years agoAdd missing comment for m_isResolutionSet
Sergey Sharybin [Fri, 22 Mar 2013 14:54:02 +0000 (14:54 +0000)]
Add missing comment for m_isResolutionSet

7 years agoIncrease hard limit for prefetch frames to INT_MAX
Sergey Sharybin [Fri, 22 Mar 2013 14:41:52 +0000 (14:41 +0000)]
Increase hard limit for prefetch frames to INT_MAX

Don't see why it could give issues to use large number
of frames to be prefetched, but just in case make it
unlimited hard limit and kept soft limit still at 500.

7 years agocode cleanup: unused defines, shadowing and unintended enum-as-variable.
Campbell Barton [Fri, 22 Mar 2013 14:31:03 +0000 (14:31 +0000)]
code cleanup: unused defines, shadowing and unintended enum-as-variable.

7 years agospaces->tabs
Pablo Vazquez [Fri, 22 Mar 2013 13:53:58 +0000 (13:53 +0000)]
spaces->tabs

7 years agoFix for the custom_nodes.py template. Socket classes now return their drawing color...
Lukas Toenne [Fri, 22 Mar 2013 13:17:16 +0000 (13:17 +0000)]
Fix for the custom_nodes.py template. Socket classes now return their drawing color in a callback instead of a simple property, this makes it possible to change a socket color e.g. based on data type.

7 years agoFix for the use_hidden_preview setting in SpaceNode. The application of this flag...
Lukas Toenne [Fri, 22 Mar 2013 13:08:37 +0000 (13:08 +0000)]
Fix for the use_hidden_preview setting in SpaceNode. The application of this flag to new nodes got lost during merges at some point. Also is now in the python node.add_node operator as well as the C function.

7 years agoNodes editor,
Pablo Vazquez [Fri, 22 Mar 2013 12:57:32 +0000 (12:57 +0000)]
Nodes editor,
Draw an extra outline on hidden nodes that have custom colors, otherwise you can't recognize them unless you unhide.

Example: http://pasteall.org/pic/show.php?id=42359

7 years agoBug fix #34405
Ton Roosendaal [Fri, 22 Mar 2013 12:00:29 +0000 (12:00 +0000)]
Bug fix #34405

On opening a text editor for first time, and use search (CTRL+F) the scrollers were not
correct initialized, so the view would jump a bit on redraw.

7 years agoBug fix #34726
Ton Roosendaal [Fri, 22 Mar 2013 11:14:04 +0000 (11:14 +0000)]
Bug fix #34726

Appending a group (which adds all object members to scene), didn't follow the
setting "In active layer".

One note: only the scene layers are copied over, not local view3d layers.

7 years agoNode preview merge function now has an additional option "remove_old", which could...
Lukas Toenne [Fri, 22 Mar 2013 10:34:52 +0000 (10:34 +0000)]
Node preview merge function now has an additional option "remove_old", which could be used if previous previews should be retained after recalculating (not used currently, old previews are dropped entirely for now, because it could be confusing).

Also moved the sync and merge for previews into the respective tree callbacks for consistency. This way the handling of previews can be changed for each tree type individually if necessary.

7 years agoEnable previews for inactive compo output and viewer nodes.
Sergey Sharybin [Fri, 22 Mar 2013 10:10:21 +0000 (10:10 +0000)]
Enable previews for inactive compo output and viewer nodes.

This keeps old behavior and could be nice. However, it'll
make compositing slower  (doing final compo after editing
tree). This is easy to hide preview in this case, and also
i hope to implement percentage rendering soon.

7 years agoFix #34667: trail_count option missing for Particle (emitter) System Render Panel...
Sergey Sharybin [Fri, 22 Mar 2013 09:54:43 +0000 (09:54 +0000)]
Fix #34667: trail_count option missing for Particle (emitter) System Render Panel "Path" UI

Patch from Josh Wedlake, many thanks!

7 years agoFix #34720: Sculpt mode T panel has no texture preview
Sergey Sharybin [Fri, 22 Mar 2013 09:42:16 +0000 (09:42 +0000)]
Fix #34720: Sculpt mode T panel has no texture preview

Cycles was not able to render texture icons, same actually
goes to lux. Now made it so blender internal is used to render
icons for textures.

7 years agoFix #34689: Multilayer EXRs don't load correctly if one layer is named and the other...
Sergey Sharybin [Fri, 22 Mar 2013 09:18:35 +0000 (09:18 +0000)]
Fix #34689: Multilayer EXRs don't load correctly if one layer is named and the other is not

OpenEXR's ChannelList.layers() will not include empty layer names,
which caused the issue. Made it so if there's one non-empty layer
name, check for empty names happens.

If there's empty layer name in case one non-empty layer name, file
will be considered multilayer now.

7 years agoAttempt to fix windows building with scons
Sergey Sharybin [Fri, 22 Mar 2013 08:53:11 +0000 (08:53 +0000)]
Attempt to fix windows building with scons

7 years agoFix for compositor node preview sizes: Use the render output aspect ratio for estimat...
Lukas Toenne [Fri, 22 Mar 2013 08:50:56 +0000 (08:50 +0000)]
Fix for compositor node preview sizes: Use the render output aspect ratio for estimating the required preview rect size instead of assuming a square, to avoid wasted space. Note that this does not work for newly added nodes until they have first been evaluated and a preview image has been generated (same behavior as before pynodes merge and associated preview changes).

7 years agocorrect enums which were in fact variables defined in headers.
Campbell Barton [Fri, 22 Mar 2013 05:46:39 +0000 (05:46 +0000)]
correct enums which were in fact variables defined in headers.

7 years agocode cleanup: use NULL rather then 0 for pointers, and make vars static where possible.
Campbell Barton [Fri, 22 Mar 2013 05:34:10 +0000 (05:34 +0000)]
code cleanup: use NULL rather then 0 for pointers, and make vars static where possible.
also found unintentionally defined enum/struct variables that where only meant to be defining the type.

7 years agocode cleanup: use booleans and const's for operator vars.
Campbell Barton [Fri, 22 Mar 2013 04:40:45 +0000 (04:40 +0000)]
code cleanup: use booleans and const's for operator vars.

7 years agofix error with merge operator not handing error cases properly (errors wouldn't cance...
Campbell Barton [Fri, 22 Mar 2013 04:39:43 +0000 (04:39 +0000)]
fix error with merge operator not handing error cases properly (errors wouldn't cancel the operator as they should).
was mixing up OPERATOR_CANCELLED with 0.

7 years agoTweak to previous commit - make range check less strict so that indicators don't
Joshua Leung [Fri, 22 Mar 2013 03:25:31 +0000 (03:25 +0000)]
Tweak to previous commit - make range check less strict so that indicators don't
flicker off so easily when target moves off screen

7 years agoGraph Editor: Draw indicators on the active Driver F-Curve which show the
Joshua Leung [Fri, 22 Mar 2013 02:28:55 +0000 (02:28 +0000)]
Graph Editor: Draw indicators on the active Driver F-Curve which show the
relationship between the result of driver evaluation (NKEY region stuff) and the
end result applied to the driven properties.

Example:
http://www.pasteall.org/pic/47687

7 years agoBGE bugfix for [#34505] Vertex Colors not working in the BGE (for custom GLSL shaders...
Dalai Felinto [Thu, 21 Mar 2013 23:20:46 +0000 (23:20 +0000)]
BGE bugfix for [#34505] Vertex Colors not working in the BGE (for custom GLSL shaders) when multitexture and no material

Bug introduced on rev.36723

7 years agocode cleanup: conversion from blender to BGE was unnecessarily confusing in checking...
Campbell Barton [Thu, 21 Mar 2013 23:11:52 +0000 (23:11 +0000)]
code cleanup: conversion from blender to BGE was unnecessarily confusing in checking weather to use vertex colors,
move check to function.

7 years agoscons: fix broken compile since last int -> bool cleanup
Jens Verwiebe [Thu, 21 Mar 2013 22:15:16 +0000 (22:15 +0000)]
scons: fix broken compile since last int -> bool cleanup

7 years agoBGE bugfix: [#34550] getVertexArrayLength changed in 2.66
Dalai Felinto [Thu, 21 Mar 2013 21:10:14 +0000 (21:10 +0000)]
BGE bugfix: [#34550] getVertexArrayLength changed in 2.66

This bug was producing way more geometry than we need. Potentially
memory saver (or performance even) bugfix.

Bottomline is:
We need to initialize the UVs otherwise vertex comparison fails ...
Ideally MoTo should take care of initializing MT_Point2
(note in Windows that seems to be fine, but it's safer to not rely on that)

7 years agopython api: add functionality to remove uv-texture layers.
Campbell Barton [Thu, 21 Mar 2013 20:54:48 +0000 (20:54 +0000)]
python api: add functionality to remove uv-texture layers.

7 years agoFix for Render Layers node, reported by Jason van Gumster (Fweeb) on IRC. The render...
Lukas Toenne [Thu, 21 Mar 2013 20:31:09 +0000 (20:31 +0000)]
Fix for Render Layers node, reported by Jason van Gumster (Fweeb) on IRC. The render layer operations need their RenderData pointer set. This was done for all connected output operations, but not for the preview operation which uses the image color layer. In case the image output is unconnected this leads to NULL pointer access.

7 years agopython api: add functionality to remove vertex color layers.
Campbell Barton [Thu, 21 Mar 2013 20:15:39 +0000 (20:15 +0000)]
python api: add functionality to remove vertex color layers.
note: that this intentionally removes check to exit vpaint mode when a vertex color layer is removed,
  since being in vertex-paint mode without a vertex color layer is supported.

also minor change to drawing camera limits while picking from previous commit.

7 years agomist line can now be used for camera selection.
Campbell Barton [Thu, 21 Mar 2013 18:57:05 +0000 (18:57 +0000)]
mist line can now be used for camera selection.

7 years agoFix for a node compatibility code bug (reported by kopias in IRC). Compatibility...
Lukas Toenne [Thu, 21 Mar 2013 18:33:38 +0000 (18:33 +0000)]
Fix for a node compatibility code bug (reported by kopias in IRC). Compatibility data (links with NULL fromnode/tonode pointers) was created for all node trees in library data, including local scene/material/... trees, but on loading was only actually removed for node groups. Now cleans up all trees in the library to be sure, and only generate new compat data for actual group trees.

7 years agoUpdate ceres to current git version.
Sergey Sharybin [Thu, 21 Mar 2013 18:07:03 +0000 (18:07 +0000)]
Update ceres to current git version.

Mainly to support msvc2010, bit also includes some minor fixes.

7 years agopatch [#34687] Patch for AutoMerge button in 3d editor
Campbell Barton [Thu, 21 Mar 2013 17:26:15 +0000 (17:26 +0000)]
patch [#34687] Patch for AutoMerge button in 3d editor
from Dan McGrath (dmcgrath)

7 years agofix for own recent commit - added function into wrong side of ifdef
Campbell Barton [Thu, 21 Mar 2013 16:06:46 +0000 (16:06 +0000)]
fix for own recent commit - added function into wrong side of ifdef

7 years agouse clip alpha setting for empty-image drawing.
Campbell Barton [Thu, 21 Mar 2013 15:43:05 +0000 (15:43 +0000)]
use clip alpha setting for empty-image drawing.

7 years agoRender border + crop will be handled correct in compositor now
Sergey Sharybin [Thu, 21 Mar 2013 15:26:41 +0000 (15:26 +0000)]
Render border + crop will be handled correct in compositor now

This commit simply implements mapping from centered cropped canvas
to a full-frame coordinates, so operations like alpha-overing render
result on top of image will be properly aligned.

7 years agorevert edit from r55461, causing build error on some systems.
Campbell Barton [Thu, 21 Mar 2013 14:46:37 +0000 (14:46 +0000)]
revert edit from r55461, causing build error on some systems.

7 years agocode cleanup: rename editmode functions so we have ED_object_editmode_load/enter...
Campbell Barton [Thu, 21 Mar 2013 14:18:17 +0000 (14:18 +0000)]
code cleanup: rename editmode functions so we have ED_object_editmode_load/enter/exit

7 years agocode cleanup: remove double call to BKE_node_instance_key(), rename ruler (lots of...
Campbell Barton [Thu, 21 Mar 2013 14:16:55 +0000 (14:16 +0000)]
code cleanup: remove double call to BKE_node_instance_key(), rename ruler (lots of tools are 3d :)), and redundant assignment.

7 years agopy api: add Object.update_from_editmode(),
Campbell Barton [Thu, 21 Mar 2013 14:12:04 +0000 (14:12 +0000)]
py api: add Object.update_from_editmode(),
Useful for python exporters to avoid toggling editmode on export, moved into own function ED_object_editmode_load(obedit).

7 years agoAdd a little bit of space between socket layouts on nodes.
Lukas Toenne [Thu, 21 Mar 2013 13:21:18 +0000 (13:21 +0000)]
Add a little bit of space between socket layouts on nodes.

7 years agoFix for extra string width padding in ui_text_icon_width, causing labels in right...
Lukas Toenne [Thu, 21 Mar 2013 12:58:31 +0000 (12:58 +0000)]
Fix for extra string width padding in ui_text_icon_width, causing labels in right-aligned layouts show an annoying gap. If the layout is right-aligned, make the text button align right as well, so text is drawn at the right side of the alloted rect.

7 years agoBug fix #34713
Ton Roosendaal [Thu, 21 Mar 2013 11:48:13 +0000 (11:48 +0000)]
Bug fix #34713

Using MultiSample, the code that inspects Z buffer values fail, like for grease pencil
drawing on "Surface".

It appears to me that all this depth draw/read code is ignoring gpu offscreen entirely.
This should be confirmed by Campbell though :)

I'm also quite unsure why this code exists, related to other tools that use
depth too (particles, sculpt). Good to mark down for our viewport recode.

7 years agoBugfix: Transform autokey warning indicator text was getting clipped prematurely
Joshua Leung [Thu, 21 Mar 2013 11:14:53 +0000 (11:14 +0000)]
Bugfix: Transform autokey warning indicator text was getting clipped prematurely

After quite some time debugging going back through previous commits for this
feature and digging around the internals of the blenfont,I finally found the
culprit. It turns out that there was just a single line missing between
BLF_width_default() and BLF_width_and_height_default(), which caused the widths
returned to understimate the space required or so, causing text clipping. The
offending line probably correcting for different DPI scaling values.

7 years agoFix #34707: Blender crash on enabling of boolean modifier
Sergey Sharybin [Thu, 21 Mar 2013 08:47:18 +0000 (08:47 +0000)]
Fix #34707: Blender crash on enabling of boolean modifier

Stupid mistake by my own with recent Carve update which
undid fix for MSVC STL library.

7 years agoTweaks to movie clip prefetching after discussion with Sebastian
Sergey Sharybin [Thu, 21 Mar 2013 07:47:38 +0000 (07:47 +0000)]
Tweaks to movie clip prefetching after discussion with Sebastian

Don't use sequencer's Frames Prefetch option and rather fill the
whole cache with frames.

Since movie clip is not "classical" prefetcher (it doesn't do
anything while playing back) and main purpose is to speed up
reading for further tracking and so, such a change seems logical.

7 years agoDriver error warnings are now only printed to the console when Blender is run
Joshua Leung [Thu, 21 Mar 2013 06:11:16 +0000 (06:11 +0000)]
Driver error warnings are now only printed to the console when Blender is run
using the -d flag

This prevents a stream of error messages flooding the console when working with
particular rigs which may have a few broken controls. In general, riggers now
have a better alternative by using the filtering tools in the Graph Editor.

7 years agoBugfix [#34688] Auto-Keying doesn't include custom properties when pasting poses
Joshua Leung [Thu, 21 Mar 2013 04:22:29 +0000 (04:22 +0000)]
Bugfix [#34688] Auto-Keying doesn't include custom properties when pasting poses

Previously, Paste Poses only used the LocRotScale Keying Set for autokeyframing
purposes. This was fine for most purposes, but with many rigs these days also
using custom properties for important posing functions, it's important that we
include those here too.

7 years agocode cleanup: misc warnings/style
Campbell Barton [Thu, 21 Mar 2013 02:58:21 +0000 (02:58 +0000)]
code cleanup: misc warnings/style

7 years agofix for incorrect use of 'bool', also fix 2 older bugs in fly mode.
Campbell Barton [Thu, 21 Mar 2013 02:56:16 +0000 (02:56 +0000)]
fix for incorrect use of 'bool', also fix 2 older bugs in fly mode.
- panning didnt keyframe translation animation.
- when checking to key translation: speed `float` was converted to an `int` then treated as a bool, now check (speed != 0).

7 years agoFix #34700: cycles depth of field now works with orthographic cameras too.
Brecht Van Lommel [Thu, 21 Mar 2013 02:38:11 +0000 (02:38 +0000)]
Fix #34700: cycles depth of field now works with orthographic cameras too.

7 years agocode cleanup: use bool where values are true/false, for view3d and related functions.
Campbell Barton [Wed, 20 Mar 2013 23:14:18 +0000 (23:14 +0000)]
code cleanup: use bool where values are true/false, for view3d and related functions.

7 years agoI18n users request: add the ability to use a translated name for newly added/created...
Bastien Montagne [Wed, 20 Mar 2013 18:42:09 +0000 (18:42 +0000)]
I18n users request: add the ability to use a translated name for newly added/created objects or other datablocks.

This simply adds a third "translation type" (in addition to iface and tip), "new data", with relevant user settings flag and helper funcs/macros (and py api).

Currently implemented name translation when adding new objects, as well as modifiers and constraints, will add the others (cd layers, scenes, perhaps nodes [though I think they do not need this], etc.) later.

7 years agoChanges to compositor output node
Sergey Sharybin [Wed, 20 Mar 2013 18:01:47 +0000 (18:01 +0000)]
Changes to compositor output node

Make it so compositor output node wouldn't be calculated
when Render Result image is not visible on the screen.
This makes compositor tree editing more friendly and
faster.

Also, if there's no viewer image visible on the screen
viewer nodes wouldn't be handled.

Final rendering keeps unchanged for now.

This solves issues when for performance artists are
disconnecting compo output node before tweaking values
in compositor and forgets to attach compo output
node before sending file to the farm.

7 years agoWhen using border rendering, use the same border for compositor
Sergey Sharybin [Wed, 20 Mar 2013 18:01:41 +0000 (18:01 +0000)]
When using border rendering, use the same border for compositor

This makes compositing as fast as it's possible in this case.

The only thing is border render+crop will still give funcy
results. This is the next thing to be solved in compositor.

7 years agoBugfix [#34710] Crash on duplicating object with cloth modifier.
Daniel Genrich [Wed, 20 Mar 2013 17:45:35 +0000 (17:45 +0000)]
Bugfix [#34710] Crash on duplicating object with cloth modifier.

Caused by last commit by me.

7 years agoPrefetching for movie clips
Sergey Sharybin [Wed, 20 Mar 2013 17:03:20 +0000 (17:03 +0000)]
Prefetching for movie clips

This commit basically implements frames prefetching for
movie clip datablock.

Number of frames to be prefetched is controlled in User
Preferences, System tab, Prefetch Frames option.

Currently prefetching is destructive-less for movie cache,
meaning mo frames will be removed from the cache when while
prefetching. This is because it's half of simplier to
implement, but it also makes sense from tracking point of
view -- we could want to playback in both directions and
removing frames from behind time cursor is not always a
good idea.

Anyway, smarter prefetching strategy could be developed
later.

Some implementation notes:

- Added MEM_CacheLimiter_get_memory_in_use function to get
  memory usage of specified memory limiter.

- Fixed prototype of MEM_CacheLimiter_get_maximum which
  was simply wrong (used wrong data type for output).

- Added some utility functions to movie clip and movie
  cache for direct cache interaction and obtaining cache
  statistics.

- Prefetching is implemented using general jobs system.
  which is invoking from clip draw function.

- Prefetcing will stop as soon other job or playback starts.
  This is done from performance point of view. Jobs will
  likely require lots of CPU power and better to provide
  whole CPU to it.

  Playback is a bit more complicated case. For jpeg sequence
  playback prefetching while paying back is nice. But trying
  to prefetch heavy exr images and doing color space
  conversion slows down both playback and prefetching.

TODO:

- Think of better policy of dealing with already cached frames
  (like when cached frames from other clips prevents frames
  from current clip to be prefetched)

- Currently a bit funky redraw notification happens from
  prefetch job. Perhaps own ND_ is better to have here.

- Hiding clip while prefetch is active in theory shall stop
  prefetching job.

- Having multiple clips opened on file load will prefetch
  frames for only one of them.

7 years agoOSX/tablet: fix a longstanding bug with certain devices and a cornercases
Jens Verwiebe [Wed, 20 Mar 2013 16:51:50 +0000 (16:51 +0000)]
OSX/tablet: fix a longstanding bug with certain devices and a cornercases

7 years agoSmall fix: make node backdrop draw with nearest-pixel filter, so it zooms in
Ton Roosendaal [Wed, 20 Mar 2013 16:30:48 +0000 (16:30 +0000)]
Small fix: make node backdrop draw with nearest-pixel filter, so it zooms in
showing pixels. Issue was it also blurred image at zoom level 1... maybe subpixel
issue. Anyway - for inspecting exact composite results, zooming in showing pixels
is nicer anyway.

7 years ago- add knife project to toolbar.
Campbell Barton [Wed, 20 Mar 2013 16:03:34 +0000 (16:03 +0000)]
- add knife project to toolbar.
- when running knife project, disable vertex selection since it may select areas between the newly cut regions.
  add EDBM_selectmode_disable() function since loopcut does this too.
- (optimization) avoid looping over all geometry when flushing and no selection exists.

7 years agoFix #34694. This was actually a bug in the compositor's Bokeh Blur operation. It...
Lukas Toenne [Wed, 20 Mar 2013 15:54:16 +0000 (15:54 +0000)]
Fix #34694. This was actually a bug in the compositor's Bokeh Blur operation. It was writing outside of allocated memory in case of (0, 0) size buffers, with the usual unpredictable results.

7 years agoadd option to convert grease pencil into poly line directly.
Campbell Barton [Wed, 20 Mar 2013 15:01:15 +0000 (15:01 +0000)]
add option to convert grease pencil into poly line directly.

Without this, bezier curves at 12 resolution are very high detail for many tasks when converted from freehand strokes.
so add the option to convert 1:1 grease pencil points to curve polygons.

also add use_handles option to curve conversion which is used when converting beziers to poly lines.

7 years agoWhen making a node group always add one input and one output node, regardless of...
Lukas Toenne [Wed, 20 Mar 2013 13:58:03 +0000 (13:58 +0000)]
When making a node group always add one input and one output node, regardless of whether there are any exposed sockets. The standard common case is that some sockets will eventually have to be exposed anyway, and it's easier to just delete the unused node instead of having to look it up in the menu.

7 years agoadd back -Wredundant-decls, just not for older gcc's
Campbell Barton [Wed, 20 Mar 2013 13:30:20 +0000 (13:30 +0000)]
add back -Wredundant-decls, just not for older gcc's

7 years agoFix for #34708 and #34709, cycles group nodes were not working well with 0 or 2+...
Lukas Toenne [Wed, 20 Mar 2013 13:17:35 +0000 (13:17 +0000)]
Fix for #34708 and #34709, cycles group nodes were not working well with 0 or 2+ group input/output nodes.

The issue here was that the proxy nodes created for connecting extern group node sockets to the internal nodes were generated by the input/output nodes themselves.

0 input/output nodes: there would be no proxy that external group node sockets can map to
2+ input/output nodes: additional nodes would overwrite entries from previous nodes, so that only one of the input/output nodes would be used.

Solution is to always generate exactly 1 proxy node for every group socket in advance, regardless of whether it is used internally. Internal node sockets can then all map to this proxy node.

In the case out output nodes there should only ever be one active node, otherwise the connection to the proxy would be ambiguous. For this purpose the NODE_DO_OUTPUT flag has been exposed to RNA, so that cycles can check it and only use the active output.

7 years agoAdd a license document for i18n monospace font.
Irie Shinsuke [Wed, 20 Mar 2013 13:02:40 +0000 (13:02 +0000)]
Add a license document for i18n monospace font.

7 years agoMake Blender compile again normal again with gcc 4.2
Ton Roosendaal [Wed, 20 Mar 2013 12:34:20 +0000 (12:34 +0000)]
Make Blender compile again normal again with gcc 4.2

-Wredundant-decls is giving 1000s of lines of warnings for every file...

7 years agoFix for compositor bug introduced in pynodes branch by removing the default MuteNode...
Lukas Toenne [Wed, 20 Mar 2013 10:06:28 +0000 (10:06 +0000)]
Fix for compositor bug introduced in pynodes branch by removing the default MuteNode for unspecified nodes in the COM_Converter. Not sure why i removed this in the first place, but it means that reroute nodes are not properly replaced in composites. It worked for preview and viewer composite because the reroute nodes are replaced there already by the node tree localization ... this needs to be cleaned up.

7 years agoFix for bug reported on bf-committers: RNA function nodetree.links.new does not remov...
Lukas Toenne [Wed, 20 Mar 2013 09:53:29 +0000 (09:53 +0000)]
Fix for bug reported on bf-committers: RNA function nodetree.links.new does not remove existing links when connecting to a linked input. The check for socket connection limits was 1 off, needs to add 1 to the link counter to anticipate the newly added link.

7 years agoUI Tweak: "Add to Group" button creates new group if no groups exist
Joshua Leung [Wed, 20 Mar 2013 01:41:33 +0000 (01:41 +0000)]
UI Tweak: "Add to Group" button creates new group if no groups exist

Previously, the "Add to Group" button would show an empty search popup when there were no existing groups. While this does mean that the button behaves differently at different times, this way is more streamlined and should be less confusing than seeing an empty search popup or a greyed out "add to group" button or a "+" button which jumps around in different situations.

7 years agocode cleanup: use booleans for mesh and selection code.
Campbell Barton [Tue, 19 Mar 2013 23:17:44 +0000 (23:17 +0000)]
code cleanup: use booleans for mesh and selection code.

7 years agofix for knife tool crash when knife_make_chain_cut() couldn't create a new face.
Campbell Barton [Tue, 19 Mar 2013 21:37:22 +0000 (21:37 +0000)]
fix for knife tool crash when knife_make_chain_cut() couldn't create a new face.

7 years agoFix #34697, Undoing a node group crashes Blender.
Lukas Toenne [Tue, 19 Mar 2013 20:37:25 +0000 (20:37 +0000)]
Fix #34697, Undoing a node group crashes Blender.

The problem here was that the extra forward compatibility data for node groups (links to the node interface sockets) was written for files as well as undo memfiles. But only in the case of true .blend files is this data subsequently removed again after loading, which in the case of undo leaves invalid links hanging around in the node tree. Forward compat data is now skipped for undo.

7 years agoVarious cleanup around default i18n context.
Bastien Montagne [Tue, 19 Mar 2013 19:37:22 +0000 (19:37 +0000)]
Various cleanup around default i18n context.

Issue is that the real default context is NULL, however, in python and RNA, this value can't be used easily. So we use a specific string instead ("*"), defined as BLF_I18NCONTEXT_DEFAULT_BPYRNA.

From now on, all bpy/rna code should only use the BLF_I18NCONTEXT_DEFAULT_BPYRNA value, while all "usual" C code should use the BLF_I18NCONTEXT_DEFAULT value (BLF_pgettext is still able to "understand" both, anyway).

Also added BLF_is_default_context helper func, so that we can keep that check in a single place!

Finally, we should no need anymore to understand the void string "" as default context too - two values for a same thing are more than enough!

7 years agochange to variable size bokeh blue, dont blur larger areas then the current pixel...
Campbell Barton [Tue, 19 Mar 2013 18:32:56 +0000 (18:32 +0000)]
change to variable size bokeh blue, dont blur larger areas then the current pixel defines.
caused nasty looking errors with DOF.