Commit Graph

42328 Commits

Author SHA1 Message Date
Joerg Mueller
5a8d5f77af Audaspace:
Replacing AUD_Reference with boost::shared_ptr.
2012-11-05 14:24:35 +00:00
Ton Roosendaal
0f9559fe71 Bugfix #33085
Added "Set render border" in View menu, for 3D Viewports.
2012-11-05 14:09:08 +00:00
Campbell Barton
004f8d78ed 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.
2012-11-05 13:48:42 +00:00
Ton Roosendaal
6ee3bf5300 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.
2012-11-05 13:43:02 +00:00
Campbell Barton
cf30cb2cff fix for freed pointer access in node_free_script() 2012-11-05 13:33:48 +00:00
Sergey Sharybin
4ad749bc13 Improvement for text indentation: keep selection as good as possible
Patch by Sebastian Nell, thanks!
2012-11-05 13:31:26 +00:00
Sergey Sharybin
856b0f09dc Fix #31310: Thumbnails not generating with non Latin characters 2012-11-05 13:00:33 +00:00
Sergey Sharybin
57ce929ade Hopefully fix for linking issue reported by osx users 2012-11-05 12:18:19 +00:00
Sergey Sharybin
1231232169 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
2012-11-05 12:11:43 +00:00
Sergey Sharybin
b74ba5c595 Stupid copy-paste typo in tiles commit.
That was an example how you should not code :)
2012-11-05 11:57:14 +00:00
Sergey Sharybin
c4a422ffbb 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
2012-11-05 11:34:53 +00:00
Campbell Barton
77bf273e1b 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.
2012-11-05 10:43:52 +00:00
Campbell Barton
29ef22a5fd code cleanup: use enums for view3d_snap transverts. 2012-11-05 10:33:59 +00:00
Sergey Sharybin
316d33ea0b 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.
2012-11-05 10:32:47 +00:00
Sergey Sharybin
71b8469e3b 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.
2012-11-05 10:15:58 +00:00
Sergey Sharybin
6d8e55545d 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.
2012-11-05 09:58:05 +00:00
Sergey Sharybin
fdcf4e3385 Use enums rather than defines for clips/tracking flags.
Helps a lot when debugging.
2012-11-05 09:40:00 +00:00
Sergey Sharybin
c557f6f0b6 Subversion bump for render tiles, motion tracking fallback option and collisions. 2012-11-05 08:41:38 +00:00
Sergey Sharybin
b6bb65cd21 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.
2012-11-05 08:19:58 +00:00
Sergey Sharybin
540c9d4208 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.
2012-11-05 08:05:24 +00:00
Sergey Sharybin
759ea40787 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.
2012-11-05 08:05:14 +00:00
Sergey Sharybin
6eec49ed20 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.
2012-11-05 08:04:57 +00:00
Sergey Sharybin
d71004ea69 Cycles: multi-gpu rendering doesn't know for sure which sample is being sampled,
so only report tile number is being processed
2012-11-05 08:04:41 +00:00
Sergey Sharybin
0ef0eddeb2 Camera Tracking: proper display of current frame in cache line when sequence is too long 2012-11-05 08:04:37 +00:00
Sergey Sharybin
3bd7816c75 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.
2012-11-05 08:04:27 +00:00
Campbell Barton
008630abfc fix for save-as-legacy mesh format doing customdata asserts. 2012-11-05 05:52:21 +00:00
Campbell Barton
88c5b1408c 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.
2012-11-05 05:07:57 +00:00
Campbell Barton
e894549e5e 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.
2012-11-05 04:38:58 +00:00
Campbell Barton
82a8556f90 style cleanup 2012-11-05 04:19:30 +00:00
Joshua Leung
ead0005b20 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]
2012-11-05 02:40:10 +00:00
Brecht Van Lommel
2ba840652d 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
2012-11-04 22:31:32 +00:00
Brecht Van Lommel
110a36a8ab Fix part of #33055: uv mapping did not use the right image from the material to
do aspect ratio correction when cycles was enabled.
2012-11-04 22:31:21 +00:00
Mitchell Stokes
f840bd4a9f BGE: This patch adds a character wrapper (similar to the already implemented vehicle wrapper) to control character physics options. Currently supported options are:
* jump() -- causes the character to jump
  * onGround -- specifies whether or not the character is on the ground
  * gravity -- controls the "gravity" that the character physics uses for the character

