Commit Graph

53000 Commits

Author SHA1 Message Date
Brecht Van Lommel
42ca1c8dcd Fix for image transparency backwards compatibility. Now the texture datablock has
a Use Alpha option again. This makes the case where you enabled Premultiply on the
image and disabled Use Alpha on the texture work again.

That's mostly useful when you have a straight alpha image file which has no useful
RGB colors in zero alpha regions (e.g. renders). Then sometimes you don't want to
use the alpha for the texture stack mixing, but you still want to multiply it into
the RGB channels to avoid a blocky transition into zero alpha regions.

This also removes the version patch that copied image datablocks because it's not
reliable and might be causing bug #34434. This does mean we are no longer backwards
compatible for cases where two different texture datablocks with Use Alpha enabled
and disabled where using the same image.
2013-03-04 13:18:14 +00:00
Sergey Sharybin
7a1086d9a1 Fix #34475: Weird noise bug with Texture nodes
Made Texture compositor input node single-threaded since
texture trees are not thread-safe.

Also fixed texture being flipped horizontally and vertically.
Why nobody noticed this for 3 releases already??
2013-03-04 13:14:21 +00:00
Gaia Clary
86ff11fe47 Collada: Added ngon support to Vertex Color exporter 2013-03-04 13:12:56 +00:00
Sergey Sharybin
f691ee0627 Fix #34501: Painting on image editor with texture brush causes memory leaks in render module
Issue was caused by svn rev54721 where donequeue wasn't fully handled
in cases rendering was canceled, which lead to some render results
unfreed.
2013-03-04 12:40:24 +00:00
Ton Roosendaal
4fd2230755 Bugfix #34493
Should go to 2.66a

