Commit Graph

42052 Commits

Author SHA1 Message Date
Alexander Pinzon
87108a7bc6 Solved the problem when WITH_PLAYER activated.
blenderplayer had not added the library Opennl, was added to the CMakeLists.txt file.
2012-10-24 19:24:55 +00:00
Campbell Barton
7c846bbe75 add section on how to run scripts in blender for the API intro, found there were no simple docs like this in the wiki.
also set the window type to normal on start when -p argument is given, since the view could be maximized/fullscreen.
2012-10-24 16:55:06 +00:00
Sergey Sharybin
1fecf8ff31 Patch #29142: Reduce hopping when switching between perspective and orthographic on 3D view
Patch by Yasuhiro Fujii, thanks!

Original issue was that in vases viewport's lens are different from default
value switching between perspective and orthographic projections will change
viewplane a lot, which is disorienting and annoying.
2012-10-24 16:15:46 +00:00
Campbell Barton
f07b291591 fix for maximized startup blend preventing -p command line argument from working. 2012-10-24 16:15:36 +00:00
Jeroen Bakker
2dbc6e56b4 set default value of defocus maxblur when this is unset during reading. 2012-10-24 16:00:27 +00:00
Sergey Sharybin
68249f4ed6 Patch #31641: Text editor: unindent even if no selection
Patch by Sebastian Nell, thanks!

Still not ideal (it could some smarter selection policy in such case perhaps),
but it's less annoying than it was before.
2012-10-24 15:43:42 +00:00
Campbell Barton
eab6d5bf72 made mistake of saving last startup.blend on my second monitor, looks like this stores absolute position and messes up using '-p' argument.
also add file menu to '3D View Full', since we had quite a few complaints there was no obvious way to get back out of the screen.
2012-10-24 15:38:38 +00:00
Ton Roosendaal
927e14376f Bugfix #31527
Using "outliner data operation" on vertexgroup suggested it should work, but this is not
supported yet. Similar to all the other cases it throws a Report warning now.
2012-10-24 14:45:23 +00:00
Sergey Sharybin
d4ee07537e Fix #32951: Progressive refine crashing Blender when used with multiple cuda devices
This time issue was caused by Save Buffers enabled and the reason blender
crashed was tiles generated by cycles didn't match tiles generated by
openexr.

Currently solved it in a way that background rendering will allocate tiles
in the same way render parts are generated in blender. Viewport rendering
will still be using sliced image, but it's more tricky to change and it's
no so big deal for now.
2012-10-24 14:43:29 +00:00
Bastien Montagne
e2874259ae Unhide "simplify stroke" option of Grease Pencil strokes in userpref UI... Looks like it was commented out since r22353 (more than three years!), and could not find a valid reason for this… 2012-10-24 14:25:32 +00:00
Jeroen Bakker
a49b1d7b5e Oeps... Enabled the pixelate node added documentation, removed unneeded
code
2012-10-24 13:43:32 +00:00
Ton Roosendaal
f746f3ea09 Bugfix #32496
You don't believe it, this bug traces back to 2002. Went by unreported for a decade.

If you link in an object, delete it, and relink again its materials are lost!
Easy fix, annoying error. :)
2012-10-24 13:24:34 +00:00
Lukas Toenne
2af81d4a5e Fix #32835, Reroute node on shading nodes connection gives wrong renders.
Problem here is that muted nodes and reroute nodes are supposed to be removed from the execution node tree during the localize function. However, this is function is apparently only used during preview renders and must be considered a hack (is there anything that is not a hack in BI?)

Now the mute/reroute check happens in the node tree exec functions still used by BI and the legacy compositor and texture nodes. It uses the same internal_connect function from nodes to assign input stack indices directly to outputs (which also avoids overhead). Localize function also still does this. Cycles/Tile should also implement muting/reroute in their intermediate node layers by using this function, then it could be removed from localize too.
2012-10-24 12:57:48 +00:00
Campbell Barton
0a3e0b816c no need to update normals when running edge-split modifier since the normals are now set on conversion.
don't show 'Auto-Key' message when in editmode.
2012-10-24 11:53:48 +00:00
Campbell Barton
f40d77ec96 reneme volume_preservation -> use_volume_preserve 2012-10-24 11:44:32 +00:00
Campbell Barton
c93978d445 code cleanup: some edits for unused vars in recent smooth addition and some style edits. 2012-10-24 11:31:57 +00:00
Thomas Dinges
e4fcc07a10 UI fixes for Laplacian Smooth (r51578):
* Make UI look more like Smooth Modifier.
* Don't use RNA property names like "lamb", use a more descriptive one instead.
2012-10-24 11:13:43 +00:00
Thomas Dinges
ba48c94a8b Compile fix for r51578:
* Scons include missed the comma, caused Bullet Include to fail.
2012-10-24 10:54:50 +00:00
Daniel Genrich
3ce334e188 Merge GSoC project from branch: Laplacian Smooth (Operator & Modifier)
by Alexander Pinzon Fernandez (apinzonf)