More options could be added (such as jump speed, step height, make fall speed, max slope, etc).
2012-11-04 20:56:02 +00:00
Dalai Felinto
cc77001416 auto-link solo-nodes when making group
if make group is called with only one node selected ALL the node sockets are linked to the node group

with help+review from Lukas Toenne

This patch aims towards motivating users to use Group Node to share OSL nodes
2012-11-04 19:18:12 +00:00
Thomas Dinges
83b5d7d2cd Editors UI:
* Add "Toggle Full Screen" and "Duplicate Area into New Window" operators to the view menu, was missing in those 2 operators. Patch [#33076] by Harley Acheson, thanks.

* Also moved those two operators to the top in text editor, for consistency.
2012-11-04 18:26:30 +00:00
Thomas Dinges
35c6e592e3 Image Editor Operators:
* Tool tip improvements for two operators.

Patch [#33077] by Harley Acheson, thanks!
2012-11-04 18:05:25 +00:00
Campbell Barton
e76b99e7b0 fix own error in r51819, was reading outside of the buffer, also comment unused vars. 2012-11-04 14:46:20 +00:00
Ton Roosendaal
35e5432029 Possible bugfix 32474
Windows systems: text editor, text object, doesn't allow to input the standard
set of ALT+key characters (the ones coming from the OS).

- Reverted fix january 2012 - that meant to use text object ALT+keys
- Removed old (90ies) feature for hardcoded special characters in Text object.
  (OS delivers this now)

Will wait for confirmation by windows compiler :)
2012-11-04 13:34:13 +00:00
Ton Roosendaal
5b33146875 Bugfix #32987
"Set origin to cursor" tool failed for parented/rotated objects.
Matrix mashup.

Thanks to Ben Batt for the fix!
2012-11-04 12:33:58 +00:00
Ton Roosendaal
2a8ce1f121 Bugfix #33074
In armature editmode, with mirroring, after duplication of a bone and using
the Wkey "flip names" you get a crash. Code for naming was accessing a NULL
in the bPose channel - not set until leaving editmode.

Thanks to Ben Batt for tackling the issue :)
2012-11-04 12:13:26 +00:00
Lukas Toenne
f32113bbc8 Node reroute cut operator update.
Cutting mulitple links with for inserting reroute nodes would previously insert only one reroute node for the first cut link.

Now the operator will insert a reroute node for every link in the cut line. Also, if several links share the same input/output socket, it will insert only a single reroute node, which all affected links will then share.
2012-11-04 11:57:49 +00:00
Ton Roosendaal
2122eda05a Bugfix 33075
Nodes could use duplicated memory - and on free you get duplicate-free errors.
Affected texture nodes, but I suspect compositing too.

Fix found by Philipp Oeser. Thanks!
2012-11-04 11:53:13 +00:00
Campbell Barton
7579a9ec37 code cleanup: double promotions 2012-11-04 10:20:16 +00:00
Campbell Barton
fae6c35ca7 code cleanup: quiet -Wdouble-promotion, disabled this warnings for a few files since its done throughout the code in some places. 2012-11-04 07:18:29 +00:00
Campbell Barton
89a454653e code cleanup: replace macro with inline function for dynamic paint. 2012-11-04 06:21:09 +00:00
Thomas Dinges
2f2c0a51a5 Fix for r51837.
* mat->nodetree is accessed regardless of whether or not the material node is in use-

Patch provided by Tamito Kajiyama, thanks!
2012-11-04 01:32:39 +00:00
Thomas Dinges
61bc63799e UI Tweak:
* Use alignment for thread buttons in BI, same as in Cycles.
2012-11-04 01:05:25 +00:00
Thomas Dinges
9720251bb2 3D View UI:
* Patch [#33073] Remove Extra Menu Level from Object Parent and Track
* Did not commit the icon changes here, separator line should be sufficient. 

Patch by Harley Acheson, thanks!
2012-11-04 00:54:12 +00:00
Thomas Dinges
13e7dddebd Node UI:
* Add 3 more operators to the Node menu.

node.join [join selected nodes in a new frame]
node.detach [remove selected nodes from their frame]
node.links_detach [remove all links to selected nodes and try to reconnect neighboring nodes together]

Patch by Philipp Oeser, thanks!
2012-11-04 00:46:26 +00:00
Mitchell Stokes
4fe8e5e364 Ton's last do_versions commit got rid of do_versions code for collision masks. Adding it back in so collision in the BGE work again. 2012-11-04 00:37:45 +00:00