7 years agoImage cache rewrite to using generic movie cache
Sergey Sharybin [Fri, 13 Dec 2013 10:22:08 +0000 (16:22 +0600)]
Image cache rewrite to using generic movie cache

Behaves very much the same as cache for Movie Clip datablock:

- Image now have `MovieCache *cache` field which replaced
  legacy `ListBase ibufs`.

  This allows image datablock to easily keep of image
  buffers which are owned by itself. This field isn't
  saved to the file and getting restored on undo steps.

  However, cache limit is global for movies, sequences
  and image datablocks now. So overall cached image buffers
  size will not go above cache limit size in user

- Image buffers which are marked as BITMAPDIRTY will never
  be freed from the cache.

- Added utility function to iterate over image buffers
  saved in movie cache.

- Movie cache cleanup check callback now have ImBuf argument
  which can be used in a condition of cleanup.

- Added some utility functions which replaces legacy ibufs
  iterations with image cache iteration which happens from
  inside a lock.

- Fixed `image_mem_size()` which was only counting one of
  the buffers if both float and byte buffer present.

Additional notes:

- `BKE_image_get_first_ibuf()` is rather stupid, but direct
  access to ibufs->first was also the same stupid idea.

  Would consider avoid this function is another project.

- There are some places which doesn't look threadsafe, but
  they already were not so much threadsafe anyway before.

  So think not a big deal with solving this later.

Finally solves infinite memory usage by image sequences! :)

Reviewers: brecht, campbellbarton

Reviewed By: brecht

CC: sebastian_k
Differential Revision:

7 years agoInterface / Particles: Fix bad alignment in Rotation panel, sub layout missed the...
Thomas Dinges [Fri, 13 Dec 2013 09:54:44 +0000 (10:54 +0100)]
Interface / Particles: Fix bad alignment in Rotation panel, sub layout missed the flag.

7 years agoInterface / PointCache: Remove name fields here as well, not needed anymore due to...
Thomas Dinges [Fri, 13 Dec 2013 09:20:35 +0000 (10:20 +0100)]
Interface / PointCache: Remove name fields here as well, not needed anymore due to direct rename in uiList.

7 years agoImplement GPU-side dither
Sergey Sharybin [Fri, 13 Dec 2013 06:36:45 +0000 (12:36 +0600)]
Implement GPU-side dither

Uses some magic pseudo-random which is actually a
texture coordinate hashing function.

- Dither noise is the same for all the frames.
- It's different from Floyd's dither we've been
  using before.
- Currently CPU and GPU dithering used different
  implementation. Ideally we need to use the same
  dither in CPU.

Reviewers: brecht

Reviewed By: brecht

Differential Revision:

7 years agominor style and comment fix.
Antony Riakiotakis [Thu, 12 Dec 2013 21:32:07 +0000 (23:32 +0200)]
minor style and comment fix.

