Commit Graph

41899 Commits

Author SHA1 Message Date
IRIE Shinsuke
178bd849bf Blender Internal: Revert own previous commit for "Camera Data" node, correct GLSL code for view vector output of "Geometry" node.
Revert 0c7d2de382. The "Camera Data" node actually gives the location
of the point in camera coordinate system.  To obtain actual camera data,
we can use "Geometry" node instead.

Also modify the "Geometry" node, to produce correct view vector output
in orthographic GLSL preview.
2013-11-25 02:21:06 +09:00
Thomas Beck
1e096852bf Commit D31 : Check if the user count needs to be decreased after adding a new BI image texture.
Fixes this problem:

*Go to the Blender (BI) textures tab and open an existing image.
*Hit on the plus sign next to datablock to create a new image.
*Complete the creation process and switch back to the first (loaded) image.
-> The image user count raises... will raise as often as you hit the plus sign
2013-11-24 13:54:47 +01:00
Brecht Van Lommel
1fe114a876 UI List: renaming can now also be done with double click and ctrl+enter.
This also fixes a bug where ctrl+click would not properly work when pressing
ctrl after moving the mouse over the text, it had to be pressed beforehand.

Hack is now to have LISTROW active, but when it detects any of these events
it will activate the text field that the mouse overlaps with instead.

Reviewed By: mont29

Differential Revision: http://developer.blender.org/D38
2013-11-24 12:58:13 +01:00
Campbell Barton
1decd824f3 Code Cleanup: use math functions and reduce View3d axis drawing into a loop 2013-11-24 21:26:16 +11:00
IRIE Shinsuke
0c7d2de382 Blender Internal: Fix shader node "Camera Data" that doesn't consider orthographic view.
Note that Cycles still needs to fix.
2013-11-24 18:56:19 +09:00
Campbell Barton
ddb3ad9092 Code Cleanup: replace shorts with ints for path code. 2013-11-24 16:20:04 +11:00
Campbell Barton
91a24654dd Code Cleanup: whitespace / formatting 2013-11-24 15:23:38 +11:00
Diego Hernan Borghetti
4c4aeaa546 Fix: Wrong variable used to check for metrics files on BLF
Looks like this is has been there since the initial commit
of BLF.

The blf_dir_metrics_search was using the pointer to the
extension of the file and not the full path to check for
metrics files (.afm/.pfm).

Never notice before probably because is not common to use a font
with additional metrics files.
2013-11-23 20:20:23 -03:00
Alexander Pinzon
673bd9a009 Mesh Modifiers: Added Laplacian Deform
Part of soc-2013-sketch_mesh branch

See: http://wiki.blender.org/index.php/User:Apinzonf/Doc:2.6/Manual/Modifiers/Deform/Laplacian_Deform
2013-11-24 07:10:42 +11:00
Campbell Barton
5009346907 revert part of last commit, add ui_but_find_mouse_over_ex()
so we dont need to pass event to functions to get a button at a location.
2013-11-24 05:59:16 +11:00
Bastien Montagne
f842ce82e6 UI List: ctrl click on names in list can be used for renaming.
Summary:
More information here:
http://lists.blender.org/pipermail/bf-committers/2013-November/042113.html

Reviewers: brecht

Reviewed By: brecht

CC: mont29

Differential Revision: http://developer.blender.org/D8
2013-11-23 18:43:23 +01:00
Jens Verwiebe
d846c9a3b7 OSX: fix T37065 cmd+c not working in Info - console 2013-11-23 16:39:07 +01:00
Joshua Leung
1d33098314 More short->bool refactoring work for anim channel type define callbacks
Changed the "neg" flag for acf.setting_flag() to be a bool
2013-11-23 18:59:21 +13:00
Joshua Leung
ff66f3d3ad Anim Editors: Refactored animchannel type definition callbacks to use bools
Changes:
- acf.name_prop() and acf.has_setting() now return bools instead of shorts
- Renamed a few name_prop() callbacks whose names ended in "_nameprop"
  instead of "_name_prop", which made it difficult to safely find all
  such instances