Supported by Google Summer of Code 2012

Project Documentation:
http://wiki.blender.org/index.php/User:Apinzonf

Manual Page:
http://wiki.blender.org/index.php/User:Apinzonf/Doc:2.6/Manual/Modifiers/Deform/Laplacian_Smooth
2012-10-24 10:39:11 +00:00
Bastien Montagne
d739536103 Back to "Espanol" (instead os "Castellano"), as it looks to be the standard for softwares... 2012-10-24 10:09:48 +00:00
Lukas Toenne
cbae51bc93 Removed the experimental (and commented-out) code for FOR and WHILE loops in nodes. This was a feature i tested a while back but was only partially supported by Blender Internal renderer and the old compositor. The main idea was to have nodes that automatically mirror input and output sockets to support incremental changes of "internal variables".
It is not a well-supported feature of the primary node systems (shader, compositor, texture) in Blender. If anybody wants to create a node system that has actual use for loops, they can do so much more elegantly with Python nodes, but it does not have to be a core node type in Blender. Removing this should ease node code maintenance a bit.
2012-10-24 10:00:28 +00:00
Ton Roosendaal
c9e489b53b Bugfix #32617
Text object render error.

Issue was caused by FLT_EPSILON being used to check for zero-sized faces, for
getting a reliable normal of front/backfaces of polygons. This value is too
small, giving occasional bad looking faces.

In other parts of code FLT_EPSILON10 was being used, that works much better.

Note for the future: here using doubles internally would be advised.
2012-10-24 09:33:29 +00:00
Campbell Barton
6d79568f66 style cleanup 2012-10-24 09:07:54 +00:00
Jeroen Bakker
b0fc0baafe Updated crop image setting to make every pixel outside the crop black as
it is expected.