7 years agoHide the 3D cursor in a few cases where it is unneeded (active object is
Antony Riakiotakis [Thu, 12 Dec 2013 21:24:27 +0000 (23:24 +0200)]
Hide the 3D cursor in a few cases where it is unneeded (active object is
in sculpt mode or image paint mode and no clone tool is active)

7 years agoFix T37572: text editor scrolling not working well with Mac trackpad panning.
Brecht Van Lommel [Thu, 12 Dec 2013 23:04:05 +0000 (00:04 +0100)]
Fix T37572: text editor scrolling not working well with Mac trackpad panning.

The trackpad would give isolated mouse pan events with a distance smaller than
one line or character. For other 2D views this is all accumulated in floats,
but in the text editor it only keeps track of integers, and the small mouse pan
events got lost due to rounding.

Now it keeps track of sub-line or sub-character scroll offsets to avoid this.

7 years agoUI: remove text margin when a slider is aligned to another button
Campbell Barton [Thu, 12 Dec 2013 18:28:24 +0000 (05:28 +1100)]
UI: remove text margin when a slider is aligned to another button

Paint sliders had too much space on right (aligned with pressure icons)

7 years agoRadial control operator support for pixel properties
Antony Riakiotakis [Thu, 12 Dec 2013 18:07:16 +0000 (20:07 +0200)]
Radial control operator support for pixel properties

7 years agoFix T37692: Follow active quads failed on unselected-active-face
Campbell Barton [Thu, 12 Dec 2013 18:05:21 +0000 (05:05 +1100)]
Fix T37692: Follow active quads failed on unselected-active-face

7 years agoRNA: Add pixels property type
Scott Petrovic [Thu, 12 Dec 2013 17:39:15 +0000 (04:39 +1100)]
RNA: Add pixels property type

7 years agoCode Cleanup: use static for sky_model_data.h
Campbell Barton [Thu, 12 Dec 2013 17:16:57 +0000 (04:16 +1100)]
Code Cleanup: use static for sky_model_data.h

7 years agoimprovements and simplification to gravity code:
Antony Riakiotakis [Thu, 12 Dec 2013 17:35:33 +0000 (19:35 +0200)]
improvements and simplification to gravity code:

* world to object matrix is calculated for view vector as well, reuse
* if no orientation exists use world negative axis instead of object
negative axis for gravity.

there's also the issue of mirroring, it may be wise to invert the
gravity effect there but it may be better to have artist feedback on

7 years agoSculpt mode Gravity feature from GSOC 2010 by Jason Wilkins.
Antony Riakiotakis [Thu, 12 Dec 2013 17:01:11 +0000 (19:01 +0200)]
Sculpt mode Gravity feature from GSOC 2010 by Jason Wilkins.

Reviewers: sergey, brecht, campbellbarton, jwilkins

Differential Revision:

7 years agoRaise llvm min version to 3.3, looks like this is needed for OSL nowadays...
Bastien Montagne [Thu, 12 Dec 2013 16:23:31 +0000 (17:23 +0100)]
Raise llvm min version to 3.3, looks like this is needed for OSL nowadays...

7 years agoFix for error exposed by right-align number buttons
Campbell Barton [Thu, 12 Dec 2013 15:47:00 +0000 (02:47 +1100)]
Fix for error exposed by right-align number buttons

When the entire label was clipped, the right aligned number component
could be clipped on its left hand side too.
So "Foo: 1.00" could be clipped to ".00"

7 years agoFix T37595: Switching modal transform broke with trackball rotation.
Campbell Barton [Thu, 12 Dec 2013 13:28:35 +0000 (00:28 +1100)]
Fix T37595: Switching modal transform broke with trackball rotation.

Id properties may have different sized "values" array depending on the
transform operator

7 years agoCode Cleanup: use const's and bools for idprops
Campbell Barton [Thu, 12 Dec 2013 10:57:37 +0000 (21:57 +1100)]
Code Cleanup: use const's and bools for idprops

7 years agoFix T37786: Curves: Geometry tab is missing
Sergey Sharybin [Thu, 12 Dec 2013 12:08:41 +0000 (18:08 +0600)]
Fix T37786: Curves: Geometry tab is missing

Was broken by rB2a55d68e1927 which inverted condition
in poll function for Geometry panel.

7 years agoAttempt to fix compilation error on Debian armel kernel
Sergey Sharybin [Thu, 12 Dec 2013 11:33:17 +0000 (17:33 +0600)]
Attempt to fix compilation error on Debian armel kernel

7 years agoAdd libxml2, libyaml-cpp and libtinyxml to default dependencies (always-installed...
Bastien Montagne [Thu, 12 Dec 2013 10:07:04 +0000 (11:07 +0100)]
Add libxml2, libyaml-cpp and libtinyxml to default dependencies (always-installed packages), looks like they are needed...

7 years agoRNA: Add assert to ensure the idprop is correct size on array get/set
Campbell Barton [Thu, 12 Dec 2013 10:00:11 +0000 (21:00 +1100)]
RNA: Add assert to ensure the idprop is correct size on array get/set

7 years agoFix T37757: MCE - Mask Pivot Point individual origins doesnt work
Sergey Sharybin [Thu, 12 Dec 2013 08:35:37 +0000 (14:35 +0600)]
Fix T37757: MCE - Mask Pivot Point individual origins doesnt work

Simple wasn't implemented.

7 years agoFix for off by one error noted by Anthony Edlin
Campbell Barton [Thu, 12 Dec 2013 08:01:44 +0000 (19:01 +1100)]
Fix for off by one error noted by Anthony Edlin

7 years agoUse factor subtype for plane track opacity
Sergey Sharybin [Thu, 12 Dec 2013 07:51:04 +0000 (13:51 +0600)]
Use factor subtype for plane track opacity

7 years agoCode cleanup: indent preprocessor directives inside #ifdef
Sergey Sharybin [Thu, 12 Dec 2013 07:10:03 +0000 (13:10 +0600)]
Code cleanup: indent preprocessor directives inside #ifdef

7 years agoMesh API: Add BKE_mesh_origindex_map_create
Campbell Barton [Thu, 12 Dec 2013 06:11:27 +0000 (17:11 +1100)]
Mesh API: Add BKE_mesh_origindex_map_create

This API function lets original data loop over its derived data,
Use for vertex paint, replacing custom function.

7 years agoCode Cleanup: move mesh mapping functions into their own file/header
Campbell Barton [Thu, 12 Dec 2013 05:26:11 +0000 (16:26 +1100)]
Code Cleanup: move mesh mapping functions into their own file/header

7 years agoFix T37769: inconsistent behavior of Remove Selected From Active Group.
Brecht Van Lommel [Thu, 12 Dec 2013 05:07:10 +0000 (06:07 +0100)]
Fix T37769: inconsistent behavior of Remove Selected From Active Group.

Add Selected to Active Group presented a menu with groups to choose from, while
this seemingly inverse operation did not and used all groups of the active

Now both operators present a menu, with as first option "All Groups".

7 years agoFix T37780: no languages in user preferences with SCons on Windows / Linux.
Brecht Van Lommel [Thu, 12 Dec 2013 04:56:56 +0000 (05:56 +0100)]
Fix T37780: no languages in user preferences with SCons on Windows / Linux.

The "languages" file was not copied, probably this was not noticed earlier
because it only affects clean builds.

7 years agoCode Cleanup: replace global debug checks in raycast with DEBUG ifdef
Campbell Barton [Thu, 12 Dec 2013 04:29:17 +0000 (15:29 +1100)]
Code Cleanup: replace global debug checks in raycast with DEBUG ifdef

7 years agoAdd meaningful default for SimpleDeform modifier's angle prop.
Bastien Montagne [Wed, 11 Dec 2013 21:10:45 +0000 (22:10 +0100)]
Add meaningful default for SimpleDeform modifier's angle prop.

7 years agoMore updates, fixes and cleanup to
Bastien Montagne [Wed, 11 Dec 2013 16:50:26 +0000 (17:50 +0100)]
More updates, fixes and cleanup to

So, after hours of wild hunt, I think both CMake and Scons builds work again.
There were several small issues hiding here and there, esp. for scons.

*WARNING* the --all-static is currently officially broken (it was already quite useless in fact).
          I’m seriously considering dropping it completely, having a script compiling a chain
          of static libs in a complete working way for *two* different build systems is just
          too much work (static libs are *really* a nightmare at link time).

Builders who want to generate static Blender (to share it e.g.) will have to handle things by hand for now.

Main other points changed:

* Many changes to generated settings for scons (notably, I had to hack around the fact that the short ld -l
  option does not work with lib names like 'Iex-2_1', which is not that surprising).
* Opencollada remains the only lib built statically (can't get it to build dyn currently).
* All other libs, even ILMBase ones, are now fully dynamic ones.
* Some general cleanup with CMake definitions of built libs.
* Git-libs do not clone again and again the repo anymore!

7 years agoAttempt to fix compilation against libav-0.8.9
Sergey Sharybin [Wed, 11 Dec 2013 16:40:00 +0000 (22:40 +0600)]
Attempt to fix compilation against libav-0.8.9

7 years agoFix T37777: layout.column_flow() not working correct with retina / DPI.
Brecht Van Lommel [Wed, 11 Dec 2013 16:05:17 +0000 (17:05 +0100)]
Fix T37777: layout.column_flow() not working correct with retina / DPI.

7 years agoUI: change how number button strings are concatenated (to easy add new suffix)
Campbell Barton [Wed, 11 Dec 2013 13:32:13 +0000 (00:32 +1100)]
UI: change how number button strings are concatenated (to easy add new suffix)

7 years agoFix intersect_line_plane bug causing crash on Motion trail and other
Benoit Bolsee [Wed, 11 Dec 2013 09:31:58 +0000 (10:31 +0100)]
Fix intersect_line_plane bug causing crash on Motion trail and other
similar potential bugs in mathutils_geometry

marking no_flip as TODO

7 years agoUI: Small panel tweak for Dynamic Paint UI, to save some space when color type is...
Thomas Dinges [Wed, 11 Dec 2013 11:40:17 +0000 (12:40 +0100)]
UI: Small panel tweak for Dynamic Paint UI, to save some space when color type is NONE

7 years agoFix for curve pinning raising an exception
Campbell Barton [Wed, 11 Dec 2013 11:03:21 +0000 (22:03 +1100)]
Fix for curve pinning raising an exception

7 years agoMove curve's boundbox and texspace calculation out of modifier stack
Sergey Sharybin [Sun, 20 Oct 2013 12:41:33 +0000 (14:41 +0200)]
Move curve's boundbox and texspace calculation out of modifier stack

There were several issues with how bounding box and texture space
are calculated:

- This was done at the same time as applying modifiers, meaning if
  several objects are sharing the same curve datablock, bounding
  box and texture space will be calculated multiple times.

  Further, allocating bounding box wasn't safe for threading.

- Bounding box and texture space were evaluated after pre-tessellation
  modifiers are applied. This means Curve-level data is actually
  depends on object data, and it's really bad because different
  objects could have different modifiers and this leads to
  conflicts (curve's data depends on object evaluation order)
  and doesn't behave in a predictable way.

  This commit moves bounding box and texture space evaluation from
  modifier stack to own utility functions, just like it's was done
  for meshes.

  This makes curve objects update thread-safe, but gives some
  limitations as well. Namely, with such approach it's not so
  clear how to preserve the same behavior of texture space:
  before this change texture space and bounding box would match
  beveled curve as accurate as possible.

  Old behavior was nice for quick texturing -- in most cases you
  didn't need to modify texture space at all. But texture space
  was depending on render/preview settings which could easily lead
  to situations, when final result would be far different from
  preview one.

  Now we're using CV points coordinates and their radius to approximate
  the bounding box. This doesn't give the same exact texture space,
  but it helps a lot keeping texture space in a nice predictable way.

  We could make approximation smarter in the future, but fir now
  added operator to match texture space to fully tessellated curve
  called "Match Texture Space".

Review link:

Brief description:

7 years agoCache limiter cleanup and small fixes
Sergey Sharybin [Tue, 10 Dec 2013 09:07:10 +0000 (15:07 +0600)]
Cache limiter cleanup and small fixes

- Made code a bit less cluttered to follow
- Fixed possible deadlock when enforcing limit
  and highest priority element is still referenced.

7 years agoUser Interface: Align number buttons labels to the left, number right
Campbell Barton [Wed, 11 Dec 2013 10:27:13 +0000 (21:27 +1100)]
User Interface: Align number buttons labels to the left, number right

7 years agoUser Interface: add colon separator for number buttons
Campbell Barton [Wed, 11 Dec 2013 10:06:00 +0000 (21:06 +1100)]
User Interface: add colon separator for number buttons

7 years agoInterface: avoid setting \0 to drawstr in widget_draw_text
Campbell Barton [Wed, 11 Dec 2013 09:33:17 +0000 (20:33 +1100)]
Interface: avoid setting \0 to drawstr in widget_draw_text

7 years agoSanity check in node links API: Make sure a valid node exists for both
Lukas Tönne [Wed, 11 Dec 2013 08:20:08 +0000 (09:20 +0100)]
Sanity check in node links API: Make sure a valid node exists for both
sockets passed to the function, otherwise this could
lead to invalid connections between different node trees! The
ntreeAddLink function has asserts for this, but this condition needs to
be checked in the RNA method calling it.

7 years agoFix T37755: Autokey doesn't work for local Z-Axis in Camera view with MotionPaths...
Joshua Leung [Wed, 11 Dec 2013 03:15:47 +0000 (16:15 +1300)]
Fix T37755: Autokey doesn't work for local Z-Axis in Camera view with MotionPaths enabled

The problem here was that the hack used to fix T24551 in r32863
would cause the camera to jump back to its pre-transform position
after motionpaths were recalculated. This made it seem like a keyframe
wasn't inserted by AutoKeying (even though it was).

7 years agoFix incorrect comment - copy and paste error
Joshua Leung [Wed, 11 Dec 2013 03:11:54 +0000 (16:11 +1300)]
Fix incorrect comment - copy and paste error

7 years agoCode cleanup: assign win size to const vars and some renaming
Campbell Barton [Wed, 11 Dec 2013 01:42:04 +0000 (12:42 +1100)]
Code cleanup: assign win size to const vars and some renaming

7 years agoMinor fix to generated settings for scons (affected ilmbase/openexr).
Bastien Montagne [Tue, 10 Dec 2013 21:24:07 +0000 (22:24 +0100)]
Minor fix to generated settings for scons (affected ilmbase/openexr).

7 years agoFix T37713: proxy not updated for first frame in background render.
Brecht Van Lommel [Tue, 10 Dec 2013 17:44:50 +0000 (18:44 +0100)]
Fix T37713: proxy not updated for first frame in background render.

The problem is that the animation curves are first before object updates,
where BKE_pose_rebuild and proxy synchronize will undo the animation when the
proxy is evaluted for the first time after loading.

This is somewhat of a workaround but it's also useful to have the scene updated
once when opening in background mode, and it makes rendering from the UI and
background more similar and so more predictable to give the same result.

7 years agoFix T37704: cycles hair render error with hair density vertex group.
Brecht Van Lommel [Tue, 10 Dec 2013 18:47:27 +0000 (19:47 +0100)]
Fix T37704: cycles hair render error with hair density vertex group.

Zero length hairs were causing problems, now it skips rendering them as they
are invisible anyway.

7 years agoNodes UI: add the position field to the color ramp node.
Geoffroy Krantz [Tue, 10 Dec 2013 16:11:03 +0000 (17:11 +0100)]
Nodes UI: add the position field to the color ramp node.

Reviewed By: dingto, brecht

Differential Revision:

7 years agouiList: Small tweak to drag-resize (switch to auto-size mode).
Bastien Montagne [Tue, 10 Dec 2013 15:18:58 +0000 (16:18 +0100)]
uiList: Small tweak to drag-resize (switch to auto-size mode).

When you drag past the smallest size of the list, it switches back to auto-size mode.
This commit makes wider the gap between smallest size and auto-size activation,
previously it could switch to auto-size a bit too easily...

7 years agoFix T37739: uiList drag-resize was not working as expected outside of panels.
Bastien Montagne [Tue, 10 Dec 2013 15:06:20 +0000 (16:06 +0100)]
Fix T37739: uiList drag-resize was not working as expected outside of panels.

Patch by Brecht, with minor edits by myself, thanks a lot!

Tech details: previous drag-resize handling code was based on the assumption that coords
returned by ui_window_to_block() was relative to the bottom on the uiBlock.
This is in fact completly eroneous, usually this func does not translate at all the coords,
it merely rescale them - except for blocks inside panels, where returned values are relative
to the left/bottom corner of the panel... Pretty confusing, solution for now is to store ref mouse
position in window space, and convert them to block each time, just like current mouse pos.

7 years agofix: Fly Navigation centered in viewport, not in camera view
Dalai Felinto [Tue, 10 Dec 2013 14:14:31 +0000 (12:14 -0200)]
fix: Fly Navigation centered in viewport, not in camera view

The safe zone, mouse and everything else was relative to the viewport.
It should be relative to the camera 'view' instead.

This problem (noticed while developing the Walk Navigation)
happens when the camera is not centered in the viewport.

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision:

7 years agoFix T37463: Increasing window size would add space around menu header
Campbell Barton [Tue, 10 Dec 2013 12:54:33 +0000 (23:54 +1100)]
Fix T37463: Increasing window size would add space around menu header

7 years agoScreen Resize: minor code cleanup
Campbell Barton [Tue, 10 Dec 2013 12:52:19 +0000 (23:52 +1100)]
Screen Resize: minor code cleanup

7 years agoFix for off-by-one regression in D41
Campbell Barton [Tue, 10 Dec 2013 11:19:17 +0000 (22:19 +1100)]
Fix for off-by-one regression in D41

making the window larger was using incorrect factor leaving a black bar
on the window edge.

7 years agoMempool/Memarena: hint for unlikely conditions
Campbell Barton [Tue, 10 Dec 2013 10:17:52 +0000 (21:17 +1100)]
Mempool/Memarena: hint for unlikely conditions

7 years agoFix for fix: Paths and copying object
Campbell Barton [Tue, 10 Dec 2013 06:28:25 +0000 (17:28 +1100)]
Fix for fix: Paths and copying object

Fix for T37471 made path copying modify local paths,
now apply the same logic used for save-as.

7 years agoStyle Cleanup
Campbell Barton [Tue, 10 Dec 2013 02:44:46 +0000 (13:44 +1100)]
Style Cleanup

7 years agoStyle changes to refactor commit.
Antony Riakiotakis [Tue, 10 Dec 2013 02:27:53 +0000 (04:27 +0200)]
Style changes to refactor commit.

7 years agoCMake: report messages as status (else ccmake treats like an error)
Campbell Barton [Tue, 10 Dec 2013 02:18:46 +0000 (13:18 +1100)]
CMake: report messages as status (else ccmake treats like an error)

7 years agoDNA Deprecation: add DNA_DEPRECATED_GCC_POISON for enum/structs.
Campbell Barton [Tue, 10 Dec 2013 01:59:04 +0000 (12:59 +1100)]
DNA Deprecation: add DNA_DEPRECATED_GCC_POISON for enum/structs.

also fully remove freestyle raycasting_algorithm

7 years agoPython API: when OIIO is disabled use the same version format.
Campbell Barton [Tue, 10 Dec 2013 01:58:10 +0000 (12:58 +1100)]
Python API: when OIIO is disabled use the same version format.

7 years agoFix T37753: encapsulated the creation of the source ID into one function to ensure...
gaiaclary [Mon, 9 Dec 2013 22:18:01 +0000 (23:18 +0100)]
Fix T37753: encapsulated the creation of the source ID into one function to ensure the id is always created correctly

7 years agoadd new UV editor edge theme colors to preset themes
Antony Riakiotakis [Mon, 9 Dec 2013 22:00:32 +0000 (00:00 +0200)]
add new UV editor edge theme colors to preset themes

7 years agoMissed one usage of use_hidden_preview.
Jeroen Bakker [Mon, 9 Dec 2013 21:16:05 +0000 (22:16 +0100)]
Missed one usage of use_hidden_preview.

7 years agoNode Previews:
Jeroen Bakker [Mon, 9 Dec 2013 20:50:02 +0000 (21:50 +0100)]
Node Previews:
Removed USE_HIDDEN_PREVIEW from source code as it is now deprecated.
The feature was introduced during project mango to quickly hide previews, now that the previews are hidden by default this feature has no need.
Inside the DNA the flag is still visible in comment, this way no one will reuse that value as it could have some side effects

Jeroen & Monique
 - At Mind -

7 years agoFix T37694: cycles particles emitter object rendering when it shouldn't.
Brecht Van Lommel [Mon, 9 Dec 2013 20:57:30 +0000 (21:57 +0100)]
Fix T37694: cycles particles emitter object rendering when it shouldn't.

This was broken by a recent bugfix for T37159.

7 years agoRefactoring/cleanup, borrowed from soc-2013-paint branch.
Antony Riakiotakis [Mon, 9 Dec 2013 20:36:33 +0000 (22:36 +0200)]
Refactoring/cleanup, borrowed from soc-2013-paint branch.

* Move symmetry options to the paint struct (where all paint systems can
make use of it)

* Rename draw_pressure to stroke_active. This is what is really checked
on those occasions that this is used. Also move turning on/off of this
option to the stroke level and avoid doing it on every stroke system.

* Rename BRUSH_RESTORE_MESH to BRUSH_DRAG_DOT. In image painting this
won't restore any mesh, so better have a name that is directly linked to
what the flag actually does.

7 years agoPREVIEW: updated the default themes.
Jeroen Bakker [Mon, 9 Dec 2013 15:20:44 +0000 (16:20 +0100)]
PREVIEW: updated the default themes.

7 years agoCompositor node preview:
Jeroen Bakker [Sun, 8 Dec 2013 20:53:35 +0000 (21:53 +0100)]
Compositor node preview:

moved the hide preview logic to a method on bNodeTreeType. This way the node.c keeps clean, but logic could still be shared.
Implementing this per node, can lead to future errors.

7 years agoEnhancement: By default do not show the previews of composite nodes
Jeroen Bakker [Sun, 1 Dec 2013 20:56:52 +0000 (21:56 +0100)]
Enhancement: By default do not show the previews of composite nodes
only input nodes will show the preview by default.

7 years agoEnhancement: added node colors for every node class
Jeroen Bakker [Sun, 1 Dec 2013 20:30:04 +0000 (21:30 +0100)]
Enhancement: added node colors for every node class

In the user preferences all node classes can get its own color
The in/out color is splitted into 2 sepatate colors
the rna has been updated to better names

7 years agoFix T37751: Crash subdividing bones
Campbell Barton [Mon, 9 Dec 2013 14:14:31 +0000 (01:14 +1100)]
Fix T37751: Crash subdividing bones

7 years agoPython API: when OCIO is disabled use the same version format.
Campbell Barton [Mon, 9 Dec 2013 14:11:02 +0000 (01:11 +1100)]
Python API: when OCIO is disabled use the same version format.

7 years agoArmature Editmode: blend the bone radius when subdividing
Campbell Barton [Mon, 9 Dec 2013 14:02:20 +0000 (01:02 +1100)]
Armature Editmode: blend the bone radius when subdividing

7 years agoFix T37752: Color rna path functions missing
Campbell Barton [Mon, 9 Dec 2013 13:48:59 +0000 (00:48 +1100)]
Fix T37752: Color rna path functions missing

7 years agoFix T37750: Incorrect stats for dupli-metaballs
Campbell Barton [Mon, 9 Dec 2013 13:23:53 +0000 (00:23 +1100)]
Fix T37750: Incorrect stats for dupli-metaballs

7 years agoFix T37715: Incorrect docstring
Campbell Barton [Mon, 9 Dec 2013 13:02:37 +0000 (00:02 +1100)]
Fix T37715: Incorrect docstring

7 years agoGame Engine: Option to record static objects animation
James Yonan [Mon, 9 Dec 2013 11:26:52 +0000 (22:26 +1100)]
Game Engine: Option to record static objects animation

7 years agoFix T37741: Duplicating node editor did not copy node tree pointers.
Lukas Tönne [Mon, 9 Dec 2013 10:54:00 +0000 (11:54 +0100)]
Fix T37741: Duplicating node editor did not copy node tree pointers.

The effect of this is not visible with standard compositor/shader nodes,
because the editor node tree is immediately set from context afterward
using the scene or active material. But with pynodes the context update
is not necessarily defined and the node tree pointer gets lost.

7 years agoFix T37727: z-offset problems with camera view
Campbell Barton [Mon, 9 Dec 2013 09:59:29 +0000 (20:59 +1100)]
Fix T37727: z-offset problems with camera view

7 years agoCode Cleanup: use ELEM macro when checking object type
Campbell Barton [Mon, 9 Dec 2013 06:07:59 +0000 (17:07 +1100)]
Code Cleanup: use ELEM macro when checking object type

7 years agoView3D API: rename view3d_camera_get to ED_view3d_camera_data_get
Campbell Barton [Mon, 9 Dec 2013 06:03:37 +0000 (17:03 +1100)]
View3D API: rename view3d_camera_get to ED_view3d_camera_data_get

7 years agoFix T37712: Point cache index lookup crashed with 0 points stored.
Lukas Tönne [Mon, 9 Dec 2013 10:02:41 +0000 (11:02 +0100)]
Fix T37712: Point cache index lookup crashed with 0 points stored.

The BKE_ptcache_mem_index_find is using unsigned ints for binary search
"high" values - but this leads to integer overflow if the totpoint
number is 0 and causes invalid array access.

7 years agoInterface: Rename "Duplicate Objects" to just "Duplicate", was already done for the...
Thomas Dinges [Mon, 9 Dec 2013 09:49:16 +0000 (10:49 +0100)]
Interface: Rename "Duplicate Objects" to just "Duplicate", was already done for the Mesh/Curve...variants but not for the Object Mode one.

7 years agoFix T37747: keymap import error with region timers.
Brecht Van Lommel [Mon, 9 Dec 2013 05:38:44 +0000 (06:38 +0100)]
Fix T37747: keymap import error with region timers.

7 years agoLattice Editmode: Select Mirror
Campbell Barton [Mon, 9 Dec 2013 04:40:41 +0000 (15:40 +1100)]
Lattice Editmode: Select Mirror

patch originally by Philipp Oeser with some edits.

7 years agoLattice API: add BKE_lattice_index_flip, BKE_lattice_bitmap_from_flag
Campbell Barton [Mon, 9 Dec 2013 04:32:05 +0000 (15:32 +1100)]
Lattice API: add BKE_lattice_index_flip, BKE_lattice_bitmap_from_flag

7 years agoFix build error when building without OSL support.
Brecht Van Lommel [Mon, 9 Dec 2013 04:28:01 +0000 (05:28 +0100)]
Fix build error when building without OSL support.

7 years agoTooltips: abbreviate long python operator tooltips
Walid Shouman [Mon, 9 Dec 2013 03:20:53 +0000 (14:20 +1100)]
Tooltips: abbreviate long python operator tooltips

Some tooltips would end up containing long string/array args spanning the screen.

7 years agoUpdate to OIIO 1.39 and OSL 1.4.0.
Bastien Montagne [Sun, 8 Dec 2013 17:25:37 +0000 (18:25 +0100)]
Update to OIIO 1.39 and OSL 1.4.0.

Note that I also updated OpenEXR to 2.1.0 (and updated our CMake openexr module as well).

Users will have to update their build settings as told by the script (also in BUILD_NOTES.txt generated file)!

Note I removed all ugly patches from this script, we are currently using custom git repo for OpenEXR/OIIO/OSL,
hopefully we will soon be able to use vanillia code from official repos!

7 years agoScons: as requested by Ideasman, make MACOSX_COMPILER -> C_COMPILER_ID,
Jens Verwiebe [Sun, 8 Dec 2013 14:35:06 +0000 (15:35 +0100)]
Scons: as requested by Ideasman, make MACOSX_COMPILER -> C_COMPILER_ID,
leave env set for OSX exclusive for now”

7 years agoCycles OSL: update to build with latest OSL master shader group changes.
Brecht Van Lommel [Sun, 8 Dec 2013 14:15:27 +0000 (15:15 +0100)]
Cycles OSL: update to build with latest OSL master shader group changes.

7 years agoCode cleanup: delete cineon header files that were empty but not deleted.
Shane Ambler [Sun, 8 Dec 2013 12:16:26 +0000 (13:16 +0100)]
Code cleanup: delete cineon header files that were empty but not deleted.

Reviewed By: brecht

Differential Revision:

7 years agoStyle: use frozen sets
Campbell Barton [Sun, 8 Dec 2013 11:53:55 +0000 (22:53 +1100)]
Style: use frozen sets

7 years agoCycles: Update stdosl.h to OSL 1.4.0. (includes new aastep functions).
Thomas Dinges [Sun, 8 Dec 2013 11:20:15 +0000 (12:20 +0100)]
Cycles: Update stdosl.h to OSL 1.4.0. (includes new aastep functions).

7 years agoCode cleanup: UI cleanup for cycles UI code and fix typo in system info.
Thomas Dinges [Sun, 8 Dec 2013 11:13:09 +0000 (12:13 +0100)]
Code cleanup: UI cleanup for cycles UI code and fix typo in system info.