blender.git
7 years agoFix #33107: cycles fixed threads 1 was still having two cores do work,
Brecht Van Lommel [Wed, 7 Nov 2012 21:00:49 +0000 (21:00 +0000)]
Fix #33107: cycles fixed threads 1 was still having two cores do work,
because main thread works as well.

7 years agoBugfix [#32939] Fluid sim reversed on X and Y with animated Control object
Daniel Genrich [Wed, 7 Nov 2012 18:11:13 +0000 (18:11 +0000)]
Bugfix [#32939] Fluid sim reversed on X and Y with animated Control object

Bug was introduced in r48531 by accident since fluid control object abuse a variable for another flag which got reset.

7 years agoUse CMAKE_LIBRARY_ARCHITECTURE instead of hardcoded stuff like x86_64-linux-gnu!...
Bastien Montagne [Wed, 7 Nov 2012 16:51:09 +0000 (16:51 +0000)]
Use CMAKE_LIBRARY_ARCHITECTURE instead of hardcoded stuff like x86_64-linux-gnu! Now should work with any multiarch!

7 years agoFix #33114: crash with render frame update script and GLSL.
Brecht Van Lommel [Wed, 7 Nov 2012 16:27:18 +0000 (16:27 +0000)]
Fix #33114: crash with render frame update script and GLSL.

7 years agoBugfix #32806
Ton Roosendaal [Wed, 7 Nov 2012 16:18:20 +0000 (16:18 +0000)]
Bugfix #32806

Two fixes for NDOF device:

- RNA item for setting turntable or trackball for ndof was using wrong variable
- Some moment the option "rotate around selection" stopped to work for ndof.

Note: the latter option doesn't do dolly in, use shift+ndof for that.

7 years agoUI message fixes...
Bastien Montagne [Wed, 7 Nov 2012 14:56:53 +0000 (14:56 +0000)]
UI message fixes...

7 years agocode cleanup: use min/max functions rather then macros.
Campbell Barton [Wed, 7 Nov 2012 12:31:05 +0000 (12:31 +0000)]
code cleanup: use min/max functions rather then macros.

7 years agoAttempt to fix problems with local built py caused by own r51976.
Bastien Montagne [Wed, 7 Nov 2012 12:24:03 +0000 (12:24 +0000)]
Attempt to fix problems with local built py caused by own r51976.

7 years agoNew words...
Bastien Montagne [Wed, 7 Nov 2012 12:14:35 +0000 (12:14 +0000)]
New words...

7 years agoFix ITASK warnings
Jens Verwiebe [Wed, 7 Nov 2012 11:57:51 +0000 (11:57 +0000)]
Fix ITASK warnings

7 years agoUpdate to make it work with new debian-like py3.3 packages. A bit hackish (this arch...
Bastien Montagne [Wed, 7 Nov 2012 11:44:39 +0000 (11:44 +0000)]
Update to make it work with new debian-like py3.3 packages. A bit hackish (this arch-dependent stuff makes things a bit complex), and probably only working for amd64 arch, but at least should not create any regression...

7 years agoMotion Tracker: disable stabilization operators when active object is not a camera
Sergey Sharybin [Wed, 7 Nov 2012 11:41:08 +0000 (11:41 +0000)]
Motion Tracker: disable stabilization operators when active object is not a camera

7 years agofix for own error in recent orig-index refactor (reported as [#33112])
Campbell Barton [Wed, 7 Nov 2012 11:37:53 +0000 (11:37 +0000)]
fix for own error in recent orig-index refactor (reported as [#33112])

7 years agoAffine tracker do_versions were missed for objects tracs
Sergey Sharybin [Wed, 7 Nov 2012 11:32:57 +0000 (11:32 +0000)]
Affine tracker do_versions were missed for objects tracs

Run this code again, so files from 2.63 would be opened correct now.

7 years agoprevent floating point exceptions from being raised in soft_range_round_up/soft_range...
Campbell Barton [Wed, 7 Nov 2012 11:28:50 +0000 (11:28 +0000)]
prevent floating point exceptions from being raised in soft_range_round_up/soft_range_round_down(), caused by log(0).

7 years agofix [#33094] Even edge slide on multiple loops destroys geometry
Campbell Barton [Wed, 7 Nov 2012 11:19:54 +0000 (11:19 +0000)]
fix [#33094] Even edge slide on multiple loops destroys geometry

7 years agoFixed crashes when motion tracks are zero-sized
Sergey Sharybin [Wed, 7 Nov 2012 11:18:42 +0000 (11:18 +0000)]
Fixed crashes when motion tracks are zero-sized

This is probably versioning issue happened when both trunk and tomato
were mixed to work on the same file.

Anyway, there're few files here locally and it's probably other users
do have the same files, so lets keep things safe here :)

7 years agoFix a typo and more descriptve commet
Jens Verwiebe [Wed, 7 Nov 2012 10:52:07 +0000 (10:52 +0000)]
Fix a typo and more descriptve commet

7 years agoOSX: some more version target cleanups and corrections
Jens Verwiebe [Wed, 7 Nov 2012 10:43:31 +0000 (10:43 +0000)]
OSX: some more version target cleanups and corrections

7 years agoInvalidate sequencer cache when movie clip's input color space is changing
Sergey Sharybin [Wed, 7 Nov 2012 10:18:11 +0000 (10:18 +0000)]
Invalidate sequencer cache when movie clip's input color space is changing

Currently the only way is to invalidate the whole cache, for something
smarter we'll need a dependency graph which would be able to deal with
relations between clip and strip.

7 years agofix [#33106] Decimate modifier/collapse give bad result
Campbell Barton [Wed, 7 Nov 2012 09:28:59 +0000 (09:28 +0000)]
fix [#33106] Decimate modifier/collapse give bad result
FLT_EPSILON was too small to use when checking if the edge collapse result is an error.

add invert_m3_m3_ex(), invert_m3_ex() functiosn which take an epsilon to check the determinant, saves calculating it twice per edge collapse.

7 years agodecimator - interpolate vertex normals rather then re-calculating them. faster and...
Campbell Barton [Wed, 7 Nov 2012 07:16:28 +0000 (07:16 +0000)]
decimator - interpolate vertex normals rather then re-calculating them. faster and means degenerate faces wont `explode`.

7 years agodecimator - no need to check abs() on normal length.
Campbell Barton [Wed, 7 Nov 2012 06:28:46 +0000 (06:28 +0000)]
decimator - no need to check abs() on normal length.

7 years agofix [#33108] Running save_as_mainfile breaks relative texture paths
Campbell Barton [Wed, 7 Nov 2012 04:13:03 +0000 (04:13 +0000)]
fix [#33108] Running save_as_mainfile breaks relative texture paths

save-as with path remapping left the paths relate to the file written.

7 years agocode cleanup:
Campbell Barton [Wed, 7 Nov 2012 01:32:15 +0000 (01:32 +0000)]
code cleanup:
- remove double promotions
- use UI_DPI_ICON_FAC macro rather then dpi/72
- add assert to prevent creating jobs with WM_JOB_TYPE_ANY, which should only be used for finding jobs.

7 years agostyle cleanup, also remove redundant call to set_listbasepointers in free_main().
Campbell Barton [Wed, 7 Nov 2012 01:02:28 +0000 (01:02 +0000)]
style cleanup, also remove redundant call to set_listbasepointers in free_main().

7 years agofor utility checkers, use QUIET env var, not to print progress.
Campbell Barton [Wed, 7 Nov 2012 01:00:27 +0000 (01:00 +0000)]
for utility checkers, use QUIET env var, not to print progress.

7 years agosupport for string parameters in OSL nodes
Dalai Felinto [Tue, 6 Nov 2012 21:36:44 +0000 (21:36 +0000)]
support for string parameters in OSL nodes
for now subtype is not defined, but once we start parsing the metadata we can set texture inputs as FILEPATH
also, it takes relative strings and convert to absolute for all strings (which is arguably a good solution, but
should work for now)

7 years agoFix cycles crash with normal map node, issue with tangent sign attribute.
Brecht Van Lommel [Tue, 6 Nov 2012 21:27:59 +0000 (21:27 +0000)]
Fix cycles crash with normal map node, issue with tangent sign attribute.

7 years agoCycles: tangent and normal map now show UV map link menu instead of text field.
Brecht Van Lommel [Tue, 6 Nov 2012 20:48:26 +0000 (20:48 +0000)]
Cycles: tangent and normal map now show UV map link menu instead of text field.

7 years ago== file browser ==
Andrea Weikert [Tue, 6 Nov 2012 20:29:14 +0000 (20:29 +0000)]
== file browser ==
[#33080] Backup icons - further integration
Contributed by Georg Kronthaler, many thanks!

* enables display of correct file icon on splash screen and in Open Recent menu
* exposes filter_backup in the python api
* enables setting BLENDERFILE_BACKUP as active filter in file browser from wm_operators.c (and from .blend in case this setting will be saved in the future)
* adds a comment to slightly misleading function name file_is_blend_backup()
* Updates icon for backup files to be more consistent with icon for .blend files

7 years agoFix for previous commit, didn't compile on windows.
Brecht Van Lommel [Tue, 6 Nov 2012 20:19:20 +0000 (20:19 +0000)]
Fix for previous commit, didn't compile on windows.

7 years agoCycles OSL: support for the trace(point pos, vector dir, ...) function, to trace
Brecht Van Lommel [Tue, 6 Nov 2012 19:59:10 +0000 (19:59 +0000)]
Cycles OSL: support for the trace(point pos, vector dir, ...) function, to trace
rays from the OSL shader. The "shade" parameter is not supported currently, but
attributes can be retrieved from the object that was hit using the
getmessage("trace", ..) function.

As mentioned in the OSL specification, this function can't be used instead of
lighting, the main purpose is to allow shaders to "probe" nearby geometry, for
example to apply a projected texture that can be blocked by geometry, apply
more “wear” to exposed geometry, or make other ambient occlusion-like effects.

http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/OSL#Trace

Example .blend and render:
http://www.pasteall.org/blend/17347
http://www.pasteall.org/pic/show.php?id=40066

7 years agoCycles OSL: phong_ramp(N, exponent, colors[8]) closure added, which works like
Brecht Van Lommel [Tue, 6 Nov 2012 19:59:07 +0000 (19:59 +0000)]
Cycles OSL: phong_ramp(N, exponent, colors[8]) closure added, which works like
a specular ramp shader. Note this is OSL only still, for experimenting.

Patch by Thomas.

7 years agoCycles: 4 new nodes.
Brecht Van Lommel [Tue, 6 Nov 2012 19:59:02 +0000 (19:59 +0000)]
Cycles: 4 new nodes.

* Tangent: generate a tangent direction for anisotropic shading. Can be either
  radial around X/Y/Z axis, or from a UV map. The default tangent for the
  anisotropic BSDF and geometry node is now always radial Z, for UV tangent use
  this node now.

http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Tangent

* Normal Map: generate a perturbed normal from an RGB normal map image. This
  is usually chained with an Image Texture node in the color input, to specify
  the normal map image. For tangent space normal maps, the UV coordinates for
  the image must match, and the image texture should be set to Non-Color mode
  to give correct results.

http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Normal_Map

* Refraction BSDF: for best results this node should be considered as a building
  block and not be used on its own, but rather mixed with a glossy node using a
  fresnel type factor. Otherwise it will give quite dark results at the edges for
  glossy refraction.

http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Refraction

* Ambient Occlusion: controls the amount of AO a surface receives, rather than
  having just a global factor in the world. Note that this outputs a shader and
  not a color, that's for another time.

http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Ambient_Occlusion

7 years agoCycles: disable OpenCL in builds for now, since it's not working and is only
Brecht Van Lommel [Tue, 6 Nov 2012 19:58:51 +0000 (19:58 +0000)]
Cycles: disable OpenCL in builds for now, since it's not working and is only
confusing users at this point. For experiments you can define the
CYCLES_OPENCL_TEST environment variable to make it show up in the UI.

7 years agoFixes related to #33087:
Brecht Van Lommel [Tue, 6 Nov 2012 19:58:48 +0000 (19:58 +0000)]
Fixes related to #33087:

* Fix GLSL memory leak in the (vector) math node.
* Fix GLSL math node pow behavior for negative values, same as was done for C.

7 years agoquick hack to allow 10.8 to build again, will wait Jens for real fix
Dalai Felinto [Tue, 6 Nov 2012 19:26:45 +0000 (19:26 +0000)]
quick hack to allow 10.8 to build again, will wait Jens for real fix
but basically the error I get is:
Error: redefinition of enumerator 'NSEventTypeRotate'
...

for all the NSEvents

7 years agoBugfix #32191
Ton Roosendaal [Tue, 6 Nov 2012 18:07:17 +0000 (18:07 +0000)]
Bugfix #32191

Case: multiple scenes, linked objects on different layers.
By definition, a layer is a local scene property - not of object.
On setting scenes, this then gets copied over to objects.

Error was a 2.5 year old commit to allow object layer animation,
which is due to depsgraph issues badly supported anyway.
(animate visibility outliner flags instead)

7 years agoFix using uninitialized color pace name in IMB_testiffname
Sergey Sharybin [Tue, 6 Nov 2012 16:41:20 +0000 (16:41 +0000)]
Fix using uninitialized color pace name in IMB_testiffname

7 years agoBugfix #33092
Ton Roosendaal [Tue, 6 Nov 2012 15:54:04 +0000 (15:54 +0000)]
Bugfix #33092

Fluid sim would stop or crash with node editor.

Bug was a real bad one - the code for giving out WM jobs was messed up for long.
It was giving a running fluid job to the compositer even... tsk!

I will go over jobs code carefully next days to see if it all behaves. Now it
allows per owner multiple jobs, provided it has different job_type set.

Also fixed: preview renders (material) were deadslow once a while - caused
by icon render setting miniature tile render sizes. Now it's fast again,
but there are still 3 icon jobs running per UI change... need to check what.

7 years agoOSX: substitute all MAC_OS_X_VERSION defines with MAC_OS_X_VERSION_MIN_REQUIRED macro...
Jens Verwiebe [Tue, 6 Nov 2012 15:19:49 +0000 (15:19 +0000)]
OSX: substitute all MAC_OS_X_VERSION defines with MAC_OS_X_VERSION_MIN_REQUIRED macros, to get more reliable version (api) covering

7 years agowas trying to make py import follow pythons own code more but broke py32 compat....
Campbell Barton [Tue, 6 Nov 2012 13:29:00 +0000 (13:29 +0000)]
was trying to make py import follow pythons own code more but broke py32 compat. this should fix

7 years agoBugfix: on Linux (X11) the inactive window was not getting mouse-move events.
Ton Roosendaal [Tue, 6 Nov 2012 13:22:33 +0000 (13:22 +0000)]
Bugfix: on Linux (X11) the inactive window was not getting mouse-move events.

This feature has been working in OSX for long - to see mouse-overs on buttons
from inactive windows (and tooltips) and allow a button to be active for
input right away.

Will need check by linuxers if this works satisfying. Also Windows now might
support this feature.

7 years agoRelease environment script: make python linking to openssl statically
Sergey Sharybin [Tue, 6 Nov 2012 12:17:47 +0000 (12:17 +0000)]
Release environment script: make python linking to openssl statically

7 years agofix for imp.reload() with Python3.3, function was recursively calling its self.
Campbell Barton [Tue, 6 Nov 2012 11:43:19 +0000 (11:43 +0000)]
fix for imp.reload() with Python3.3, function was recursively calling its self.

7 years agoBugfix #33096
Ton Roosendaal [Tue, 6 Nov 2012 10:35:02 +0000 (10:35 +0000)]
Bugfix #33096

Code drawing paint cursors in regions didn't check for zero-sized regions well.
Causing error prints: wmSubWindowScissorSet 0: doesn't exist

Harmless, but nicer to handle it correct :)

7 years agoSilent strict compiler flag.
Sergey Sharybin [Tue, 6 Nov 2012 10:18:42 +0000 (10:18 +0000)]
Silent strict compiler flag.

Brecht, could you please verify it's indeed nothing should be done for frame node here?

7 years agofix [#33037] Soften brush can't handle seams in texture paint
Campbell Barton [Tue, 6 Nov 2012 09:19:51 +0000 (09:19 +0000)]
fix [#33037] Soften brush can't handle seams in texture paint

project paint never worked with soften (blur), support now added.

7 years agominor improvement to projection paint pixel initialization - initialize the pixel...
Campbell Barton [Tue, 6 Nov 2012 07:11:17 +0000 (07:11 +0000)]
minor improvement to projection paint pixel initialization - initialize the pixel alloc size once and re-use it.

7 years agoHarmless formatting tweaks
Joshua Leung [Tue, 6 Nov 2012 06:29:40 +0000 (06:29 +0000)]
Harmless formatting tweaks

7 years agoDisplay warning/info notification after adding properties to a Keying Set using
Joshua Leung [Tue, 6 Nov 2012 05:25:55 +0000 (05:25 +0000)]
Display warning/info notification after adding properties to a Keying Set using
KKEY

Previously this would happen silently, so users may not have noticed that these
had been added. Let's see how this goes before seeing if a hotkey change is
needed to prevent even more errors.

7 years agoBugfix [#33043] Changing the name of a keying set does not change group name
Joshua Leung [Tue, 6 Nov 2012 05:04:54 +0000 (05:04 +0000)]
Bugfix [#33043] Changing the name of a keying set does not change group name

This now works for absolute Keying Sets (Builtin Keying Sets are highly context
dependent, and usually cannot be renamed, so this shouldn't be a problem there)

7 years agoadd comments for uiBut a1 and a2 values.
Campbell Barton [Tue, 6 Nov 2012 04:56:30 +0000 (04:56 +0000)]
add comments for uiBut a1 and a2 values.

7 years agobad use of assignment within ABS() caused SMHASH_NEXT macro to step the offset twice...
Campbell Barton [Tue, 6 Nov 2012 04:17:46 +0000 (04:17 +0000)]
bad use of assignment within ABS() caused SMHASH_NEXT macro to step the offset twice in some cases.

7 years agobugfix: nodes.new('FRAME') not working
Dalai Felinto [Tue, 6 Nov 2012 01:14:03 +0000 (01:14 +0000)]
bugfix: nodes.new('FRAME') not working
reported on irc by Peter Casseta

7 years agoavoid using function calls in macros that result in multiple function calls.
Campbell Barton [Tue, 6 Nov 2012 00:18:01 +0000 (00:18 +0000)]
avoid using function calls in macros that result in multiple function calls.

7 years agoBugfix: Missing ')' broke Cycles addon
Joshua Leung [Mon, 5 Nov 2012 23:13:09 +0000 (23:13 +0000)]
Bugfix: Missing ')' broke Cycles addon

7 years agoupdate fisheye tooltip - it was wrongly suggesting equidistant for fulldomes
Dalai Felinto [Mon, 5 Nov 2012 19:07:38 +0000 (19:07 +0000)]
update fisheye tooltip - it was wrongly suggesting equidistant for fulldomes

7 years agoFix for Math node:
Ton Roosendaal [Mon, 5 Nov 2012 15:58:35 +0000 (15:58 +0000)]
Fix for Math node:

A test variable needed to be absoluted (positive).
Gives expected resuts on negative raiser values.

(next; digging in opencl :)

(In old compo code too, not effective).

7 years agoBuildbot: blenderplayer configuration needs to define path to boost now
Sergey Sharybin [Mon, 5 Nov 2012 15:55:59 +0000 (15:55 +0000)]
Buildbot: blenderplayer configuration needs to define path to boost now

7 years agoSwitch glibc-2.7 buildbots to py3.3
Sergey Sharybin [Mon, 5 Nov 2012 15:28:48 +0000 (15:28 +0000)]
Switch glibc-2.7 buildbots to py3.3

7 years agoCompile fixes for recent boost changes
Antony Riakiotakis [Mon, 5 Nov 2012 15:23:09 +0000 (15:23 +0000)]
Compile fixes for recent boost changes

7 years agoFix for [#33090] "Segfault/Crash with Empty and Motion Actuator, Keyboard Sensor...
Mitchell Stokes [Mon, 5 Nov 2012 15:13:54 +0000 (15:13 +0000)]
Fix for [#33090] "Segfault/Crash with Empty and Motion Actuator, Keyboard Sensor" reported by Martin Felke (scorpion81).

Apparently, not all objects have physics controllers, so now we do a NULL check in KX_ObjectActuator.

7 years agohopefully fixes building on msvc, also some minor header edits
Campbell Barton [Mon, 5 Nov 2012 14:58:12 +0000 (14:58 +0000)]
hopefully fixes building on msvc, also some minor header edits

7 years agoRelease environment script: correction to python shm check
Sergey Sharybin [Mon, 5 Nov 2012 14:50:18 +0000 (14:50 +0000)]
Release environment script: correction to python shm check

7 years agoUpdate CMake rules for audaspace
Sergey Sharybin [Mon, 5 Nov 2012 14:47:28 +0000 (14:47 +0000)]
Update CMake rules for audaspace

7 years agoSequencer: input color space support for image and movie strips
Sergey Sharybin [Mon, 5 Nov 2012 14:44:29 +0000 (14:44 +0000)]
Sequencer: input color space support for image and movie strips

7 years agoavoid using BLI_array for remove double helper function - bmesh_find_doubles_common...
Campbell Barton [Mon, 5 Nov 2012 14:39:49 +0000 (14:39 +0000)]
avoid using BLI_array for remove double helper function - bmesh_find_doubles_common(), was growing and array one at a time (with re-allocs), when the size is known.

7 years agoAudaspace:
Joerg Mueller [Mon, 5 Nov 2012 14:24:35 +0000 (14:24 +0000)]
Audaspace:
Replacing AUD_Reference with boost::shared_ptr.

7 years agoBugfix #33085
Ton Roosendaal [Mon, 5 Nov 2012 14:09:08 +0000 (14:09 +0000)]
Bugfix #33085

Added "Set render border" in View menu, for 3D Viewports.

7 years agodefault to Python3.3 on Linux for SCons and CMake, warn when building with python...
Campbell Barton [Mon, 5 Nov 2012 13:48:42 +0000 (13:48 +0000)]
default to Python3.3 on Linux for SCons and CMake, warn when building with python 3.2x or older.

also remove casts to keep Python3.2 warning quiet.

7 years agoBugfix #33087
Ton Roosendaal [Mon, 5 Nov 2012 13:43:02 +0000 (13:43 +0000)]
Bugfix #33087

Shader nodes (Blender Internal), Math node Power() didn't accept negative
values for input. Added same code as for compositor case - only allow to
raise with integer values for negatives.

7 years agofix for freed pointer access in node_free_script()
Campbell Barton [Mon, 5 Nov 2012 13:33:48 +0000 (13:33 +0000)]
fix for freed pointer access in node_free_script()

7 years agoImprovement for text indentation: keep selection as good as possible
Sergey Sharybin [Mon, 5 Nov 2012 13:31:26 +0000 (13:31 +0000)]
Improvement for text indentation: keep selection as good as possible

Patch by Sebastian Nell, thanks!

7 years agoFix #31310: Thumbnails not generating with non Latin characters
Sergey Sharybin [Mon, 5 Nov 2012 13:00:33 +0000 (13:00 +0000)]
Fix #31310: Thumbnails not generating with non Latin characters

7 years agoHopefully fix for linking issue reported by osx users
Sergey Sharybin [Mon, 5 Nov 2012 12:18:19 +0000 (12:18 +0000)]
Hopefully fix for linking issue reported by osx users

7 years agoPartial revert of own rev44548.
Sergey Sharybin [Mon, 5 Nov 2012 12:11:43 +0000 (12:11 +0000)]
Partial revert of own rev44548.

That was more like workaround which solved particular issue with freestyle
rendering, but introduced some more uncontrollable issues, main of which is
recursive fracture would likely suffer from non-manifolds results of previous
step.

Boolean operation is not the only way to generate zero-area face, it could
also happen with character animation and it's indeed better be solved from
freestule side.

This should fix: #33041 Boolean difference sometimes produces meshes with holes

7 years agoStupid copy-paste typo in tiles commit.
Sergey Sharybin [Mon, 5 Nov 2012 11:57:14 +0000 (11:57 +0000)]
Stupid copy-paste typo in tiles commit.

That was an example how you should not code :)

7 years agoFix/workaround for carve aborts on windows
Sergey Sharybin [Mon, 5 Nov 2012 11:34:53 +0000 (11:34 +0000)]
Fix/workaround for carve aborts on windows

The issue was caused by passing start iterator larger than end iterator
to std::copy in triangulation module. It'll do nothing on linux but will
throw an exception on windows. Now behavior will be identical on both
platforms.

Proper solution would be to figure out why exactly this happened, but it's
easier to be forwarded to Tobias and we'll need to get rid of triangulation
anyway.

This should solve issues:
#30100: boolean intersect crashes blender
#33001: Crash on applying Boolean difference modifier
#33045: Boolean modifier crash with mirrored objects

7 years agofix [#33051] view selected (focus) bug
Campbell Barton [Mon, 5 Nov 2012 10:43:52 +0000 (10:43 +0000)]
fix [#33051] view selected (focus) bug

this was really a feature request!, previously the first cage vertex was used no matter what, but no the code checks to use the closest vertex to the original.

7 years agocode cleanup: use enums for view3d_snap transverts.
Campbell Barton [Mon, 5 Nov 2012 10:33:59 +0000 (10:33 +0000)]
code cleanup: use enums for view3d_snap transverts.

7 years agoChange a way how image sequence/movie source is detecting for movie clip
Sergey Sharybin [Mon, 5 Nov 2012 10:32:47 +0000 (10:32 +0000)]
Change a way how image sequence/movie source is detecting for movie clip

Use IMB_testiffname to check whether file could be handled by ImBuf or
whether it should be handled by anim routines.

It solves the issue when file without extension is used for movie clip.

7 years agoSlight better solution for sequencer's transform with alt holded down
Sergey Sharybin [Mon, 5 Nov 2012 10:15:58 +0000 (10:15 +0000)]
Slight better solution for sequencer's transform with alt holded down

Set T_ALT_TRANSFORM flag event handling function rather than accessing
window manager form flushing sequencer transform data.

Visual feedback about what exactly will happen on placing strip between
two other strips could be also improved.

7 years agoScript to configure release build environment
Sergey Sharybin [Mon, 5 Nov 2012 09:58:05 +0000 (09:58 +0000)]
Script to configure release build environment

This script was used to initialize build environment currently used
for glibc-2.11 builds.

It's supposed to be used on debian-based distros.

Usage is described in the top comment of the script.

It is highly recommended to use this script in the virtual machine
to prevent possible conflicts with your own configuration.

TODO:
- Add OSL configuration
- Script requires manual copying of some scripts still (see comments
  at the top of the script)

I would prefer this script be edited only in cases when it's really
needed, meaning i wouldn't be fan of changes like "just use latest
version of library XXX". It's not so safe to do such changes and it's
easy to upgrade libraries after environment was set up.

7 years agoUse enums rather than defines for clips/tracking flags.
Sergey Sharybin [Mon, 5 Nov 2012 09:40:00 +0000 (09:40 +0000)]
Use enums rather than defines for clips/tracking flags.

Helps a lot when debugging.

7 years agoSubversion bump for render tiles, motion tracking fallback option and collisions.
Sergey Sharybin [Mon, 5 Nov 2012 08:41:38 +0000 (08:41 +0000)]
Subversion bump for render tiles, motion tracking fallback option and collisions.

7 years agoBlender internal is using camera focal length when panorama rendering is used
Sergey Sharybin [Mon, 5 Nov 2012 08:19:58 +0000 (08:19 +0000)]
Blender internal is using camera focal length when panorama rendering is used

This means it doesn't make sense hiding focal length settings for panorama
camera if blender internal renderer is used.

7 years agoCycles: fix crash rendering textured objects in OpenCL
Sergey Sharybin [Mon, 5 Nov 2012 08:05:24 +0000 (08:05 +0000)]
Cycles: fix crash rendering textured objects in OpenCL

Issue was caused by changed order of texture slots -- float textures
have got lower slots indices than byte textures. OpenCL was still assuming
byte textures goes before float.

7 years agoRender engines: replace number of x/y tiles with tile size
Sergey Sharybin [Mon, 5 Nov 2012 08:05:14 +0000 (08:05 +0000)]
Render engines: replace number of x/y tiles with tile size

Now tile size is setting up explicitly instead of using number of tiles.

This allows better control over GPU performance, where having tiles aligned
to specific size makes lots of sense.

Still to come: need to update startup.blend  to make tiles size 64x64.

7 years agoCycles: memory usage report
Sergey Sharybin [Mon, 5 Nov 2012 08:04:57 +0000 (08:04 +0000)]
Cycles: memory usage report

This commit adds memory usage information while rendering.

It reports memory used by device, meaning:

- For CPU it'll report real memory consumption
- For GPU rendering it'll report GPU memory consumption, but it'll
  also mean the same memory is used from host side.

This information displays information about memory requested by Cycles,
not memory really allocated on a device. Real memory usage might be
higher because of memory fragmentation or optimistic memory allocator.

There's really nothing we can do against this.

Also in contrast with blender internal's render cycles memory usage
does not include memory used by scene, only memory needed by cycles
itself will be displayed. So don't freak out if memory usage reported
by cycles would be much lower than blender internal's.

This commit also adds RenderEngine.update_memory_stats callback which
is used to tell memory consumption from external engine to blender.
This information is used to generate information line after rendering
is finished.

7 years agoCycles: multi-gpu rendering doesn't know for sure which sample is being sampled,
Sergey Sharybin [Mon, 5 Nov 2012 08:04:41 +0000 (08:04 +0000)]
Cycles: multi-gpu rendering doesn't know for sure which sample is being sampled,
        so only report tile number is being processed

7 years agoCamera Tracking: proper display of current frame in cache line when sequence is too...
Sergey Sharybin [Mon, 5 Nov 2012 08:04:37 +0000 (08:04 +0000)]
Camera Tracking: proper display of current frame in cache line when sequence is too long

7 years agoCamera Tracking: allow fallback to reprojection resection by user demand
Sergey Sharybin [Mon, 5 Nov 2012 08:04:27 +0000 (08:04 +0000)]
Camera Tracking: allow fallback to reprojection resection by user demand

This fixes some "regressions" introduced in rev50781 which lead to much
worse solution in some cases. Now it's possible to bring old behavior back.

Perhaps it's more like temporal solution for time being smarter solution is
found. But finding such a solution isn't so fast, so let's bring manual
control over reprojection usage.

But anyway, imo it's now nice to have a structure which could be used to
pass different settings to the solver.

7 years agofix for save-as-legacy mesh format doing customdata asserts.
Campbell Barton [Mon, 5 Nov 2012 05:52:21 +0000 (05:52 +0000)]
fix for save-as-legacy mesh format doing customdata asserts.

7 years agofix issue with shrinkwrap face projection distance comparisons when using both positi...
Campbell Barton [Mon, 5 Nov 2012 05:07:57 +0000 (05:07 +0000)]
fix issue with shrinkwrap face projection distance comparisons when using both positive and negative projection.
- don't attempt to convert the 'dist' value between local/target space, since all the projections are done in target space
  and dist isnt used afterwards. Also, this could fail with non uniform scale - overwriting ray casts with larger dist values.
- added an assert to check larger dist values never overwrite smaller ones.
- remove use of sasqrt() since the value is checked beforehand anyway.

7 years agorevert own commit r34706 (fix for [#25801]), this causes bug [#25801].
Campbell Barton [Mon, 5 Nov 2012 04:38:58 +0000 (04:38 +0000)]
revert own commit r34706 (fix for [#25801]), this causes bug [#25801].

checking on this code further it still isn't working correctly, will commit other changes next.

7 years agostyle cleanup
Campbell Barton [Mon, 5 Nov 2012 04:19:30 +0000 (04:19 +0000)]
style cleanup

7 years agoCompile fix on Mingw:
Joshua Leung [Mon, 5 Nov 2012 02:40:10 +0000 (02:40 +0000)]
Compile fix on Mingw:

"interface" appeared to be a shadowed var (or even a macro/define elsewhere)
which was causing errors like:
intern\cycles\blender\blender_mesh.cpp:124:23: error: multiple types in one
declaration
intern\cycles\blender\blender_mesh.cpp:124:23: error: declaration does not
declare anything [-fpermissive]

7 years agoCycles: improve Anisotropic BSDF node, changing the Roughness U/V inputs to
Brecht Van Lommel [Sun, 4 Nov 2012 22:31:32 +0000 (22:31 +0000)]
Cycles: improve Anisotropic BSDF node, changing the Roughness U/V inputs to
Roughness, Anisotropy and Rotation. Also a fix for automatic tangents and
OSL attribute handling.

Meaning of new sockets explained in the documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Anisotropic