Fix for [#32955] Compositer "Crop" node option "Crop Image Size" doesn't
really crop the input image
2012-10-24 08:59:36 +00:00
Jeroen Bakker
0fb9b7beda Adding a pixelate node.
This makes it possible to create pixelized scale in the Tile compositor.

Just append the node in front of a scale node or where you want the pixelization to take place.

There were some bugs on this subject, but they used the work around to add a blur size of 0 in the place where they need the pixelization.
2012-10-24 08:36:10 +00:00
Campbell Barton
0cba4e6d6f use smaller type for kdopbvh - this change was made as a size optimization, and I moved back to ints since there were many int comparisons.
now define axis_t and an unsugned char.
2012-10-24 08:16:49 +00:00
Campbell Barton
2de2acc681 add CDDM_from_bmesh(), avoids using BMEditMesh in modifiers. 2012-10-24 07:24:11 +00:00
Campbell Barton
879d92062a code cleanup: move doxy comments into the C files. 2012-10-24 06:08:28 +00:00
Campbell Barton
3fab39f76f style cleanup: modifier structs 2012-10-24 05:45:54 +00:00
Campbell Barton
dd36983520 enable decimate modifier for curves. 2012-10-24 05:44:27 +00:00
Campbell Barton
90f4ed3a0e use int's for kdopbvh start/stop axis since there were loops comparing with other ints. 2012-10-24 05:08:33 +00:00
Campbell Barton
81eafc49e6 use min_ii/max_ii over MIN2 MAX2 2012-10-24 05:06:40 +00:00
Campbell Barton
db250a48f6 fix [#32855] Obj im and export and the file path and name
file selector now uses previously used settings for operators rather then over riding them with the currently open blend file.
2012-10-24 04:29:35 +00:00
Campbell Barton
cbc734dd79 comment R_SEQ_GL_REND flag, opengl render now does gl previews. 2012-10-24 03:37:32 +00:00
Campbell Barton
69f0a3164b - enable GPU mipmap generation by default (Sergey and I wanted to change this before but it was too close to release).
- set opengl-solid display for the sequencer preview.
2012-10-24 03:35:43 +00:00
Campbell Barton
17530108f4 enable rendering from the sequencer again. this was working since 2.4x and shouldn't have been disabled. 2012-10-24 03:27:11 +00:00
Campbell Barton
2da6039e63 rename axis_primary_v3() to max_axis_v3() to avoid confusion with axis_dominant_v3(). also add min_axis_v3(). 2012-10-24 02:25:00 +00:00
Janne Karhu
9055ec3e0a Final fix for [#31017] Particles not generated on Grid Distribution
* In some cases a quad would be intersected twice so particles near this double-intersection point were not generated in grid distribution due to being marked as outside the surface.
2012-10-24 01:43:59 +00:00
Nicholas Bishop
1dadd3b7c6 Partially replace convex hull implementation with Bullet implementation
* Bullet's convex hull implementation is significantly more robust
  than the one I implemented, as well as being faster.

* This fixes bug [#32864] "Convex Hull fails in some cases."
  projects.blender.org/tracker/?func=detail&aid=32864&group_id=9&atid=498

  That bug, and others like it, relate to the poor handling of
  co-planar surfaces in the input. Pretty much any model that is
  simple-subdivided a few times gave very bad results before, Bullet's
  implementation handles this much better.

* In order to ensure a smooth transition, the Bullet output is
  translated into the existing HullTriangle hash structure. This makes
  it easy to ensure that the existing slot output stays the same; the
  interactions between the slots are somewhat complicated, detangling
  is a TODO.

* Reviewed by Brecht:
  https://codereview.appspot.com/6741063
2012-10-23 23:54:15 +00:00
Nicholas Bishop
0b16c9e201 Patch Bullet to make it's convex hull implementation usable in BMesh
* Add access to the original indices for vertices

* Add a very simple C API for convex hull

* Add this patch to the patches folder and update readme.txt
2012-10-23 23:54:02 +00:00
Bastien Montagne
baa4fc68a8 Separate languages file generation code into its own script (much better this way, so that we can regenerate that file without update whole trunk!).
Also add es_ES (Spanish from Spain) language, as we have a po for it!
2012-10-23 20:39:26 +00:00
Bastien Montagne
9edec9f0f3 Fix #2 for [#32954] Crash when activating 'International Fonts' in User Preferences
I though allocating zero-sized mem would return a NULL pointer, but it looks like it does not... :/ Anyway, Blender should no more crash in case languages file is missing, will just use default (system) locale...
2012-10-23 19:39:32 +00:00
Brecht Van Lommel
84032e97aa Fix #27834: AAO color bleeding failure case with raytraced shadows. 2012-10-23 19:10:21 +00:00
Howard Trickey
be5e2a0dd4 Fix knife sensitivity issue (#30637): better calculation of how
to clamp distances in ortho mode.
2012-10-23 18:17:51 +00:00
Sergey Sharybin
9756c85239 Fix #32954: Crash when activating 'International Fonts' in User Preferences 2012-10-23 17:58:46 +00:00
Sergey Sharybin
40242c2f44 Cycles: update buffers only once in a while when progressive refine is used
It'll mimic the same behavior as regular tile rendering update and it should
give pretty noticeable boost on simpler scenes.
2012-10-23 17:24:23 +00:00
Sergey Sharybin
a32d134dc7 Solve unresolved call of min(int&, unsigned int&)
Alternative could be using unsigned ints for min/max chunks.
2012-10-23 16:46:13 +00:00
Sergey Sharybin
933864da18 Fix #32951: Progressive refine crashing Blender when used with multiple cuda
Issue was caused by offline rendering could have been allocated the same tile
to different devices and in this case buffers would become invalid.

Made it more clear in the code, so now it's  flag for tile manager to indicate
whether tiles should always be allocated for the same device or not.

Also cleaned a way how tile index for progressive refine is calculating,
which is now avoids tricky computation based on tile coordinate and it's
dimensions.
2012-10-23 16:36:53 +00:00
Campbell Barton
e038a1c613 reduce float comparisons for keying operation and despill. 2012-10-23 16:32:39 +00:00
Campbell Barton
fec81d9b56 use min_ max_ functions in more places.
also fix minor error in MOD decimate when the modifier did nothing the reported face count would be wrong.
2012-10-23 16:21:55 +00:00