Image Sequence texture now allows to animate "Offset" again with fcurves.
This was disabled for 2.65, it only works for fcurve key inserting (not
for drivers), but too many people have been using to animate character
textures already...
2013-03-04 09:55:43 +00:00
Dalai Felinto
8ea7b742f6 bge bugfix: [#34517] 2D Filter causes mouselook script drifting effect (patch by Daniel Stokes - Kupoman)
Fix for 2.66a

""We can't pass the results of canvas->GetViewPort() directly because canvas->SetViewPort() does some extra math""
Bug introduced during 2.65 series in the refactor to use canvas->SetViewPort instead of direct opengl calls for viewport
(53305, 53392, 53393)
2013-03-04 08:45:42 +00:00
Dalai Felinto
a3b47ede17 BGE bug-fix[#34523] 2dfilter produces render error (objects disappear) - likely an alpha problem
Fix for 2.66a

With help from Daniel Stokes and Mitchell Stokes.

This bug always existed in OSX, but started showing up in Windows and Linux on review (54745 + 54747)
[the patch to enable alpha buffer for all OSs]

A better fix would be to use RAS_IRasterizer::SetAlphaBlend(GPU_BLEND_SOLID);
but I think gpu_verify_alpha_blend() is not switching to SOLID because
GTS.alphablend is GPU_BLEND_SOLID (even though GL_ALPHA_TEST is enabled).

Anyways, this is not something worth tackling now, since in terms of functionality it shouldn't matter.
2013-03-04 08:22:20 +00:00
Campbell Barton
9b5edeb881 code cleanup: view3d_clipping_test was making a vector copy for no reason. 2013-03-04 07:15:09 +00:00
Campbell Barton
634d783268 fix [#34416] Sculpt with ALT-B affects unseen mesh parts 2013-03-04 07:11:42 +00:00
Campbell Barton
ef0edd1afc fix [#34473] Blender Crashes on toggling modes, dynatopo sculpt/object mode. 2013-03-04 05:25:16 +00:00
Campbell Barton
24da4a6032 fix [#34490] Copy and paste floating point number fields losses precision
- copy now gets up to 6 decimal places
- copy and UI float button editing now strip zeros: 1.000 -> 1.0
2013-03-04 04:21:51 +00:00
Campbell Barton
c2157518de fix [#34369] applying screw modifier turns object to black 2013-03-04 01:57:29 +00:00
Campbell Barton
2921d48239 code cleanup: unused vars in collada, preprocessor formatting & warning in mingw.
also compiling without bullet needed a stub added.
2013-03-04 00:53:57 +00:00
Gaia Clary
7835126419 Collada: Fix: do not export controllers when shape_key exporting is disabled 2013-03-04 00:28:25 +00:00
Gaia Clary
f19206a361 Collada: Fix export of Normals where shading is set to smooth 2013-03-04 00:17:20 +00:00
Thomas Dinges
34b30f8474 Fix for [#34509] minor theme panel color issue
* panelcolors.back and panelcolors.header were missing in resources.c for the 3D View.
2013-03-03 17:30:23 +00:00
Antony Riakiotakis
f4320ad2ed Cleanup, move uv sculpt specific code to sculpt_uv.c. Also rename
brush_drawcursor to a more indicative of its users name until paint
cursor unification is done.
2013-03-03 16:33:39 +00:00
Tamito Kajiyama
66a2b84897 Merged changes in the trunk up to revision 54992.
Resolved conflicts:
release/scripts/startup/bl_ui/space_view3d.py
2013-03-03 15:07:49 +00:00
Gaia Clary
4774357b59 Collada: exported normals now based on MPoly instead of MFace 2013-03-03 13:53:32 +00:00
Sergej Reich
ceaf8e48ef rigidbody: Revert to running simulation on frame update
Instead of flagging the rigid body world for frame update just call
BKE_rigidbody_do_simulation() recursively for all scenes.

This avoids having to constantly check if the simulation needs to be
updated.
2013-03-03 06:09:48 +00:00
Sergej Reich
5ff6a5c6ab rigidbody: Fix inconsistency with world rebuilding
The rigid body world could be rebuilt on start frame and one frame after
start frame. The latter was necessary sice animation playback usually
doesn't start at start frame.
This lead to different simulations depending on which frame the
simulaton was rebuilt when animation was involved.

Now we only rebuild the world on start frame.
This is actually tricky to do since, as mentioned above, animation
playback starts on second frame. To work around this we rebuild the
world before the actual update.
The alternative would be to rebuld the world on every simulation change
(like the other simulations do it) but this is an expensive operation
and would be too slow.
2013-03-03 06:09:45 +00:00
Campbell Barton
b390192b70 code cleanup: de-duplicate cast modifier logic, had 'optimization' which was only saving a NULL check per loop, causing most of the logic to be copied, ~130 lines. 2013-03-03 05:43:47 +00:00
Campbell Barton
79e80d8322 code cleanup: ~400 duplicate lines for AO form factor math. 2013-03-03 05:07:58 +00:00
Campbell Barton
b4a1626907 code cleanup: de-duplicate ~75 lines copied twice - tsk tsk. 2013-03-03 04:54:33 +00:00
Campbell Barton
a02c8c4177 move toggle drag into a UI handler (was modal operator) 2013-03-03 03:29:57 +00:00
Tamito Kajiyama
0c5dfc8a63 Fix for exceptions in converting Python float objects to C variables not properly handled.
Based on review comment from Campbell.
2013-03-03 01:53:49 +00:00
Campbell Barton
c6642b8ec8 enable triangulation with collada, disable BLI_STATIC_ASSERT for C++. 2013-03-03 01:24:09 +00:00
Gaia Clary
24437b6171 partial revert of collada triangulation code due to problems on linux 2013-03-02 23:42:03 +00:00
Tamito Kajiyama
39b9d925ee Renamed FreestyleLineSet.use to .show_render.
Based on review comment from Campbell.
2013-03-02 23:30:23 +00:00
Tamito Kajiyama
6e5842e5f8 Code clean-up: used copy_m4_m4() and unit_m4() instead of verbose loops.
Based on review comment from Campbell.
2013-03-02 23:17:35 +00:00
Tamito Kajiyama
f60c5b8e22 Removed redundant definitions of __min and __max macros by replacing them with
std::min() and std::max(), respectively.  Based on review comment from Campbell.
2013-03-02 23:17:20 +00:00
Tamito Kajiyama
0be5cd051d Moved operations on blend file data from C++ class destructor to a specific method
for releasing resources.  Based on review comment from Campbell.
2013-03-02 22:20:27 +00:00
Gaia Clary
b74c686c66 Fix Collada build error in scons 2013-03-02 20:46:37 +00:00
Tamito Kajiyama
51460e7789 Fix for a buffer overflow, by simply removing the unnecessary string copy.
Review comment from Campbell.
2013-03-02 18:43:06 +00:00
Tamito Kajiyama
6645551aed Removed paths to a browser command and help index that are no longer used in Freestyle for Blender.
Review comment from Campbell.
2013-03-02 18:31:32 +00:00
Mitchell Stokes
db6d34daad BGE: Fix for bugs #34428, #20856, #20281. These were all multi-uv bugs caused by the BGE keeping too much uv information. When setting up shaders the BGE assumes each UV layer is unique, but the converter would store duplicates. 2013-03-02 18:05:52 +00:00
Campbell Barton
c718f0d658 fix [#34431] Crash with 2.66 when dyntopo enabled and using view plane mode 2013-03-02 16:13:01 +00:00
Gaia Clary
be701b6278 Collada: Added support for ngon export/import and added triangulate option to export 2013-03-02 15:58:13 +00:00
Campbell Barton
723e231ce0 fix [#34486] Selection of bones in armature edit mode only toggles between two bones 2013-03-02 15:34:47 +00:00
Gaia Clary
d17a8639e4 Added typecasts to keep c++ from reporting errors 2013-03-02 12:16:23 +00:00
Campbell Barton
7d5c51a96f now dragging an image onto an empty can be done without holding Ctrl.
Make it set the empty draw type for existing empty object.
change from yakca on IRC

also some whitespace cleanup.
2013-03-02 12:05:25 +00:00
Campbell Barton
8f01b50e14 code cleanup: clarify comment about virtial-modifiers, also add comments to DNA headers when its not so obvious what their purpose is. 2013-03-02 07:27:19 +00:00
Brecht Van Lommel
2822a14e5d Fix #34483: game engine multi UV glsl materials not working correct after changes
to support more than 2 UV maps. This code indirectly depended on the order of
OpenGL attribute ID's assigned by the OpenGL driver being the same as the
attributes being declared in the GLSL shader code, which is not always the case.
2013-03-01 20:45:42 +00:00
Ton Roosendaal
f6548d5e6e Bug fix #34418
Fix for 2.66a

Screencast could be started twice in a row, but it then also added two handlers
for drawing an overlay circle around mouse cursor. After ending the screencast,
this circle then kept being drawn.
2013-03-01 17:17:57 +00:00
Sergey Sharybin
f186f89a42 Fix #34461: Inconsistent behavior of "Color Mix Node" and "Alpha Over Node"
Added compatibility option "Straight Alpha Output" to image input node

When this option is enabled, image input node will convert float buffer
to straight alpha.

This is not what you'll usually want with new alpha pipeline, nit this
is needed to preserve compatibility with older files saved in 2.65.
In that version byte image are resulting with straight alpha passing
to the compositor and alpha-overing required extra premultiplication
of inputs.

So, that's why Straight Alpha Output is needed -- it's set in versioning
code for byte node images so they'll still output straight alpha.

This option is currently only available in N-panel.

Additional change: added Alpha Mode for image input node to N-panel.
2013-03-01 15:37:15 +00:00
Campbell Barton
0ac07404ba style cleanup: braces with multi-line statements, also add some comments. 2013-03-01 14:47:06 +00:00
Ton Roosendaal
032923a9f5 Bug fix #34334
For 2.66a 

Soft shadow was drawing a complete rect, but it should skip the top edge.
That allows transparent menus to still have a shadow too.
2013-03-01 11:42:07 +00:00
Campbell Barton
2de9ce7940 keymap filter by keybindings in the userpreferences.
- optional, select between name/keybinding.
- when key input can't be parsed, alert red to give the user some feedback.
- key shortcut parsing could be improved or swapped out for button which grabs shortcut.
2013-03-01 06:17:59 +00:00
Campbell Barton
2de8dfd784 fix for drag-toggle, bit-buttons weren't handled which made drag toggle fail for buttons in the graph editor for eg. 2013-03-01 00:35:01 +00:00
Campbell Barton
3d63b2308a code cleanup: minor refactor of button pressed state checking, needed for drag toggle fix. 2013-03-01 00:19:32 +00:00