Commit Graph

7221 Commits

Author SHA1 Message Date
Thomas Dinges
6e86760de2 Interface / Template lists:
* Make the gap for the filtering options slightly bigger, so 1 row doesn't look so cluttered.
* Default Render Layer and Particle System list in the Properties Editor to 1 row as well, to save space.
2013-10-13 23:04:39 +00:00
Thomas Dinges
56e326caf1 Properties Editor / Mesh Data:
* Give the uiLists a default size of 1, when we don't have any element in it. This saves some space.

Vertex Groups and Shape Keys list will jump to 5 as before when we have an element, due to the additional buttons, for the others, just grow with additional elements.
2013-10-13 22:26:53 +00:00
Sergey Sharybin
ee63ef7af1 Project Pampa request: option to lock frame selection to the range
This means when you've got "Lock Frame Selection" option (which is
in the timeline next to the preview range button) you're not able
to go to the frames which are out of current frame range with your
mouse.

TODO: Make it so current frame slider also respects this setting?
      Not so much important for tonight.
2013-10-13 20:46:02 +00:00
Tamito Kajiyama
e4b9e28b86 Fix for a bug in StrokeCleaner identified through a discussion for Bug #36425 (freestyle edge marks not working).
Many thanks for Anthony Edlin who helped fix the issue.
2013-10-13 18:17:46 +00:00
Sergey Sharybin
d7983e3638 Option to overlay mask over the footage
Currently supports only two modes:
- Show alpha channel of the mask
- Multiply footage by the mask, which will give
  you final-looking combined image.

TODO: Currently rasterization happens on every
      redraw, need to cache rasterized mask
      somewhere to make redraw more realtime.