2013-11-23 18:59:21 +13:00
Campbell Barton
70218ad14d Style Cleanup: whitespace 2013-11-23 02:06:06 +11:00
Henrik Aarnio
9c5fb7b2e7 Fix T37485: autocomplete while appending and autocomplete folder behaviour.
This adds functionality to tab-autocomplete folders in the file browser file
field, and the ability to autocomplete .blend files and their sub folders while
linking. If only one match of a blend or a folder is found, it is opened, which
applies to wildcards in the file field now.

Reviewed By: elubie, brecht

Differential Revision: http://developer.blender.org/D20
2013-11-22 14:48:46 +01:00
Miika Hamalainen
5feb0d2bfe Fix T37359: Dynamic Paint deletes inactive texture from smoke domain when using a material as brush color 2013-11-22 15:25:19 +02:00
Sergey Sharybin
885354daec Optimization for render result save
Skip byte->float conversion if output file format
supports high bit depths but configured to only
output 8 bits per channel.

Gives around 30% speedup when re-exporting movie file
to PNG image sequence here on laptop.

Possible further optimization:

- Skip color space conversion in imbuf_for_write
  function if we've got already have buffer in
  that space.

  This doesn't seem to happen often after tweak
  to render result to imbuf.

- Skip black alpha-under if original image is
  opaque,

  This is a bit tricky to detect.
2013-11-22 16:52:12 +06:00
Campbell Barton
0469971b05 Fix T37465: UV Coords we're incorrect when converting from a curve 2013-11-22 20:41:00 +11:00
Campbell Barton
d44c79b7c9 Fix T37281: View3D could have invalid transform orientation using undo 2013-11-22 20:10:26 +11:00
Campbell Barton
283f43d31a Fix T37559: Crash dissolving vertices in some situations 2013-11-22 19:42:14 +11:00
Campbell Barton
d4a11388bf Code Cleanup: warnings 2013-11-22 11:30:40 +11:00
Campbell Barton
a5183d7a87 Code Cleanup: use NULL for pointer checks and remove joke. 2013-11-22 10:43:42 +11:00
Campbell Barton
f801f8057d fix for active bone not saving in editmode. 2013-11-22 10:37:50 +11:00
Thomas Dinges
bd5da19d86 Cycles: Add a "Normal" input socket to the Layer Weight node + GLSL drawing code.
Patch by lichtwerk (Philipp Oeser).

Differential Revision: http://developer.blender.org/D28
2013-11-22 00:33:28 +01:00
Campbell Barton
a08750addf Armature Editing: select shortest path (Ctrl+RMB matching mesh operator)
Patch originally from Terry Struven, modified to use more generic functions.
2013-11-22 08:42:38 +11:00
Campbell Barton
41e563594d Code Cleanup: int pointer comparison 2013-11-22 08:39:13 +11:00
Bastien Montagne
811ce5a696 Code cleanup: Minor addition to rB254aa8f3a0fbffcbcb886cfaa81b630ae3e9bb78: handle copying of drawflag in ui_but_update_from_old_block()
Note that this is not really needed currently, as the only flag being copied here (UI_BUT_REDALERT) remained in but->flag. However, since we'll have more flags in drawflag now, it's better to explicitly handle this situation...
This func could use some cleanup anyway (a bunch of commented code here)...

Thanks to Campbell for noting this!
2013-11-21 20:25:31 +01:00
Bastien Montagne
904129fd9b Squashed commit of the following:
commit b8b7180760b7c57f15b9930c29207febcf5fefb3
Author: Bastien Montagne <montagne29@wanadoo.fr>
Date:   Thu Nov 21 16:31:16 2013 +0100

    Code cleanup: replace "LISTLABEL" button type by an "UI_BUT_LIST_ITEM" button flag.

    Summary:
    Rationals:
    I) I was never that happy to have a full button type just to set custom colors to labels inside listitems!
    II) If we use (as planned) TEX buttons instead of labels to allow listitems click-rename, I'd like to be able to use listitems' theme color here as well, much easier witha flag than adding yet another button type!

    Note: related to D8

    Reviewers: brecht

    Differential Revision: http://developer.blender.org/D25
2013-11-21 16:51:29 +01:00
Bastien Montagne
254aa8f3a0 Squashed commit of the following:
commit 6f97e194e58aab38d351c796bf7bb6abca33f5f9
Author: Bastien Montagne <montagne29@wanadoo.fr>
Date:   Wed Nov 20 21:18:20 2013 +0100

    Code cleanup: Move some uiBut->flag to uiBut->drawflag, make those flags anonymous enums.

    Summary:
    Make some room in but->flag (I did not add another flag, we already have drawflag, which was nearly not used up till now).

    Note: I’m not sure whether REDALERT (and perhaps even DISABLED?) should not go to but->drawflag as well...

    Related to D8

    Reviewers: brecht

    Differential Revision: http://developer.blender.org/D22
