blender.git
6 years agoSupport for string and index lookup operators on collections in the C++ RNA API.
Lukas Toenne [Thu, 25 Oct 2012 15:42:36 +0000 (15:42 +0000)]
Support for string and index lookup operators on collections in the C++ RNA API.

6 years agoFix issue after commit 50282: float texture painting non-color data textures did
Brecht Van Lommel [Thu, 25 Oct 2012 15:25:28 +0000 (15:25 +0000)]
Fix issue after commit 50282: float texture painting non-color data textures did
not do correct partial updates, now it remembers if the opengl texture is a
non-color data texture or not and takes that into account for the update.

Also includes some renaming ncd => is_data for consistency with color space
terminology used elsewhere.

6 years agofix (own issue with recent addition) [#32966] wireframe shading doesn't work right...
Campbell Barton [Thu, 25 Oct 2012 15:11:02 +0000 (15:11 +0000)]
fix (own issue with recent addition) [#32966] wireframe shading doesn't work right with decimator unsubdivide mode

6 years agoBugfix #24343
Ton Roosendaal [Thu, 25 Oct 2012 14:49:50 +0000 (14:49 +0000)]
Bugfix #24343

Ancient 2.5 UI issue:

The button views in Property Editor have an internal storage, to ensure the view
on the buttons stays same when you switch contextes or select objects.

Bug was that - in case buttons were all scrolled invisible - sometimes no slider
was drawn to indicate that.

Discussion on whether this is a good feature or not: the only improvement would
be to store such settings even per object... but that's a feature creep I think.

6 years agoFix for cmake syntax error: LLVM_VERSION string was not configurable, causing linker...
Lukas Toenne [Thu, 25 Oct 2012 14:31:52 +0000 (14:31 +0000)]
Fix for cmake syntax error: LLVM_VERSION string was not configurable, causing linker errors for people not using the default LLVM version (3.0 on Linux, 3.1 on OSX).

6 years agoUI: datablock selector widgets now show as a tooltip the datablock description
Brecht Van Lommel [Thu, 25 Oct 2012 13:32:05 +0000 (13:32 +0000)]
UI: datablock selector widgets now show as a tooltip the datablock description
from RNA, instead of the less useful "Unique datablock ID name".

6 years agoCamera: bring Title Safe display up to date, making it a Safe Areas option that
Brecht Van Lommel [Thu, 25 Oct 2012 13:31:45 +0000 (13:31 +0000)]
Camera: bring Title Safe display up to date, making it a Safe Areas option that
shows both title safe and action safe areas following more modern standards.

Patch #32822 by Harley Acheson, full description:

Our current "title safe" camera display option is anachronistic. It shows a
border of 10% on all edges, which used to be the recommended title safe area
for 4:3 content on standard definition CRT televisions. However we are very
unlikely to create new projects that output for SD TV at that aspect ratio.

This patch change the option to "safe areas" with and indicates the
"title safe" area (also known as "graphic safe") as well as the "action safe"
area. "Title Safe" is an area visible by all reasonably maintained sets, where
text was certain not to be cut off. "Action Safe" is a larger area that
represented where a "perfect" set (with high precision to allow less
overscanning) would cut the image off.

The current recommendation for Action Safe is 3.5% on all edges, which is the
maxiumum overscan for TVs now. The recommended title safe is now 5% vertically
and 10% horizontally for content that is of wider aspect ratio than 4:3. The
reason for the difference between horizontal versus vertical margin is because
wider content would be letterboxed on an older 4:3 television, giving it
additional margin.

6 years agoFix for strict compiler setup
Sergey Sharybin [Thu, 25 Oct 2012 13:12:37 +0000 (13:12 +0000)]
Fix for strict compiler setup

6 years agoUI: add hide/show menus item in header right click menu (same as +/- button).
Brecht Van Lommel [Thu, 25 Oct 2012 13:08:47 +0000 (13:08 +0000)]
UI: add hide/show menus item in header right click menu (same as +/- button).

Patch #32872 by Harley Acheson.

6 years agoBetter fix for #32837: DDS compressed textures now no longer need to be flipped
Brecht Van Lommel [Thu, 25 Oct 2012 12:54:16 +0000 (12:54 +0000)]
Better fix for #32837: DDS compressed textures now no longer need to be flipped
when saving, rather we flip the compressed texture during load. The code used
here comes from the chromium O3D project:
http://src.chromium.org/chrome/trunk/o3d/core/cross/bitmap_dds.cc

Also made it only load compressed for power-of-two resolution images, it doesn't
seem to work for other resolutions, just falls back to non-compressed then.

6 years agoBugfix #28298
Ton Roosendaal [Thu, 25 Oct 2012 12:53:27 +0000 (12:53 +0000)]
Bugfix #28298

When I added DPI support in the UI, I added code that refreshes views for 2d
regions. These refreshes also happened on screen switches or file select, causing
header views (horizontal scrolled) to clear.

Now the code less intrusive, changing header views in fewer cases.

This is a patch provided by Anthony Edlin. Thanks dude!

6 years agoCycles: use simplier strategy in next_tile for viewport rendering
Sergey Sharybin [Thu, 25 Oct 2012 12:03:36 +0000 (12:03 +0000)]
Cycles: use simplier strategy in next_tile for viewport rendering

No need to find tile closest to rendered center in this case, just
return first possible tile. Saves some computation power.

6 years agofix for nasty bug with frame dropping playback.
Campbell Barton [Thu, 25 Oct 2012 11:48:56 +0000 (11:48 +0000)]
fix for nasty bug with frame dropping playback.

When playback was running fast the frame step could be 0, making playback jittery.
this commit just makes sure the frame step is at least 1, but there is still an issue with framedrop skipping too many frames (or too few) which Ill check on next.

6 years agoUsability improvement!
Ton Roosendaal [Thu, 25 Oct 2012 11:18:05 +0000 (11:18 +0000)]
Usability improvement!

Duplicators and particles are now part of the selection code (mouse clicks).
Very annoying you couldn't select hair, particles or duplication systems.

6 years agoBugfix #32962
Ton Roosendaal [Thu, 25 Oct 2012 10:51:03 +0000 (10:51 +0000)]
Bugfix #32962

Menu buttons: the text label in a button was clipped on right too soon, there's
more space. Noticable especially on popup buttons with labels like "X" or "Y".

6 years agoAudaspace:
Joerg Mueller [Thu, 25 Oct 2012 10:42:09 +0000 (10:42 +0000)]
Audaspace:

OpenAL multichannel playback support fixed. This should fix bug [#31561] Audio only coming from Front Left in layout and bge.

6 years agoAudaspace:
Joerg Mueller [Thu, 25 Oct 2012 10:25:30 +0000 (10:25 +0000)]
Audaspace:

Fix for channel mapping bug. Now 7.1 channels should get mapped correctly.

6 years agoCleanup: remove old, commented code for constraints' space conversion for bones.
Bastien Montagne [Thu, 25 Oct 2012 10:14:35 +0000 (10:14 +0000)]
Cleanup: remove old, commented code for constraints' space conversion for bones.

6 years agoskip updating tessface customdata layers when joining meshes & clear tessface data...
Campbell Barton [Thu, 25 Oct 2012 08:48:05 +0000 (08:48 +0000)]
skip updating tessface customdata layers when joining meshes & clear tessface data on the target mesh so stale tessface data isnt used.

6 years agofix for build error in own commit with non gcc compilers. (and remove invalid comment)
Campbell Barton [Thu, 25 Oct 2012 07:53:11 +0000 (07:53 +0000)]
fix for build error in own commit with non gcc compilers. (and remove invalid comment)

6 years agobmesh todo: dont calculate normals in editmesh with modifiers applied, its assumed...
Campbell Barton [Thu, 25 Oct 2012 04:58:27 +0000 (04:58 +0000)]
bmesh todo: dont calculate normals in editmesh with modifiers applied, its assumed modifiers output correct normals at the moment.

6 years agoadd BLI_STATIC_ASSERT macro.
Campbell Barton [Thu, 25 Oct 2012 04:44:46 +0000 (04:44 +0000)]
add BLI_STATIC_ASSERT macro.

6 years agoVarious convex hull fixes
Nicholas Bishop [Thu, 25 Oct 2012 04:08:51 +0000 (04:08 +0000)]
Various convex hull fixes

* Lower the required number of vertices from four to three. The new
  backend correctly outputs a triangle in this case.

* Fix the check for the number of input vertices. Before it was
  counting total number of input elements including edges and faces.

* Don't mark edges as holes if they are loose.

* Don't allow duplicate faces to be created.

* If use_existing_faces isn't enabled, but a face in the convex hull
  has the same vertices as an existing face in the mesh, mark it as
  output geometry rather than interior geometry.

* Fixes bug [#32960] Convex hull operator crashes when 'make holes' is
  selected.
  projects.blender.org/tracker/?func=detail&atid=498&aid=32960&group_id=9

6 years agohide text overlays when 'Only Render' option is enabled.
Campbell Barton [Thu, 25 Oct 2012 03:10:35 +0000 (03:10 +0000)]
hide text overlays when 'Only Render' option is enabled.

6 years agofix [#32938] The Splash Screen doesn't show up correctly .....
Campbell Barton [Thu, 25 Oct 2012 02:57:55 +0000 (02:57 +0000)]
fix [#32938] The Splash Screen doesn't show up correctly .....

applying window clipping to the splash on startup gave strange/annoying problems.

6 years agoFix #32964: IK constraint had a "Target" option, which actually is an internal
Brecht Van Lommel [Wed, 24 Oct 2012 22:36:06 +0000 (22:36 +0000)]
Fix #32964: IK constraint had a "Target" option, which actually is an internal
flag that shouldn't have been exposed in the user interface. Also avoided many
calls to pchan.is_in_ik_chain in UI script, it's somewhat slow.

6 years agoCycles UI: keep node input sockets collapsed by default in the properties editor,
Brecht Van Lommel [Wed, 24 Oct 2012 21:57:16 +0000 (21:57 +0000)]
Cycles UI: keep node input sockets collapsed by default in the properties editor,
when doing the linking in the node editor, to keep the properties editor more
clean in this case.

6 years agoFix #30940: layout.prop_search() item not drawing correct inside menus.
Brecht Van Lommel [Wed, 24 Oct 2012 21:57:07 +0000 (21:57 +0000)]
Fix #30940: layout.prop_search() item not drawing correct inside menus.

6 years agoAudaspace:
Joerg Mueller [Wed, 24 Oct 2012 21:33:44 +0000 (21:33 +0000)]
Audaspace:

RAII locking implementation. This should fix bug [#32096] Background music stops when playing 3D sounds.

6 years agoFix #31894: cycles node muting not working, was not implemented yet.
Brecht Van Lommel [Wed, 24 Oct 2012 21:05:44 +0000 (21:05 +0000)]
Fix #31894: cycles node muting not working, was not implemented yet.

6 years agoFix blender player link error with scons, include opennl for lapacian smooth modifier.
Brecht Van Lommel [Wed, 24 Oct 2012 19:26:00 +0000 (19:26 +0000)]
Fix blender player link error with scons, include opennl for lapacian smooth modifier.

6 years agoSolved the problem when WITH_PLAYER activated.
Alexander Pinzon [Wed, 24 Oct 2012 19:24:55 +0000 (19:24 +0000)]
Solved the problem when WITH_PLAYER activated.
blenderplayer had not added the library Opennl, was added to the CMakeLists.txt file.

6 years agoadd section on how to run scripts in blender for the API intro, found there were...
Campbell Barton [Wed, 24 Oct 2012 16:55:06 +0000 (16:55 +0000)]
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.

6 years agoPatch #29142: Reduce hopping when switching between perspective and orthographic...
Sergey Sharybin [Wed, 24 Oct 2012 16:15:46 +0000 (16:15 +0000)]
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.

6 years agofix for maximized startup blend preventing -p command line argument from working.
Campbell Barton [Wed, 24 Oct 2012 16:15:36 +0000 (16:15 +0000)]
fix for maximized startup blend preventing -p command line argument from working.

6 years agoset default value of defocus maxblur when this is unset during reading.
Jeroen Bakker [Wed, 24 Oct 2012 16:00:27 +0000 (16:00 +0000)]
set default value of defocus maxblur when this is unset during reading.

6 years agoPatch #31641: Text editor: unindent even if no selection
Sergey Sharybin [Wed, 24 Oct 2012 15:43:42 +0000 (15:43 +0000)]
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.

6 years agomade mistake of saving last startup.blend on my second monitor, looks like this store...
Campbell Barton [Wed, 24 Oct 2012 15:38:38 +0000 (15:38 +0000)]
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.

6 years agoBugfix #31527
Ton Roosendaal [Wed, 24 Oct 2012 14:45:23 +0000 (14:45 +0000)]
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.

6 years agoFix #32951: Progressive refine crashing Blender when used with multiple cuda devices
Sergey Sharybin [Wed, 24 Oct 2012 14:43:29 +0000 (14:43 +0000)]
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.

6 years agoUnhide "simplify stroke" option of Grease Pencil strokes in userpref UI... Looks...
Bastien Montagne [Wed, 24 Oct 2012 14:25:32 +0000 (14:25 +0000)]
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…

6 years agoOeps... Enabled the pixelate node added documentation, removed unneeded
Jeroen Bakker [Wed, 24 Oct 2012 13:43:32 +0000 (13:43 +0000)]
Oeps... Enabled the pixelate node added documentation, removed unneeded
code

6 years agoBugfix #32496
Ton Roosendaal [Wed, 24 Oct 2012 13:24:34 +0000 (13:24 +0000)]
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. :)

6 years agoFix #32835, Reroute node on shading nodes connection gives wrong renders.
Lukas Toenne [Wed, 24 Oct 2012 12:57:48 +0000 (12:57 +0000)]
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.

6 years agono need to update normals when running edge-split modifier since the normals are...
Campbell Barton [Wed, 24 Oct 2012 11:53:48 +0000 (11:53 +0000)]
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.

6 years agoreneme volume_preservation -> use_volume_preserve
Campbell Barton [Wed, 24 Oct 2012 11:44:32 +0000 (11:44 +0000)]
reneme volume_preservation -> use_volume_preserve

6 years agocode cleanup: some edits for unused vars in recent smooth addition and some style...
Campbell Barton [Wed, 24 Oct 2012 11:31:57 +0000 (11:31 +0000)]
code cleanup: some edits for unused vars in recent smooth addition and some style edits.

6 years agoUI fixes for Laplacian Smooth (r51578):
Thomas Dinges [Wed, 24 Oct 2012 11:13:43 +0000 (11:13 +0000)]
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.

6 years agoCompile fix for r51578:
Thomas Dinges [Wed, 24 Oct 2012 10:54:50 +0000 (10:54 +0000)]
Compile fix for r51578:
* Scons include missed the comma, caused Bullet Include to fail.

6 years agoMerge GSoC project from branch: Laplacian Smooth (Operator & Modifier)
Daniel Genrich [Wed, 24 Oct 2012 10:39:11 +0000 (10:39 +0000)]
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

6 years agoBack to "Espanol" (instead os "Castellano"), as it looks to be the standard for softw...
Bastien Montagne [Wed, 24 Oct 2012 10:09:48 +0000 (10:09 +0000)]
Back to "Espanol" (instead os "Castellano"), as it looks to be the standard for softwares...

6 years agoRemoved the experimental (and commented-out) code for FOR and WHILE loops in nodes...
Lukas Toenne [Wed, 24 Oct 2012 10:00:28 +0000 (10:00 +0000)]
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.

6 years agoBugfix #32617
Ton Roosendaal [Wed, 24 Oct 2012 09:33:29 +0000 (09:33 +0000)]
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.

6 years agostyle cleanup
Campbell Barton [Wed, 24 Oct 2012 09:07:54 +0000 (09:07 +0000)]
style cleanup

6 years agoUpdated crop image setting to make every pixel outside the crop black as
Jeroen Bakker [Wed, 24 Oct 2012 08:59:36 +0000 (08:59 +0000)]
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

6 years agoAdding a pixelate node.
Jeroen Bakker [Wed, 24 Oct 2012 08:36:10 +0000 (08:36 +0000)]
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.

6 years agouse smaller type for kdopbvh - this change was made as a size optimization, and I...
Campbell Barton [Wed, 24 Oct 2012 08:16:49 +0000 (08:16 +0000)]
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.

6 years agoadd CDDM_from_bmesh(), avoids using BMEditMesh in modifiers.
Campbell Barton [Wed, 24 Oct 2012 07:24:11 +0000 (07:24 +0000)]
add CDDM_from_bmesh(), avoids using BMEditMesh in modifiers.

6 years agocode cleanup: move doxy comments into the C files.
Campbell Barton [Wed, 24 Oct 2012 06:08:28 +0000 (06:08 +0000)]
code cleanup: move doxy comments into the C files.

6 years agostyle cleanup: modifier structs
Campbell Barton [Wed, 24 Oct 2012 05:45:54 +0000 (05:45 +0000)]
style cleanup: modifier structs

6 years agoenable decimate modifier for curves.
Campbell Barton [Wed, 24 Oct 2012 05:44:27 +0000 (05:44 +0000)]
enable decimate modifier for curves.

6 years agouse int's for kdopbvh start/stop axis since there were loops comparing with other...
Campbell Barton [Wed, 24 Oct 2012 05:08:33 +0000 (05:08 +0000)]
use int's for kdopbvh start/stop axis since there were loops comparing with other ints.

6 years agouse min_ii/max_ii over MIN2 MAX2
Campbell Barton [Wed, 24 Oct 2012 05:06:40 +0000 (05:06 +0000)]
use min_ii/max_ii over MIN2 MAX2

6 years agofix [#32855] Obj im and export and the file path and name
Campbell Barton [Wed, 24 Oct 2012 04:29:35 +0000 (04:29 +0000)]
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.

6 years agocomment R_SEQ_GL_REND flag, opengl render now does gl previews.
Campbell Barton [Wed, 24 Oct 2012 03:37:32 +0000 (03:37 +0000)]
comment R_SEQ_GL_REND flag, opengl render now does gl previews.

6 years ago- enable GPU mipmap generation by default (Sergey and I wanted to change this before...
Campbell Barton [Wed, 24 Oct 2012 03:35:43 +0000 (03:35 +0000)]
- 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.

6 years agoenable rendering from the sequencer again. this was working since 2.4x and shouldn...
Campbell Barton [Wed, 24 Oct 2012 03:27:11 +0000 (03:27 +0000)]
enable rendering from the sequencer again. this was working since 2.4x and shouldn't have been disabled.

6 years agorename axis_primary_v3() to max_axis_v3() to avoid confusion with axis_dominant_v3...
Campbell Barton [Wed, 24 Oct 2012 02:25:00 +0000 (02:25 +0000)]
rename axis_primary_v3() to max_axis_v3() to avoid confusion with axis_dominant_v3(). also add min_axis_v3().

6 years agoFinal fix for [#31017] Particles not generated on Grid Distribution
Janne Karhu [Wed, 24 Oct 2012 01:43:59 +0000 (01:43 +0000)]
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.

6 years agoPartially replace convex hull implementation with Bullet implementation
Nicholas Bishop [Tue, 23 Oct 2012 23:54:15 +0000 (23:54 +0000)]
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

6 years agoPatch Bullet to make it's convex hull implementation usable in BMesh
Nicholas Bishop [Tue, 23 Oct 2012 23:54:02 +0000 (23:54 +0000)]
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

6 years agoSeparate languages file generation code into its own script (much better this way...
Bastien Montagne [Tue, 23 Oct 2012 20:39:26 +0000 (20:39 +0000)]
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!

6 years agoFix #2 for [#32954] Crash when activating 'International Fonts' in User Preferences
Bastien Montagne [Tue, 23 Oct 2012 19:39:32 +0000 (19:39 +0000)]
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...

6 years agoFix #27834: AAO color bleeding failure case with raytraced shadows.
Brecht Van Lommel [Tue, 23 Oct 2012 19:10:21 +0000 (19:10 +0000)]
Fix #27834: AAO color bleeding failure case with raytraced shadows.

6 years agoFix knife sensitivity issue (#30637): better calculation of how
Howard Trickey [Tue, 23 Oct 2012 18:17:51 +0000 (18:17 +0000)]
Fix knife sensitivity issue (#30637): better calculation of how
to clamp distances in ortho mode.

6 years agoFix #32954: Crash when activating 'International Fonts' in User Preferences
Sergey Sharybin [Tue, 23 Oct 2012 17:58:46 +0000 (17:58 +0000)]
Fix #32954: Crash when activating 'International Fonts' in User Preferences

6 years agoCycles: update buffers only once in a while when progressive refine is used
Sergey Sharybin [Tue, 23 Oct 2012 17:24:23 +0000 (17:24 +0000)]
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.

6 years agoSolve unresolved call of min(int&, unsigned int&)
Sergey Sharybin [Tue, 23 Oct 2012 16:46:13 +0000 (16:46 +0000)]
Solve unresolved call of min(int&, unsigned int&)

Alternative could be using unsigned ints for min/max chunks.

6 years agoFix #32951: Progressive refine crashing Blender when used with multiple cuda
Sergey Sharybin [Tue, 23 Oct 2012 16:36:53 +0000 (16:36 +0000)]
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.

6 years agoreduce float comparisons for keying operation and despill.
Campbell Barton [Tue, 23 Oct 2012 16:32:39 +0000 (16:32 +0000)]
reduce float comparisons for keying operation and despill.

6 years agouse min_ max_ functions in more places.
Campbell Barton [Tue, 23 Oct 2012 16:21:55 +0000 (16:21 +0000)]
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.

6 years agoFix #32837: DDS images flipped in viewport compared to render. This happened
Brecht Van Lommel [Tue, 23 Oct 2012 15:46:44 +0000 (15:46 +0000)]
Fix #32837: DDS images flipped in viewport compared to render. This happened
after adding compressed DDS texture loading.

DDS images can be flipped compared to the Blender standard, however we do not
unflip them because we also don't flip compressed textures. If we would flip
those we'd need to uncompress, flip and recompress them, and so losing the
speed benefit that you get from using them. Users are expected to save DDS
image in OpenGL compatible format.

6 years agoskip hidden datablocks when switching screens.
Campbell Barton [Tue, 23 Oct 2012 15:30:41 +0000 (15:30 +0000)]
skip hidden datablocks when switching screens.

6 years agocomment quick cache RNA and quiet compiler werning.
Campbell Barton [Tue, 23 Oct 2012 15:07:09 +0000 (15:07 +0000)]
comment quick cache RNA and quiet compiler werning.

6 years agoRelated to previous commit I did:
Ton Roosendaal [Tue, 23 Oct 2012 15:01:41 +0000 (15:01 +0000)]
Related to previous commit I did:

Removed checks for PTCACHE_QUICK_CACHE for exception handling. This to ensure normal
cache works as if old PTCACHE_QUICK_CACHE wasn't set.

Thanks Campbell for pointing at this!

6 years agoFix #32867: normal map baking issue with flat shaded faces since bmesh. Also
Brecht Van Lommel [Tue, 23 Oct 2012 14:57:49 +0000 (14:57 +0000)]
Fix #32867: normal map baking issue with flat shaded faces since bmesh. Also
removed the old unused normal map tangent computation code.

6 years agoFix #30801: cycles rendering issue with missing particle instances in a dupligroup.
Brecht Van Lommel [Tue, 23 Oct 2012 14:57:33 +0000 (14:57 +0000)]
Fix #30801: cycles rendering issue with missing particle instances in a dupligroup.

6 years agoUse better epsilon for line intersection, fixes bug where
Howard Trickey [Tue, 23 Oct 2012 14:57:25 +0000 (14:57 +0000)]
Use better epsilon for line intersection, fixes bug where
missed some hits on very small scale meshes, e.g., bug #31143.

6 years agoBugfix 30974
Ton Roosendaal [Tue, 23 Oct 2012 14:07:32 +0000 (14:07 +0000)]
Bugfix 30974

- Disabled "Quick Cache" option. It was causing ridiculous updates
  on the entire animation system for start-end frame on every user
  event causing changes here (like during transform). Worst was that you
  couldn't transform animated objects for that reason either.

  Most of the code is still there, waiting for a moment to revise it...

- Constraint "Follow Track" (marker) wasn't using inverse matrix code
  in transform, making it wacko to use (wrong pivot, crazyspace)

6 years agocode cleanup: give rng functions BLI prefix.
Campbell Barton [Tue, 23 Oct 2012 13:50:44 +0000 (13:50 +0000)]
code cleanup: give rng functions BLI prefix.

6 years agodebug output: stop printing event handlers for mouse moves of mouse inbetween events.
Campbell Barton [Tue, 23 Oct 2012 13:29:56 +0000 (13:29 +0000)]
debug output: stop printing event handlers for mouse moves of mouse inbetween events.

6 years agorename api functions...
Campbell Barton [Tue, 23 Oct 2012 13:28:22 +0000 (13:28 +0000)]
rename api functions...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii

6 years agoFix for direct_link of local ID data blocks (node trees in material/lamp/world/scene...
Lukas Toenne [Tue, 23 Oct 2012 12:38:47 +0000 (12:38 +0000)]
Fix for direct_link of local ID data blocks (node trees in material/lamp/world/scene/texture). These data blocks also need to link the id properties group in their ID base, otherwise custom properties stored in such local node trees will lead to dangling pointers on file load.

6 years agoFix #32941: Sequencer Preview shows texture which is apart of the window.
Sergey Sharybin [Tue, 23 Oct 2012 12:25:08 +0000 (12:25 +0000)]
Fix #32941: Sequencer Preview shows texture which is apart of the window.

Issue was caused by buffer shadows were binding buffer after offscreen buffers
was bind which lead to some unpredictable results.

Made it so ED_view3d_draw_offscreen wouldn't bind any buffers and for proper
shadows ED_view3d_draw_offscreen_init should be manually be called before
drawing to an offscreen.

This should also make open gl render with AA enabled a bit faster.

Also fixed missing sequencer cache invalidation when open gl render type is
changing.

Material and Rendered modes are still a TODO for sequencer.

6 years agocode cleanup: remove $Id's that crept back in, also osl style edits
Campbell Barton [Tue, 23 Oct 2012 11:47:23 +0000 (11:47 +0000)]
code cleanup: remove $Id's that crept back in, also osl style edits

6 years agoCorrection to recent fix for shader nodes -- image could be not loaded yet
Sergey Sharybin [Tue, 23 Oct 2012 11:44:47 +0000 (11:44 +0000)]
Correction to recent fix for shader nodes -- image could be not loaded yet
when tree is being executed. This could lead to nor initialized color space
for the image.

Solved by insuring image buffer is loaded before checking for whether color
conversion is needed.

6 years agoSizeerror 8 fix for DecimateModifierData
Sergey Sharybin [Tue, 23 Oct 2012 11:10:40 +0000 (11:10 +0000)]
Sizeerror 8 fix for DecimateModifierData

6 years agoFix #32943: sculpt mode draw crash with VBO and flat shaded, hidden faces.
Brecht Van Lommel [Tue, 23 Oct 2012 11:07:05 +0000 (11:07 +0000)]
Fix #32943: sculpt mode draw crash with VBO and flat shaded, hidden faces.

6 years agofix for crash using an uninitialized pointer when fcurves reference missing collectio...
Campbell Barton [Tue, 23 Oct 2012 11:03:52 +0000 (11:03 +0000)]
fix for crash using an uninitialized pointer when fcurves reference missing collections (removing animated shape keys could crash).

6 years agoDisplay buffer should be marked as invalid when setting pixels from python
Sergey Sharybin [Tue, 23 Oct 2012 09:59:04 +0000 (09:59 +0000)]
Display buffer should be marked as invalid when setting pixels from python