2013-10-12 14:09:05 +00:00
Antony Riakiotakis
61cceb3700 Add poll function for overlay panel. Thanks to Thomas Dinges for the report! 2013-10-12 11:18:38 +00:00
Bastien Montagne
ce52dc2900 UI: Fix SSS pressets' buttons not being aligned anymore (to be backported to 2.69).
Issue found out by DingTo.
2013-10-11 15:45:42 +00:00
Campbell Barton
67fb71ade5 fix [#37038] User prefs > Input - Category names cut off 2013-10-10 23:36:09 +00:00
Antony Riakiotakis
187f664c75 Fix #37036, pack and refresh button not aligned anymore. Also add
operator for opening images in the image editor header, it's easily one
of the most common operations, don't see why it has to be only accessed
from menu.
2013-10-10 23:33:59 +00:00
Lukas Toenne
3b7d5a8a40 Change to node output socket drawing: Instead of always drawing only the socket label for outputs, leave this check up to the socket type draw function. This gives custom node scripts more flexibility in
how to draw socket values by allowing buttons on output sockets as well.

http://wiki.blender.org/index.php/Extensions:2.6/Py/API_Changes#Python_Node_Output_Drawing
2013-10-10 12:58:35 +00:00
Lukas Toenne
2a54928563 NodeSocket RNA property 'in_out' renamed as boolean 'is_output'. This is a more useful name and follows the API naming conventions better.
http://wiki.blender.org/index.php/Extensions:2.6/Py/API_Changes#Node_Socket_in_out
2013-10-10 12:58:33 +00:00
Sergey Sharybin
d917bdb095 Derivative map baker
Added support for derivative map baking, which
is accessable as a dedicated baker type. Works
pretty much the same as displacement map baker,
but gives you derivative map.

In fact, inernally this baker is just a filter
which applies on the result of displacement map.

Both regular and multires baking are supported.

Patch by Morten Mikkelsen and self.
2013-10-09 15:51:14 +00:00
Antony Riakiotakis
4109d5565f better naming for overlay panel, also only expose texture overlay for
modes that support it.
2013-10-09 15:21:49 +00:00
Antony Riakiotakis
df771e59fa Fix for evil bug in last commit, the image painting brush was being used
for the overlay option in all paint modes.
2013-10-09 15:07:48 +00:00
Antony Riakiotakis
59b8097cf8 Segregate all paint cursor overlay options under their own "Overlay"
panel in paint modes. Also expose all options of mask textures in the
mask texture panel, even if there is no texture, just like regular
textures are presented.
2013-10-09 14:57:48 +00:00
Lukas Toenne
96f4ee03d4 Check the node Add operator's type property before attempting to create a new node. This prevents python exceptions when calling it from the search menu, where the node type is unspecified.
Reported by Sebastian Koenig in unrelated bug report #36968.
2013-10-06 10:49:40 +00:00
Campbell Barton
b20c3f97a4 rename presets not to use '+' character, also some typo fixes. 2013-10-05 14:19:39 +00:00
Gaia Clary
9c8f5a7c36 Replaced opensim by sl+opensim in collada presets (conforming to Linden Lab document http://secondlife.com/corporate/brand/trademark/sl_insl.php ) 2013-10-05 14:09:13 +00:00
Gaia Clary
c819fd4ee0 Changed some labels from Second Life to OpenSim 2013-10-03 14:24:54 +00:00
Tamito Kajiyama
aaba317c76 Follow-up to r60433 (related to Bug #36878): additional checks for NULL line styles. 2013-09-30 23:02:29 +00:00
Brecht Van Lommel
7d344dd3a0 Fix #36894: maya keymap delete/backspace would immediately delete a mesh element,
now it pops up the menu with delete options and dissolve so that there is a quick
key shortcut for those too.
2013-09-30 22:12:47 +00:00
Bastien Montagne
ab31941874 Fix [#36422] Trimmed audio files (hard cut only) in a metastrip have their trim removed
Meta sound update (seq_update_sound_bounds_recursive_rec) was not taking into account hard trim (anim_startofs) when setting sound's start, while default sound strip update (sound_move_scene_sound_defaults) did... This could use some refactor, though, with a single func used in both cases, to avoid such issue.

Also added soft trim to sound panel, only hard one was available.
2013-09-30 20:53:53 +00:00
Bastien Montagne
3ccb370d38 Usual UI messages fixes... 2013-09-30 19:30:56 +00:00
Campbell Barton
20047e776f fix [#36835] Removing an addon has strange behavior 2013-09-30 10:02:34 +00:00
Campbell Barton
b21b24573d lots of operator descriptions were incorrectly copy/pasted.
update some descriptions, others were removed and operators tagged as internal.

add a script to detect duplicate operator descriptions.
2013-09-30 05:50:41 +00:00
Bastien Montagne
a6789a7f2e Fix broken example, reported by Codemanx on IRC, thanks. 2013-09-29 14:57:47 +00:00
Campbell Barton
6d0284f934 minor edit on r60413, convert to a bool. 2013-09-29 02:07:48 +00:00
Thomas Dinges
c662b247f6 Properties Editor / UI:
* Fix a py error in the "Image Sampling" panel, tex.image can be NULL.
2013-09-28 19:56:08 +00:00
Campbell Barton
99837ea844 add PoseBone.children convenience attribute. 2013-09-28 12:05:59 +00:00
Sergey Sharybin
bb43e8a8a6 Fix related #36824: Shrinkwrap modifier 'Subsurf Levels' doesn't seem to do anything
Subsurf Levels only makes sense when using Projection mode,
so moved this option into if mode == 'PROJECTION' branch.
2013-09-27 09:51:02 +00:00
Tamito Kajiyama
e424002d30 Fix for Freestyle hang up in stroke rendering, due to missing update of 2D stroke length in StorkeCleaner.
Problem report by Light BWK through personal communications, thanks!
2013-09-26 20:14:29 +00:00
Brecht Van Lommel
5a201fa479 Freestyle: remove a bunch of debug prints in the python code, these are confusing
and don't give any meaningful info to users.
2013-09-26 16:29:54 +00:00
Brecht Van Lommel
0d524d1809 Further fix for #36382: bake buttons for linked objects could be grayed out
when they shouldn't be.
2013-09-23 12:14:06 +00:00
Dalai Felinto
aff71ea2d5 Text Editor: 'Find' (in the Edit menu) was pointing to the wrong operator 2013-09-20 18:47:12 +00:00
Thomas Dinges
83efcb2d05 Release cycle / 2.69:
* Update links to release logs, now pointing at http://www.blender.org/development/release-logs/blender-269
* Update readme, also remove FreeBSD from it, we don't have official releases for that anymore.
2013-09-20 00:48:03 +00:00
Dalai Felinto
c471d41d42 bugfix: [#36641] Maya keymap: Border select doesn't add to selection
I also replaced all EVT_TWEAK_L by EVT_TWEAK_S
- and replaced B by the gesture mouse for the clip keymaps
2013-09-18 19:55:48 +00:00
Campbell Barton
b6631b8be7 fixes for python api docs.
also move foreach_get/set examples into their own py example files (prefer not to have example code built into blenders binary).
2013-09-18 05:20:43 +00:00
Campbell Barton
dc4cded2c2 fix for missing attribute is_argument_optional when generating docs.
also use __slots__ for classes.
2013-09-18 04:32:29 +00:00
Campbell Barton
0ac194687e style cleanup 2013-09-18 00:07:17 +00:00
Dalai Felinto
7fa2d32de3 bugfix: [#34663] Cannot rotate view while using Knife tool with Maya preset
fix as suggested by Ton Roosendaal in tracker:
"the knife tool has a "MODE_PANNING" state, it could be nice to set this
in the modal map as well, to define the shortcut(s) that have to be passed on."
2013-09-17 20:35:17 +00:00
Dalai Felinto
73f15dd3a1 bugfix [#36757] Vertex coloring in preview window meshes default to black, makes preview useless
Adding 'Col' vertex color layer to preview cycles meshes

The artist could simply disconnect the VCol node from the nodetree for
the preview, but  it should be harmless to add this to the preview meshes.

As long as the user stick to the default vertex color name (and is happy
with seing a all-white channel) it should be ok.
2013-09-17 20:11:02 +00:00
Lukas Toenne
29b546fe7f Fix for #36739: Delete new nodes added via the Add menu or toolbar if the subsequent transform operator is cancelled. This prevents ugly situations where nodes stick "under" the toolbar after clicking a
wrong button.

Works by adding a flag to transform operators "remove_on_cancel". This is currently only used for node transforms, the idea is that if set, the operator will remove the transformed elements when it is
cancelled. It's not possible to do that in the original NODE_OT_add_node operator, because transform is modal and there is no way of reacting to a cancel outside of the transform itself (previous attempt
used a macro operator, but that also doesn't work because subsequent operators don't get executed if the previous transform cancels).
2013-09-17 13:07:48 +00:00
Brecht Van Lommel
bf8c078c55 Fix wrong temporary path in user preferences, revert startup.blend and instead
do the freestyle changes in BLO_update_defaults_startup_blend.
2013-09-16 21:05:39 +00:00
Dalai Felinto
786b26438e bugfix [#36736] You can still transform objects while navigating view
Bug was in maya preset.
view3d.manipulator was defined twice, and it was taken precedent over view3d.rotate
2013-09-16 15:33:28 +00:00
Dalai Felinto
7ee94deaf5 partial bugfix: [#36501] Blenderplayer can not change video resolution in Mac OSX
OSX support for native desktop resolution changing is not simple as for Windows or Linux.

The 'fix' here is at the interface level only.
Refer to the original bug report for the suggested native workaround, test patch and problems.
2013-09-16 13:24:28 +00:00
Campbell Barton
b380dd9378 fix [#36537] "Grid Floor Scaling" can have some unexpected behaviour on new objects
curves and metaballs now behave the same as meshes wrt grid scaling.
remove WM_operator_view3d_distance_invoke(), and replace with a function called from exec which initializes defaults, this way operators can have their own invoke functions.
2013-09-16 04:19:48 +00:00
Antony Riakiotakis
43bd8c2b28 Undo the front-facing only commit for clay strips brushes, it adds an
attenuation that should really be optional. There's also a minor
performance penalty and all this only for one problematic case. In case
the tool flattens two surfaces, users can manually set the front face
only option. A better non-attenuating way to cull such vertices can be
added later.

Also flatten brush should calculate the flatten plane from the original
vertices or the flattening will not converge for planes offsets
different than zero.

Reported by Michalis Zissiou, thanks!
2013-09-16 02:24:41 +00:00
Stuart Broadfoot
3306afac87 Cycles Hair: Two basic bair shaders added
A new hair bsdf node, with two closure options, is added. These closures allow the generation of the reflective and transmission components of hair. The node allows control of the highlight colour, roughness and angular shift.

Llimitations include:
-No glint or fresnel adjustments.
-The 'offset' is un-used when triangle primitives are used.
2013-09-15 23:58:00 +00:00
Antony Riakiotakis
b1179c4752 Sculpting:
* Cleanup for previous commit and reduce some local variable referencing
* Add support for brushes that operate on frontfaces only and do not
show the option for those brushes. Currently only clay strips is in the
list but this may change according to artist feedback. This should take
care of the "sticky" surface problem completely.
2013-09-13 23:58:00 +00:00
Campbell Barton
6895a9f11f fix [#36713] crash from adding gear from 'extra objects' addon 2013-09-12 21:01:27 +00:00
Campbell Barton
ec2464ac5f code cleanup: unnecessary shadowing and some minor pep8 edits. 2013-09-12 19:51:31 +00:00
Thomas Dinges
679609fbed 3D View / UI:
* Decouple "Display" panel, into Display and Shading panels, so one of them can be closed when not needed. (Saves some space).

Patch by Sebastian König, with tweaks by myself.
2013-09-12 13:01:36 +00:00
Campbell Barton
441bb19357 fix [#36081] ngones causes problems with lightmap packing 2013-09-11 09:55:44 +00:00
Campbell Barton
2f6c748bb9 fix [#36020] SmartUV Project is messy on a cube
was using very simple/stupid check to rotate us islands, replace with box_fit_2d() function.

missed docstring last commit.
2013-09-11 07:10:15 +00:00
Sergey Sharybin
e72c6f191f Tweaks to plane track
- Do plane re-evaluation only when transform is actually done.
  Before this re-evaluation happened on every mouse move.

- Added a flag "Auto Keyframe" for the plane track, which does:

  * If Auto Keyframe is enabled, then every manual edit of the
    plane will create a new keyframe at current frame and update
    plane motion between current frame and previous/next keyframe.

    This now also implies blending detected motion with neighbor
    keyframes, so there's no jump happening.

    No automatic update on manual point tracks edit will happen.

  * If auto Keyframe is disabled, then no keyframes are adding
    to the plane and every plane tweak will re-evaluate in on
    the whole frame range.

    In this case manual tweaks to point tracks and re-tracking
    them implies plane re-evaluation.
2013-09-10 12:46:18 +00:00
Brecht Van Lommel
259ddc4cf8 Fix #36641: maya key configuration shift + LMB drag border select did not work
anymore. This broke after the change to make holding shift deselect with B key
border select in the regular Blender keymap.
2013-09-09 20:23:38 +00:00
Bastien Montagne
83b2eefd09 Usual UI messages fixes... 2013-09-09 20:22:01 +00:00
Thomas Dinges
8802a4bcb0 3D View / UI:
* Save some space in the "Curve Display" panel.

Patch by Sebastian König, thanks!
2013-09-09 14:26:39 +00:00
Brecht Van Lommel
9c2c3c1804 Film response looks:
* Reorder list a bit to put brands together
* Move looks menu below views
* Rename camera_response to film_response folder, to make clear that these
  are photographic film types, not camera models
2013-09-09 14:23:58 +00:00
Sergey Sharybin
cf8cddf07a Film response curves implemented as a looks
This commit implement's OCIO's Looks idea which
is about applying some color correction on the
buffer before it get's affected by a display
transform.

This is mainly used to modify images in an
artistics way.

Currently we've got looks generated from film
response curves for all sorts of cameras.

Patch by both of me and Brecht.
2013-09-09 09:48:26 +00:00
Campbell Barton
e492fad130 shrink-wrap constraint, improve and remove some limitations.
- ability to change the space the axis is projected in (so you can choose worldspace or -space, was always local-space before).
- support projecting on a negative axis, without this some very simple clamping is not possible if the direction happened not to be positive.
- add distance limit (same as modifier), without this single meshes surrounding an object would make the constraint impossible to use in some cases (it would snap to the wrong side).

note: this removes the ability to project on multiple axes at once but this option only added up directions and didnt project on multiple axes as you might expect.
2013-09-07 12:59:16 +00:00
Campbell Barton
fbeeec7bd0 starting blenderplater wasnt flipping use_deprecation_warnings when it should, also use values directly without converting to ints. 2013-09-06 02:50:28 +00:00
Daniel Stokes
8f3b4a77ef BGE Fix: [#32360] Standalone Player switches not working
Launching the player from the Blender UI now makes use of the "Debug Properties", "Framerate and Profile", and "Deprecation Warnings" options by setting the appropriate command line flags.
2013-09-05 23:09:14 +00:00
Antony Riakiotakis
bed447b244 Tidy up paint options, patch by Sebastian Koenig, with minor changes
(ommit texture paint changes, they made the interface more difficult to
discern).

Also, move stroke input samples to stroke panel
2013-09-05 13:15:29 +00:00
Ton Roosendaal
dc8832ac92 Bugfix #35920
Adding a new node in Node Editor failed for "High DPI" (Only Mac retina now).

- Py script for adding nodes was doing dpi magic, which it shouldn't. It has 
  been replaced with a (temporary) API call to set the correct cursor location.
  (Thanks to Lukas T for helping here)

- The SpaceNode->cursor[2] property now is *only* storing the coordinate
  in "adding new node space". Use of this has been removed from the code where
  possible, with as only exception the code to draw noodles while adding them.

Special coder note: Nodes should respect the DPI value, and draw larger with
larger buttons if you increase this size. The hack here is that this can only
work nice if also the node positions are scaled accordingly.

A better fix could be to check on scaling the node view itself for it. That
then would also remove this Python API call that was added in this commit.
However, that again might fight with how buttons layout code works now...
needs some careful checking.
2013-09-05 13:03:03 +00:00
Tamito Kajiyama
e9182c1176 Fix for missing filter button to visualize/hide animation data related to line styles. 2013-09-03 22:50:58 +00:00
Brecht Van Lommel
6cc84d7c99 Related to #36382: for linked object point caches, show a message that disk
cache must be used for baking.
2013-09-03 16:28:53 +00:00
Brecht Van Lommel
55daa3cc6b Fix #36640: node editor header with world nodes not drawing correct after recent bugfix. 2013-09-02 14:14:02 +00:00
Campbell Barton
45e2e9ce59 add view3d roll to navigation menu. 2013-09-01 14:17:43 +00:00
Brecht Van Lommel
902e1d0b53 Fix #36613: view select/all shortcuts not working in graph editor with the
maya key configuration preset.
2013-09-01 13:19:06 +00:00
Lukas Toenne
2b6d2bf322 Patch #36622, by Henrik Aarnio: Fit backdrop image to the area dimensions.
A new operator to alter the backdrop zoom level so that it fits fully within the node editor area, and centers the image.
Shortcut alt-home, as home is used for fitting stuff into the view everywhere.
2013-09-01 09:50:56 +00:00
Campbell Barton
658e72f47d minor ui edits
- move addon refresh button into header
- uilist, use icon for sorting by name (gives more room for name, icon is used in fileselector for same purpose).
- rename orderby to sort in rna and flag names.
- simplify BKE_nurb_handle_calc_simple
2013-08-30 11:49:35 +00:00
Antony Riakiotakis
5f694a5078 refresh paint_common_properties file on script refresh, found by Sebastian Koenig, thanks 2013-08-30 11:46:19 +00:00
Tamito Kajiyama
91e5189c90 Fix for [#36599] Freestyle: Line thickness modifier with certain blend types incorrectly calculated.
The inner/outer thickness values were separately blended by Multiply, Divide and other binary
operators, which resulted in the wrong thickness values reported in the issue.  The operations
must be applied to the sum of the inner and outer thickness values.

Also the Minimum and Maximum operators were not properly implemented (one of the two operands
were ignored by mistake).
2013-08-30 09:17:27 +00:00
Campbell Barton
07994d6f50 mesh bisect can now be defined with mouse input
(using cursor + numeric values was too clumsy for defining orientation).

once the cut is done numeric input still works as before
2013-08-29 18:45:04 +00:00
Bastien Montagne
e98ef3ae68 Optimizations by Campbell, thanks! 2013-08-29 14:37:46 +00:00
Bastien Montagne
b7e2cd5948 UIList: update examples and templates. 2013-08-29 13:34:36 +00:00
Bastien Montagne
113997a03c Last uiList patch (for now!): filtering and reordering of shown elements.
Thanks to Brecht for the reviews. :)

This commit adds a show/hide extension below each uiList, containing by default an option to filter and/or reorder items by name (and to reverse those filtering and reordering).

Each derived uiList class in Python can define more specific filtering by implementing callbacks: the draw_filter() function to draw options in UI, and the filter_items() function to effectively filter/reorder items.

Note: the advanced options for vgroups shown as "proof od concept" in patches do not go in trunk for now, we have to find a better way to get those vgroups info for UI code, we can't afford to loop over each vertex here!

And doc (release notes and uiList example) is still to be updated, will do this in next days.
2013-08-29 12:55:31 +00:00
Campbell Barton
73068ca3df use os.remove rather then unlink (the same but all other areas use 'remove') 2013-08-29 06:02:19 +00:00
Mitchell Stokes
dea537fd68 BGE: The WM_OT_blenderplayer_start addon now saves a copy of the current blendfile with a trailing '~' to keep paths intact. An unsaved file will still go to the tmp directory. This file is deleted when the blenderplayer process exits. 2013-08-29 04:31:55 +00:00
Campbell Barton
95fcf02500 patch [#36336] Split operator for curves and surfaces
by Kevin Mackay (yakca)

The operator follows roughly the same behaviour as the split operator for a mesh (Ykey).
2013-08-29 02:32:51 +00:00
Lukas Toenne
562313bfd3 Fix for #36589 Node Editor displays incorrect Material name when Pinning.
The material button displayed in the node editor header is the "active_material" of the active object. When pinning the node tree this should ideally be the pinned node tree's material slot, but this
would require adding even more confusing info in SpaceNode to find the correct slot in addition to the id_from datablock. Solution for now is to just disable these buttons when pinning to communicate
better.
2013-08-28 09:05:09 +00:00
Lukas Toenne
771906bc09 Fix for #36387, User Preferences "Addons" panel bogs down the whole interface.
The addons panel draw function calls addon_utils.modules() which in turn retrieves a list of fake modules from the script paths every time. This can become costly when network paths are included for
addons. Solution is to put the scanning process into a dedicated "refresh" function and disable it in frequently called draw and filter functions, i.e. in these cases the cached addons_fake_modules list
will be used instead.

Note that this may lead to invalid addon lists if script paths are changed (which is not working 100% without restart anyway according to Campbell). For this there is now a "Refresh" operator button in
the addons preferences. If necessary and feasible such forced refreshes can be added later too.
2013-08-28 06:36:54 +00:00
Bastien Montagne
07aaf4a90a Icons: add a "grip" one. 2013-08-27 15:21:58 +00:00
Campbell Barton
d90d25ec78 add icons utility make target. 2013-08-27 10:03:37 +00:00
Bastien Montagne
71e5e90fb7 Followup to r59536: make "is_argument_optional" available to py, and use it in API doc generation.
Thanks Campbell for the much better name suggestion!
2013-08-26 21:39:06 +00:00
Sergey Sharybin
03dbae07d3 Mask primitives
Currently only circle and square, might be easily
extended in the future.

New primitives are creating at cursor location.
This also implied adding 2d cursor to space clip.

Also fix set 2D cursor location which didn't work
in image editor's mask mode since 2.67.

TODO: draw_image_cursor better be moved to some
      more generic file, but it's not so much
      important for now and might be solved later.

Thanks Campbell for the review!
2013-08-26 20:23:26 +00:00
Campbell Barton
762e7da976 add some safety checks in debug mode to ensure sets/hashes aren't confused. 2013-08-26 09:37:15 +00:00
Tamito Kajiyama
6c14f641f3 Partial revert of UI appearance changes in r52778 in the Strokes tab of the Freestyle Line Style panel. 2013-08-25 16:29:10 +00:00
Andrea Weikert
ba4d8762fe Made large "blender icon" for save blends (.blend1, .blend2, etc.) have a bit darker background as well. 2013-08-24 14:01:07 +00:00
Bastien Montagne
17679aaa52 Adding a darker "blender icon" for save blends (.blend1, .blend2, etc.), as requested by elubie. 2013-08-24 13:28:18 +00:00
Bastien Montagne
c43e7bfd74 "Fix" [#36551] Camera has wrong rotation in default scene :P 2013-08-23 21:37:39 +00:00
Bastien Montagne
5b83a89c81 Followup to r59434 : py UI scripts edits.
Notes:
* Made those edits by full checking of py files, so I should have spoted most needed edits, yet it remains quite probable I missed a few ones, we'll fix if/when someone notice it...
* Also made some cleanup "on the road"!
2013-08-23 20:41:21 +00:00
Lukas Toenne
dd36c6b948 Fix for an obscure bpy_types bug: When attempting to define __setattr__ in a metaclass based on RNAMetaPropGroup, the base class' __setattr__ method can not be called, since python prohibits setattr on
builtin classes. This was done in Python 2.3 to prevent changes to the 'object' type definition and similar issues. As explained by Guido van Rossum in the following mail, the python check will look for
the *closest* base class, which fails for RNAMetaPropGroup because its first base is RNAMeta, which is in turn a subclass of 'type'.

http://code.activestate.com/lists/python-dev/34489/

The easiest and safest way to prevent this issue therefore seems to be
to swap the base class order for RNAMetaPropGroup, so that StructMetaPropGroup is the first base, which has a perfectly valid setattr implementation.
2013-08-23 15:39:25 +00:00
Campbell Barton
c752346cfa new mesh bisect tool, available in the mesh menu.
cuts the mesh in half based on the cursor location and the viewport,
optionally supports filling the cut area (with uvs. vcols, etc),
and removing geometry on either side of the cut.
2013-08-23 11:46:08 +00:00
Sergey Sharybin
9f72bf7865 Tracking cleanup
- Collapse plane track panels by default
- Hide 3D markers when in mask edit mode
- Remove alpha from mask layers list

Discussed with Sebastian and Roman.
2013-08-23 09:40:42 +00:00
Thomas Dinges
fc9d4bdf73 Cycles / Sampling UI:
* Add a "Total Samples" info at the bottom of the panel.
This makes understanding the Non-Progressive integrator easier, as it displays how many samples are used for the different ray types. 

* Rename Squared Samples to Square samples, to indicate that the action is not already done. The new Total Samples info should make this easier to understand now as well. Also added back for Progressive integrator, for consistency. 

Screenshot:
http://www.pasteall.org/pic/show.php?id=57980
2013-08-22 19:57:56 +00:00
Bastien Montagne
104cd04f4f Had not been updated after last edit to prvicons.svg file (r53004)... 2013-08-22 13:48:22 +00:00
Campbell Barton
636b200709 style cleanup: pep8, also use float literals when comparing floats and pass tuples to mathutils.Vector() rather then list. 2013-08-21 23:19:01 +00:00
Tamito Kajiyama
2a5b6d9c8f Temporary fix for gaps in strokes when objects are behind the lines.
Problem report by Light BWK through personal communications, thanks a lot!

Apparently there is something wrong in the way how edges are chained to
create strokes.  For some unknown reason, strokes may contain a very small
line segment that proceeds in the opposite direction (e.g., downward
even when adjacent stroke segments proceed upward), resulting in the
reported visual artefact.

This revision is intended to address the reported issue in most cases.
The present solution is not a proper fix of the issue.  Another code
update with better understanding of the real cause is due in the future
work.
2013-08-21 21:20:51 +00:00
Campbell Barton
b1a0dc6630 quiet error installing an addon when the directory already exists (would happen on OSX frequently),
the addon would install but error was misleading.
2013-08-20 14:43:01 +00:00
Sergey Sharybin
400bd9bfba MCE: usability improvement
Align Clear Before/After into a row and remove
Clear button (which wasn't actually used by
artists).
2013-08-19 11:24:35 +00:00
Bastien Montagne
b9f78815f1 Fix [#36423] Audio strips contain selectable (visual) blend modes and opacity value
Simply hide blend type and opacity for SOUND strips!
2013-08-18 15:48:51 +00:00
Bastien Montagne
a567dd20c0 More "relpath" try/except protection... 2013-08-18 15:17:33 +00:00
Campbell Barton
0f07ca6809 remove unused args from edgenet fill (since rewrite, but they weren't used before either) 2013-08-17 09:25:12 +00:00
Campbell Barton
2633488877 use 'with' keyword for script stub (recommended with py3). 2013-08-17 05:27:58 +00:00
Sergey Sharybin
24ce60cfe4 Merge plane track feature from tomato branch
This commit includes all the changes made for plane tracker
in tomato branch.

Movie clip editor changes:

- Artist might create a plane track out of multiple point
  tracks which belongs to the same track (minimum amount of
  point tracks is 4, maximum is not actually limited).

  When new plane track is added, it's getting "tracked"
  across all point tracks, which makes it stick to the same
  plane point tracks belong to.

- After plane track was added, it need to be manually adjusted
  in a way it covers feature one might to mask/replace.

  General transform tools (G, R, S) or sliding corners with
  a mouse could be sued for this. Plane corner which
  corresponds to left bottom image corner has got X/Y axis
  on it (red is for X axis, green for Y).

- Re-adjusting plane corners makes plane to be "re-tracked"
  for the frames sequence between current frame and next
  and previous keyframes.

- Kayframes might be removed from the plane, using Shit-X
  (Marker Delete) operator. However, currently manual
  re-adjustment or "re-track" trigger is needed.

Compositor changes:

- Added new node called Plane Track Deform.

- User selects which plane track to use (for this he need
  to select movie clip datablock, object and track names).

- Node gets an image input, which need to be warped into
  the plane.

- Node outputs:
  * Input image warped into the plane.
  * Plane, rasterized to a mask.

Masking changes:

- Mask points might be parented to a plane track, which
  makes this point deforming in a way as if it belongs
  to the tracked plane.

Some video tutorials are available:
- Coder video: http://www.youtube.com/watch?v=vISEwqNHqe4
- Artist video: https://vimeo.com/71727578

This is mine and Keir's holiday code project :)
2013-08-16 09:46:30 +00:00
Campbell Barton
4006f8c83b fix [#36455] importing obj data after saving doesn't work 2013-08-15 00:32:12 +00:00
Bastien Montagne
4e8b97823b Typo (dimention instead of dimension). 2013-08-13 18:35:39 +00:00
Ton Roosendaal
004fa8e729 GPL V3 license, which will be valid for the binary releases.
(Because Blender links with the Apache2 license).

Cleanup of this directory will happen before official release.
2013-08-12 12:31:51 +00:00
Sergey Sharybin
9f9b4cf9b3 Add jemalloc license to release/text
Official linux builds are linking against jemalloc,
and in the own branch i'm using some of it's code.

License files location could be changed a bit later
(i.e. make it so all the license files are in the
single folder, not in the root of the blender distro).
2013-08-12 12:17:54 +00:00
Campbell Barton
1c5b416cbf image_load() utility function's 'recursive' option wasn't functional since 2.4x 2013-08-12 07:48:31 +00:00
Campbell Barton
4fbe426151 bpy.path.reduce_dirs() - new utility function to de-duplicate and remove nested paths before doing a recursive search. 2013-08-12 07:44:38 +00:00
Sv. Lockal
4c136881a5 Add better UI for "Add Torus" function
The previous one did nothing in many cases and was very unintuitive:
http://www.pasteall.org/pic/show.php?id=57219
2013-08-10 15:37:24 +00:00
Brecht Van Lommel
bfb63ab5a5 Fix #36373: maya and max key configurations for mesh loop select did not work correct
when doing an extend loop select, then doing a regular loop select, it would still
extend.
2013-08-07 15:51:57 +00:00
Bastien Montagne
0214dac604 Usual edits/fixes to new UI messages... 2013-08-06 14:55:00 +00:00
Miika Hamalainen
91d148b891 Dynamic Paint: Added a new "smoothness" parameter for waves.
It greatly helps getting rid of that "noise" that occurs if you use really steep objects (like cubes) as a brush. New default value is 1.0 which is just high enough to only get rid of the sharpest spikes, so if you want really smooth waves it's better use higher values.

This also seems to "fix" bug [#35413].
2013-08-03 09:46:38 +00:00
Thomas Dinges
9caaa78c32 Fix for r58798, forgot to update the presets. 2013-08-01 14:00:24 +00:00
Thomas Dinges
2a2f0319bc Cycles / HSV Separator and Combine node:
* Added nodes to separate and combine hsv colors.

Part of my GSoC 2013 project, SVN merge of r57981.
2013-07-31 21:27:48 +00:00
Thomas Dinges
34009da32e Cycles / Vector Transform node:
* Add a note to convert a Vector, Point or Normal between World <=> Camera <=> Object coordinate space. 

Documentation: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Vector_Transform

Part of my GSoC 2013 project, SVN merge of r57599, r57670, r57918, r57919, r58245 and r58775.
2013-07-31 21:18:23 +00:00
Thomas Dinges
6d9720ef63 Cycles / Blackbody to RGB node:
* Added a node to convert a temperature in Kelvin to an RGB color. This can be used e.g. for lights, to easily find the right color temperature. 
= Some common temperatures =
Candle light: 1500 Kelvin
Sunset/Sunrise: 1850 Kelvin
Studio lamps: 3200 Kelvin
Horizon daylight: 5000 Kelvin

Documentation: http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Blackbody

Thanks to Philipp Oeser (lichtwerk), who essentially contributed to this with a patch! :)

This is part of my GSoC 2013 project. SVN merge of r57424, r57487, r57507, r57525, r58253 and r58774
2013-07-31 20:56:32 +00:00
Thomas Dinges
6c5a4aedc2 Fix for [#36321] 'Mark Freestyle Edge' still showing with Cycles renderer
* Now we hide Freestyle properties when "use_shading_nodes" is true.
2013-07-30 09:00:31 +00:00
Lukas Toenne
7e02d82036 Minor change to the custom_nodes.py template that has some consequences for addons: use bpy.types.* base classes instead of bpy_types.*
The bpy_types classes cause issues when used in addons when loading on Blender startup (subclasses cannot be properly registered).
2013-07-30 08:30:15 +00:00
Mitchell Stokes
29f8dfd37a BGE: Adding vsync control. Users can enable vsync, disable vsync, or use adaptive vsync via UI options in the render properties, or by using the new Python method bge.render.setVsync(). Win32 and X11 support are done via EXT_swap_control. Support for using EXT_swap_control on OS X still needs to be added to Ghost. 2013-07-29 22:31:32 +00:00
Thomas Dinges
46ad9b6b47 UI / Code:
Cody style changes for r58692.
* First of all, UI code is really simple, especially in such small panels, no need to comment obvious things like left/right column.
* "if 1" nested structs for code clarity? That's a really bad thing, especially if you have 3  lines which belong together, but only 2 of them are indented...

    sub = row.row()
    sub.active = obj.show_bounds
sub.prop(obj, "draw_bounds_type", text="")

* Empty line after layout = self.layout declarations, we still follow these Rules.
http://wiki.blender.org/index.php/Dev:2.5/Py/Scripts/Guidelines/Layouts

Thanks!
2013-07-28 22:12:19 +00:00
Campbell Barton
4f02555004 new mesh tool for cleaning up meshes, splits up non-planar faces while they exceed a given angle threshold
(access from the 'Mesh -> Clean' menu).
2013-07-28 19:53:46 +00:00
Campbell Barton
46aea9c0c8 patch [#36296] object->display-properties subpanel layout cleanup
from David Jeske (jeske), with minor edits of my own.
2013-07-28 11:43:11 +00:00
Campbell Barton
4bc32d5ded mesh tool to fill in holes, added in mesh clean menu,
unlike other face creation tools it copies data from surrounding faces.
2013-07-25 18:43:05 +00:00
Campbell Barton
df0114a17a curve only supported radius smoothing, add smooth for tilt and weight. 2013-07-24 14:30:45 +00:00
Campbell Barton
576161b186 fix [#36262] Paste strip with video or sound content from another file crashes Blender
existing code was very stupid.

- all ID pointers for clipboard strips are handled uniformly.
- clipboard stores a duplicate ID pointer which are restored on paste.
- restoring pointers...
-- use ID's that are still in the database (copy&paste within the same file).
-- fallback to name lookup.
-- fallback to loading them from the original filepath (movie-clip and sound only).

also fix bug pasting where initialing the sound wasn't done if there was no frame-offset.
2013-07-24 06:51:04 +00:00
Campbell Barton
f77405356a remove use_relative option from simple deform,
all modifiers should be using object transformations relatively.
2013-07-23 19:31:49 +00:00
Campbell Barton
d9b0f660c9 prepare for 'a' bugfix release, splash and version bump. 2013-07-23 08:10:46 +00:00
Campbell Barton
4d47f5fe05 snap to cursor (offset option) added for UV's too. 2013-07-21 16:45:38 +00:00
Campbell Barton
7233f22e21 add new snap option: 'Selection to Cursor (Offset)',
rather then moving everything into the cursor location, the current selection centers around the cursor, maintaining their relative distances.
works for mesh, object, pose bones etc.
2013-07-20 17:12:33 +00:00
Campbell Barton
49c61e169b misc edits
- fix for missing None check with recent 'Hidden Wire' draw option.
- avoid int overflow with mesh selection.
- remove ';' outside of functions.
2013-07-20 15:07:57 +00:00
Sv. Lockal
8ff67f12c7 Fix descriptions for mask selection operators and use less ambiguous "letter-spacing" term 2013-07-20 12:24:53 +00:00
Sv. Lockal
3de1458cdf Select more/less tool for mask splines 2013-07-20 10:24:16 +00:00
Thomas Dinges
363b04d15e Cycles / Sampling Presets:
* Values were a bit too small for the Progressive integrator, now we use 12 and 24 (sqared).
2013-07-20 09:29:25 +00:00
Campbell Barton
32f3771d0b hidden wireframe option for mesh editmode, important for retopology mode (can be used with xray). 2013-07-20 03:51:49 +00:00
Thomas Dinges
ac1d58d962 Cycles / Sampling Presets:
* Add Presets for Sampling. This comes with a simple Preview and Final preset, but as this is varying a lot depending on the scene, they should just be a starting point. The user can add own presets here.

* Some UI layout changes to match the settings a bit better.
2013-07-19 23:59:40 +00:00
Bastien Montagne
68c0028ebc Add Tamil characters to our i18n font (from samyak-tamil). 2013-07-19 20:28:46 +00:00
Campbell Barton
2dc6b22382 patch [#35789] Quick hack select more/less tool for armatures
by Pedro Riera (priera), Andrey Dubravin and parts rewritten by myself.
2013-07-19 10:51:54 +00:00
Campbell Barton
df299ab500 patch [#36032] Quick Hack lattice random selection
by Andrey Dubravin (daa)
2013-07-19 10:44:39 +00:00
Ton Roosendaal
530bcc422e Tradtional release commit! 2.68 splash and the numbering.
- This should then follow the tagging
- And I would still prefer to have at least 24 hours full freeze, for proper test
  and avoid last minute errors.
2013-07-18 10:08:28 +00:00
Campbell Barton
8053b9a801 re-commit temp workaround [#35920], this still fails for OSX retina display,
but at least it resolves for DPI values other then 72.
2013-07-17 10:48:32 +00:00
Bastien Montagne
20d6cd008b Style cleanup of UI messages.
Mostly, "weight groups" -> "vertex groups", and usual case/endpoints/typos/etc.

As a remainder, please read http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#UI_Messages before writing UI messages!
2013-07-16 13:12:58 +00:00
Campbell Barton
b2b6d56443 move keymap ui into modules, its not loaded on startup anymore. 2013-07-08 22:57:51 +00:00
Campbell Barton
8a388a7bef fix [#36043] Missing Tooltip for Excluded Paths field of Auto Run Python Scripts in User Preferences -> File
also select more/less were flipped for mesh menu compared to everywhere else.
2013-07-08 07:40:32 +00:00
Campbell Barton
2c87b88180 re-arrange space_userpref_keymap, no need to use a subclass here, just import the module and call draw_keymaps().
- making this change now because some addons developers are interested in showing keymap UI in their addons prefs and using the class involved making a fake class instance which isnt needed.
2013-07-08 07:25:33 +00:00
Tamito Kajiyama
15a2287a8e Fix for incorrect clipping of Freestyle strokes when the viewport preview is used. 2013-07-07 15:29:00 +00:00