2013-11-21 14:43:08 +01:00
Sergey Sharybin
044a342ecb Fix a wrong check ls == NULL || lb->first == NULL 2013-11-21 19:11:24 +06:00
Lukas Tönne
91f0a38ad6 Fix T37558: Cosmetic label change to indicate that the path for individual inputs in the File Output node is actually a sub-path based on the overall node file path. 2013-11-21 10:47:09 +01:00
IRIE Shinsuke
98bf859efc Blender Internal: Add shader nodes "Separate HSV" and "Combine HSV", same as Cycles' ones. 2013-11-21 12:43:38 +09:00
Campbell Barton
ac021a42ad Code Cleanup: use strict flags for screw modifier, reduce sign conversion 2013-11-21 10:36:56 +11:00
Antony Riakiotakis
7cdfe18385 Fix compile error on MinGW64, time.h is required for gmtime. 2013-11-20 23:47:05 +02:00
Thomas Dinges
b0ea93aa9d * Remove more code for stars, missed those. Sorry! 2013-11-20 19:37:23 +01:00
Thomas Dinges
30512d7c55 Blender Internal:
* Remove Stars feature. This was a quite minimalistic feature and there are
better alternatives with more control (particles for example).

Removal discussed during BCon13 developer meeting and already years before, time to do it..

Reviewed By: brecht
Differential Revision: http://developer.blender.org/D17
2013-11-20 19:13:41 +01:00
Campbell Barton
d232486b40 Fix T37543: Multiline 3D Text saved in edit mode breaks on load 2013-11-21 04:32:28 +11:00
Campbell Barton
0af52adac0 Code Cleanup: remove unused members for editfont (3D text) 2013-11-21 04:16:41 +11:00
Campbell Barton
31a1bcfcd7 fix T37411: Transform mouse constraint could fail in some situations.
Was caused by int rounding when an axis was < 1.0.
2013-11-21 02:21:34 +11:00
Campbell Barton
82238c3e36 Fix T37550: Crash while snaping to curve made from Susane (bug in recent addition) 2013-11-21 00:21:31 +11:00
Joshua Leung
efdd4894e9 NLA Channel Drawing Refactor: Remove rest of old drawing code for NLA Track channels
NLA Track drawing has now been ported over to use the UI widgets
like the rest of the anim channels do in the DopeSheet and Graph
Editors. The main benefit of this for users is that these buttons
will now show tooltips when you hover over them. Hopefully this
will help make the "solo" buttons more discoverable.

I've decided to postpone porting the "Action Line" channels to the
widget system for now, since there are quite a few more issues there
which need quite a bit more time to work through.
2013-11-21 01:33:02 +13:00
Joshua Leung
905085228f Anim Editors: Ensure that "solo" flag doesn't get accidentally handled on channels which don't support it 2013-11-21 01:33:02 +13:00
Joshua Leung
96a4ee725e Anim Editors: Improve some tooltips to be more accurate for the type of editor/data they're shown for
This commit fixes some problems where some tooltips were not adapting
as intended when used for different channel types in different places.
2013-11-21 01:33:02 +13:00
Joshua Leung
2213b93521 Remove old drawing code for NLA Tracks 2013-11-21 01:33:02 +13:00
Joshua Leung
be971959bc Added button callback so that toggling solo mode on NLA Tracks now works correctly 2013-11-21 01:33:02 +13:00
Joshua Leung
5efad6f6c6 Ported code for setting colour of NLA Track anim channel 2013-11-21 01:33:02 +13:00
Joshua Leung
eb72712485 Ported over logic for which animchannel settings are supported by NLA Tracks 2013-11-21 01:33:02 +13:00
Joshua Leung
2f88fc35de Skeleton of type defines for NlaTrack animchannel 2013-11-21 01:33:01 +13:00
Joshua Leung
c4bb2e9774 Updating icons for NLA Track "solo" button (as used in standard widgets) 2013-11-21 01:33:01 +13:00