9 years agoFix for [#31327] Text editor menu incorrect (Patch attached)
Bastien Montagne [Sun, 6 May 2012 07:59:37 +0000 (07:59 +0000)]
Fix for [#31327] Text editor menu incorrect (Patch attached)

Patch by Justin Dailey, thx!

9 years agoTimeline Header: Only show the "use active keyingset only" toggle (beside the
Joshua Leung [Sun, 6 May 2012 06:57:02 +0000 (06:57 +0000)]
Timeline Header: Only show the "use active keyingset only" toggle (beside the
autokey button) if autokeying is enabled. This was only useful when the latter
was actually enabled.

9 years agoBugfix [#31297] Transform menu often showed operators which didn't make sense
Joshua Leung [Sun, 6 May 2012 06:37:07 +0000 (06:37 +0000)]
Bugfix [#31297] Transform menu often showed operators which didn't make sense
for the contexts they appeared in

The VIEW3D_MT_transform menu was being used everywhere, although not all the
operators there applied to the current mode (e.g. the pivot point, animated
transforms to deltas, and a few others were Object-mode only). Split off the
offending parts into separate menus for the specific modes, and made these
extend the basic menu type.

9 years agotypo, agle -> angle
Jason Wilkins [Sun, 6 May 2012 05:50:50 +0000 (05:50 +0000)]
typo, agle -> angle

9 years agoBugfix:
Joshua Leung [Sun, 6 May 2012 05:03:58 +0000 (05:03 +0000)]

While testing the other my previous commit (removing deformflag stuff), I
noticed that trying to change set a parent object for the current object (via
the Object Properties) would cause the current object to "blow up", and for
cyclic dependency warnings to be spewed to the console.

Adding a dummy usage of one of the vars here seems to solve it. Perhaps a case
of weirdo compiler optimisations?

9 years agoRemoving the old armature 'deform' settings (use vertex groups/envelopes/quats).
Joshua Leung [Sun, 6 May 2012 04:50:04 +0000 (04:50 +0000)]
Removing the old armature 'deform' settings (use vertex groups/envelopes/quats).

As far as I could tell, these were really only still used for "virtual
modifiers", though we really don't use these anymore. Instead, most of the time,
people need to set these settings in armature modifiers directly (these didn't
even get copied over in that case). This was a source of confusion and
redundancy, so removing these now.

This change can be reverted if these were actually of some use out there...

9 years agoBugfixes for Motion Path drawing/updating in light of the recent changes:
Joshua Leung [Sun, 6 May 2012 04:18:13 +0000 (04:18 +0000)]
Bugfixes for Motion Path drawing/updating in light of the recent changes:
* Added proper "update" operators in place of the abuse of the calculate
operators, so now the display ranges won't get overwritten everytime (with the
default values) you go to update the paths.

* Display range settings in properties editor now actually work. Before, the "In
Range" mode only displayed the entire paths.

9 years agoSimplifying constraints code - removed relink_data() callbacks in favour of a
Joshua Leung [Sun, 6 May 2012 01:27:48 +0000 (01:27 +0000)]
Simplifying constraints code - removed relink_data() callbacks in favour of a
more generic system which goes through id_looper(), reducing the maintainance
burden for new constraint authors

9 years agoDeleting action constraints (and a few others) now adjusts the usercounts of
Joshua Leung [Sun, 6 May 2012 01:03:51 +0000 (01:03 +0000)]
Deleting action constraints (and a few others) now adjusts the usercounts of
their referenced data correctly

9 years agocode cleanup: naming - BKE_mesh_*
Campbell Barton [Sat, 5 May 2012 21:28:12 +0000 (21:28 +0000)]
code cleanup: naming - BKE_mesh_*

9 years agoCycles: minor refactoring of fisheye code to fit code style.
Brecht Van Lommel [Sat, 5 May 2012 19:44:35 +0000 (19:44 +0000)]
Cycles: minor refactoring of fisheye code to fit code style.

9 years agoCycles: threading optimizations
Brecht Van Lommel [Sat, 5 May 2012 19:44:33 +0000 (19:44 +0000)]
Cycles: threading optimizations

* Multithreaded image loading, each thread can load a separate image.
* Better multithreading for multiple instanced meshes, different threads can now
  build BVH's for different meshes, rather than all cooperating on the same mesh.
  Especially noticeable for dynamic BVH building for the viewport, gave about
  2x faster build on 8 core in fairly complex scene with many objects.
* The main thread waiting for worker threads can now also work itself, so
  (num_cores + 1) threads will be working, this supposedly gives better
  performance on some operating systems, but did not measure performance for
  this very detailed yet.

9 years agoFix #31318: cycles preview missing update for other materials using same node
Brecht Van Lommel [Sat, 5 May 2012 19:44:28 +0000 (19:44 +0000)]
Fix #31318: cycles preview missing update for other materials using same node
group with certain operations.

9 years agoFix related to [#31157]: Tips (descriptions) of macro operators were not set into...
Bastien Montagne [Sat, 5 May 2012 19:26:53 +0000 (19:26 +0000)]
Fix related to [#31157]: Tips (descriptions) of macro operators were not set into underlying RNA struct, hence did not show up in UI.

9 years agoFix [#31322] Assign to Active Group adds new group
Bastien Montagne [Sat, 5 May 2012 17:33:18 +0000 (17:33 +0000)]
Fix [#31322] Assign to Active Group adds new group

9 years ago- Fixed issue with printing file version triple times when loading file in debug...
Sergey Sharybin [Sat, 5 May 2012 17:25:58 +0000 (17:25 +0000)]
- Fixed issue with printing file version triple times when loading file in debug mode
- Remove commented out headers from versioning module

9 years agoSecond part of fix for [#31157]: Some (actually, 172) operators have no tooltip.
Bastien Montagne [Sat, 5 May 2012 17:10:51 +0000 (17:10 +0000)]
Second part of fix for [#31157]: Some (actually, 172) operators have no tooltip.
About 30 undocumented ops remaining...

9 years agocode cleanup: BKE_libblock_find_name() now takes an ID constant rather then a string.
Campbell Barton [Sat, 5 May 2012 17:00:11 +0000 (17:00 +0000)]
code cleanup: BKE_libblock_find_name() now takes an ID constant rather then a string.

9 years agofeature request from VenomGfx- lock to active as an operator since its tedious settin...
Campbell Barton [Sat, 5 May 2012 16:38:23 +0000 (16:38 +0000)]
feature request from VenomGfx- lock to active as an operator since its tedious setting the object and bone manually (especially if you have it right in front of you)

uses keys
- Shift+PadPeriod --- to set
- Alt+PadPeriod --- to clear (also clears cursor and camera locking)

9 years agocode cleanup: naming - pose/armature/image
Campbell Barton [Sat, 5 May 2012 16:03:57 +0000 (16:03 +0000)]
code cleanup: naming - pose/armature/image
also use ..._find_name(..., name) rather then ..._find_named(..., name) --- both were used.

9 years agoBugfixes for various ID-block references (Constraints, NLA)
Joshua Leung [Sat, 5 May 2012 15:54:08 +0000 (15:54 +0000)]
Bugfixes for various ID-block references (Constraints, NLA)

* ID-blocks referenced by Constraints but not being used as the target objects
(such as Actions in the Action Constraint, or Text Blocks in PyConstraints) now
get usercounts for being referenced in this way. This should fix ancient bugs
such as [#19205] and [#8593]. More tests still needed to verify that this
does now play nicely with proxies.

* Changing actions used by NLA strips should now update the usercounts

9 years agocode cleanup: BKE_ naming, also make always load a new image...
Campbell Barton [Sat, 5 May 2012 14:52:04 +0000 (14:52 +0000)]
code cleanup: BKE_ naming, also make always load a new image. (not use existing one)

9 years agocode cleanup: BKE_scene api naming.
Campbell Barton [Sat, 5 May 2012 14:33:36 +0000 (14:33 +0000)]
code cleanup: BKE_scene api naming.

also stop numpy from being found in /usr/include with cmake.

9 years agocode cleanup: function naming, use BKE_*type* prefix.
Campbell Barton [Sat, 5 May 2012 14:03:12 +0000 (14:03 +0000)]
code cleanup: function naming, use BKE_*type* prefix.

9 years agoFix related to #31317: viewport render layer rendering now uses render visibility
Brecht Van Lommel [Sat, 5 May 2012 10:17:18 +0000 (10:17 +0000)]
Fix related to #31317: viewport render layer rendering now uses render visibility
rather than viewport visibility, is more useful that way.

9 years agoFix #31302: UV unwrap no longer remember last conformal/angle based unwrapper
Brecht Van Lommel [Sat, 5 May 2012 09:30:57 +0000 (09:30 +0000)]
Fix #31302: UV unwrap no longer remember last conformal/angle based unwrapper
choice with bmesh.

9 years agoStyle Cleanup: Wrapping with parens for safety and whitespace edits
Joshua Leung [Sat, 5 May 2012 05:46:45 +0000 (05:46 +0000)]
Style Cleanup: Wrapping with parens for safety and whitespace edits

9 years agoMango Bugfix - Actions being tweaked in NLA Editor were not being played back if
Joshua Leung [Sat, 5 May 2012 05:23:28 +0000 (05:23 +0000)]
Mango Bugfix - Actions being tweaked in NLA Editor were not being played back if
the track that they belonged to was currently being played back "solo"

9 years agocode cleanup: brush/camera naming
Campbell Barton [Sat, 5 May 2012 00:58:22 +0000 (00:58 +0000)]
code cleanup: brush/camera naming

9 years agocode cleanup: function naming for BLI functions.
Campbell Barton [Sat, 5 May 2012 00:23:55 +0000 (00:23 +0000)]
code cleanup: function naming for BLI functions.

9 years agoPatch [#31240] Fix audaspace deadlock
Joerg Mueller [Fri, 4 May 2012 23:36:10 +0000 (23:36 +0000)]
Patch [#31240] Fix audaspace deadlock
fix for [#31097] glibc error when playing sound using BGE
by Wander Lairson Costa

Note: This deadlock fix makes the code non-threadsafe again, a proper solution has to be found still.

9 years agoFixes for
Joerg Mueller [Fri, 4 May 2012 23:28:27 +0000 (23:28 +0000)]
Fixes for
* [#31285] VSE: audio pitch change delays audio
* [#31260] VSE Trimmed audio plays when overlaped

9 years agoClip editor: fixed crash when opening dopesheet view without having clip opened
Sergey Sharybin [Fri, 4 May 2012 18:00:37 +0000 (18:00 +0000)]
Clip editor: fixed crash when opening dopesheet view without having clip opened

9 years agofix [#31136] Save All Edited only works for Saved external image, not New or Packed...
Campbell Barton [Fri, 4 May 2012 17:39:37 +0000 (17:39 +0000)]
fix [#31136] Save All Edited only works for Saved external image, not New or Packed image (bpy.ops.image.save_dirty)

9 years agoWindows:
Thomas Dinges [Fri, 4 May 2012 17:39:14 +0000 (17:39 +0000)]
* Fix compile for recent do_versions() splitting.

9 years agoAdded start and end bevel factor for curves, so now it's possible to make
Sergey Sharybin [Fri, 4 May 2012 17:04:20 +0000 (17:04 +0000)]
Added start and end bevel factor for curves, so now it's possible to make
a bevelled curve which isn't fully covered with a bevel.

9 years agofix [#31205] Loop cut don't slide when hidden faces between
Campbell Barton [Fri, 4 May 2012 17:02:02 +0000 (17:02 +0000)]
fix [#31205] Loop cut don't slide when hidden faces between

9 years agoFix (harmless) uninitialized memory usage in BVH binning.
Brecht Van Lommel [Fri, 4 May 2012 16:38:11 +0000 (16:38 +0000)]
Fix (harmless) uninitialized memory usage in BVH binning.
Fix unneeded warnings with c++ guardedalloc, delete NULL is valid.

9 years agosmall fix for equisolid fisheye (cycles)
Dalai Felinto [Fri, 4 May 2012 16:29:41 +0000 (16:29 +0000)]
small fix for equisolid fisheye (cycles)
the FOV formular is: R = 2 * lens * sin (theta / 2)
in this case theta is fov/2 already, thus the fix

9 years agoFisheye Camera for Cycles
Dalai Felinto [Fri, 4 May 2012 16:20:51 +0000 (16:20 +0000)]
Fisheye Camera for Cycles

For sample images see: (equisolid) (equidistant)

The 'use_panorama' option is now part of a new Camera type: 'Panorama'.
Created two other panorama cameras:

- Equisolid: most of lens in the market simulate this lens - e.g. Nikon, Canon, ...)
             this works as a real lens up to an extent. The final result takes the
             sensor dimensions into account also.
             .:. to simulate a Nikon DX2S with a 10.5mm lens do:
                 sensor: 23.7 x 15.7
                 fisheye lens: 10.5
                 fisheye fov: 180
                 render dimensions: 4288 x 2848

- Equidistant: this is not a real lens model. Although the old equidistant lens simulate
               this lens. The result is always as a circular fisheye that takes the whole sensor
               (in other words, it doesn't take the sensor into consideration).
               This is perfect for fulldomes ;)

               For the UI we have 10 to 360 as soft values and 10 to 3600 as hard values (because we can).

Reference material:

Note, this is not a real simulation of the light path through the lens.
The ideal solution would be this:

Thanks Brecht for the fix, suggestions and code review.
Kudos for the dome community for keeping me stimulated on the topic since 2009 ;)

Patch partly implemented during lab time at VisGraf, IMPA - Rio de Janeiro.

9 years agomake text move up/down into a single operator with a direction property
Campbell Barton [Fri, 4 May 2012 16:17:09 +0000 (16:17 +0000)]
make text move up/down into a single operator with a direction property

9 years agoSplit do_versions into separate files for pre-2.50 versions and 2.5x versions
Sergey Sharybin [Fri, 4 May 2012 15:42:49 +0000 (15:42 +0000)]
Split do_versions into separate files for pre-2.50 versions and 2.5x versions

This should make it easier to navigate through readfile.c and also hopefully
will prevent corereview to fail parsing this file.

9 years agofix [#31235] Limited Dissolve problems
Campbell Barton [Fri, 4 May 2012 15:02:02 +0000 (15:02 +0000)]
fix [#31235] Limited Dissolve problems

this is in fact 2 bugs.
- unselected edges between 2 faces that were joined didnt get removed.
- in face mode, edges and verts at the boundary of the selection would get incorrectly dissolved.

also quiet float/double promotion warning.

9 years agoFirst part of fix for [#31157]: Some (actually, 172) operators have no tooltip.
Bastien Montagne [Fri, 4 May 2012 15:00:36 +0000 (15:00 +0000)]
First part of fix for [#31157]: Some (actually, 172) operators have no tooltip.

* This commit adds about a third of missing tips (a few are rather dummy, as name already says everything, but better that than "(undocumented operator)" showing in UI!
* There is a problem with macros, their tips are not registered in RNA. Got a patch for this, will submit it to campbo asap.

9 years agoPatch [#31279] clarifiy a python error-string (when incorrectly specifying enum
Joshua Leung [Fri, 4 May 2012 14:34:10 +0000 (14:34 +0000)]
Patch [#31279] clarifiy a python error-string (when incorrectly specifying enum
items from python)

Thanks Philipp Oeser (lichtwerk)

9 years agoPatch [#30654] Wiki Quick Hack: Text editor move lines up/down
Joshua Leung [Fri, 4 May 2012 14:27:13 +0000 (14:27 +0000)]
Patch [#30654] Wiki Quick Hack: Text editor move lines up/down
Submitted by: Justin Dailey (dail)

Patch allows the current line (or selected lines) to be moved up and down with
Ctrl+Shift+Up and Ctrl+Shift+Down. Has undo/redo support and operators in python

9 years agoown mistake in recent commit CustomData_layertype_is_singleton()
Campbell Barton [Fri, 4 May 2012 13:28:02 +0000 (13:28 +0000)]
own mistake in recent commit CustomData_layertype_is_singleton()

was stopping bmesh python api adding multiple layers.

9 years agocode cleanup: use much simpler (and likely faster) polygon normal calculation in...
Campbell Barton [Fri, 4 May 2012 13:13:45 +0000 (13:13 +0000)]
code cleanup: use much simpler (and likely faster) polygon normal calculation in object mode.

9 years agoRemoved the automatic socket selection in the modal node linking operator.
Lukas Toenne [Fri, 4 May 2012 13:12:09 +0000 (13:12 +0000)]
Removed the automatic socket selection in the modal node linking operator.

This was originally reimplemented as part of the socket selection feature, but since selecting a socket necessarily also selected the owning node, it messes with the manual user selection of nodes too much (and doesn't add any additional usability).

9 years agoFix: forgot to commit these files as part of strand bugfix.
Brecht Van Lommel [Fri, 4 May 2012 12:46:51 +0000 (12:46 +0000)]
Fix: forgot to commit these files as part of strand bugfix.

9 years agoRenamed "fake" OpenGL identifiers.
Jason Wilkins [Fri, 4 May 2012 11:50:11 +0000 (11:50 +0000)]
Renamed "fake" OpenGL identifiers.

Any identifier that looks like an OpenGL identifier, but isn't, causes a false alarm by the tool.  Most of these were in comments so I just rephrased the comments.  There were a couple of static functions/macros that were easy enough to rename.  Only the glTexco and glIndex fields of the DMVertexAttribs struct was public and had non-local uses.

9 years agoFix #31288: Blender crash when select a material
Sergey Sharybin [Fri, 4 May 2012 11:49:58 +0000 (11:49 +0000)]
Fix #31288: Blender crash when select a material

Quite the same issue as render crash on missed shader groups, needed a NULL-check
in node exec function as well.

9 years agoFix: issue in strand render + instancing bugfix, also optimized it a bit to avoid
Brecht Van Lommel [Fri, 4 May 2012 09:58:35 +0000 (09:58 +0000)]
Fix: issue in strand render + instancing bugfix, also optimized it a bit to avoid
unnecessary memory allocations.

9 years agoFix #31286: saving 16 bit BW tiff could crash due to invalid memory access. Also
Brecht Van Lommel [Fri, 4 May 2012 09:25:09 +0000 (09:25 +0000)]
Fix #31286: saving 16 bit BW tiff could crash due to invalid memory access. Also
found that 16 bit RGBA saving was not working, fixed as well.

9 years agoThrow an error and prevent compilation if there're unknown structures detected by DNA
Sergey Sharybin [Fri, 4 May 2012 08:18:47 +0000 (08:18 +0000)]
Throw an error and prevent compilation if there're unknown structures detected by DNA

9 years agoCycles: tweak ATI OpenGL/CUDA fix more with extra error check.
Brecht Van Lommel [Fri, 4 May 2012 08:00:58 +0000 (08:00 +0000)]
Cycles: tweak ATI OpenGL/CUDA fix more with extra error check.

9 years agoFix related to #31118: ensure tesselated faces are available when exporting
Brecht Van Lommel [Fri, 4 May 2012 08:00:55 +0000 (08:00 +0000)]
Fix related to #31118: ensure tesselated faces are available when exporting
to fluid sim. Is not actually the cause of the bug.

9 years agoThere is no GLenum called LIGHT_POSITION
Jason Wilkins [Fri, 4 May 2012 07:23:50 +0000 (07:23 +0000)]
There is no GLenum called LIGHT_POSITION

There is an FAQ that mentions a mythical GL_LIGHT_POSITION, and lots of programmers speak of it, but this mythical creature does not exist!

The correct symbol is GL_POSITION

9 years agoSmall hull bmop fix, distance check from plane needs absolute value.
Nicholas Bishop [Fri, 4 May 2012 03:25:46 +0000 (03:25 +0000)]
Small hull bmop fix, distance check from plane needs absolute value.

9 years agoStyle cleanup: spaces around operators
Sergey Sharybin [Thu, 3 May 2012 23:47:39 +0000 (23:47 +0000)]
Style cleanup: spaces around operators

9 years agoCamera tracking: show disabled active track even if Show Disabled is switched off
Sergey Sharybin [Thu, 3 May 2012 23:41:28 +0000 (23:41 +0000)]
Camera tracking: show disabled active track even if Show Disabled is switched off

9 years agoPossible fix for #31054: cycles viewport rendering not working with CUDA for
Brecht Van Lommel [Thu, 3 May 2012 23:39:42 +0000 (23:39 +0000)]
Possible fix for #31054: cycles viewport rendering not working with CUDA for
computation and ATI card for OpenGL.

9 years agoCamera tracking: switch dopesheet information to lazy calculation
Sergey Sharybin [Thu, 3 May 2012 23:15:01 +0000 (23:15 +0000)]
Camera tracking: switch dopesheet information to lazy calculation

All operators which changes tracking data now just tags dopsheet as outdated,
actual re-calculaiton of happens only when this information is actually needed
(like on dopesheet draw).

This makes things a bit faster when there's no dopesheet visible in current
screen and also makes it much easier to update dopesheet using dependency

Also renamed dopesheet_sort_order to dopesheet_sort_method in rna and internal
stuff which makes much more sense and also correlated with naming in
file browser.

9 years agocode cleanup: double promotion & some style cleanup
Campbell Barton [Thu, 3 May 2012 21:35:04 +0000 (21:35 +0000)]
code cleanup: double promotion & some style cleanup

9 years agoFix #31258: collada now selects newly added objects after import.
Brecht Van Lommel [Thu, 3 May 2012 21:32:49 +0000 (21:32 +0000)]
Fix #31258: collada now selects newly added objects after import.

9 years agocode cleanup:
Campbell Barton [Thu, 3 May 2012 21:19:31 +0000 (21:19 +0000)]
code cleanup:
- replace iterators with macros
- move vertexCos checks outside the for loops (use 2 for loops).
- style cleanup

9 years agofix for last commit, (warning was without openmp only)
Campbell Barton [Thu, 3 May 2012 20:26:05 +0000 (20:26 +0000)]
fix for last commit, (warning was without openmp only)

9 years agoFix strand render + instancing render bug, gave tile artifacts.
Brecht Van Lommel [Thu, 3 May 2012 20:06:25 +0000 (20:06 +0000)]
Fix strand render + instancing render bug, gave tile artifacts.

9 years agostyle cleanup: formatting and some float/double promotion
Campbell Barton [Thu, 3 May 2012 19:57:24 +0000 (19:57 +0000)]
style cleanup: formatting and some float/double promotion

9 years agocode cleanup: minor changes to get trunk compiling with strict warnings.
Campbell Barton [Thu, 3 May 2012 19:47:16 +0000 (19:47 +0000)]
code cleanup: minor changes to get trunk compiling with strict warnings.

9 years agoClip editor: sort order for dopesheet channels
Sergey Sharybin [Thu, 3 May 2012 19:28:41 +0000 (19:28 +0000)]
Clip editor: sort order for dopesheet channels

Supported sorting by name, longest tracked segment and total tracked frames.

Internally tracks are stored in Tracking datablock, but sort order is
a clip editor space property and sorting happens on clip editor draw.
If there's no dopesheet opened with different sort orders it's not
a problem due to re-sorting wouldn't happen.

Also fixed draw issue of tracked segments introduced in previous commit.

9 years agoCamera tracking: pre-calculate tracked segments for dopesheet channels
Sergey Sharybin [Thu, 3 May 2012 17:52:34 +0000 (17:52 +0000)]
Camera tracking: pre-calculate tracked segments for dopesheet channels

9 years agoCamera tracking: clear clipboard path before copying tracks to it.
Sergey Sharybin [Thu, 3 May 2012 17:02:33 +0000 (17:02 +0000)]
Camera tracking: clear clipboard path before copying tracks to it.

9 years agoCamera tracking: apparently one of tracking presets was never merged from tomato
Sergey Sharybin [Thu, 3 May 2012 17:00:08 +0000 (17:00 +0000)]
Camera tracking: apparently one of tracking presets was never merged from tomato

9 years agoFix #31234: vertex normals not update after knife cut.
Brecht Van Lommel [Thu, 3 May 2012 16:35:51 +0000 (16:35 +0000)]
Fix #31234: vertex normals not update after knife cut.

9 years agoFix #31275: mesh draw issues after adding hook to mesh in edit mode.
Brecht Van Lommel [Thu, 3 May 2012 16:24:27 +0000 (16:24 +0000)]
Fix #31275: mesh draw issues after adding hook to mesh in edit mode.

9 years agoFix #31273: videotexture ImageRender not working in blenderplayer.
Brecht Van Lommel [Thu, 3 May 2012 14:59:42 +0000 (14:59 +0000)]
Fix #31273: videotexture ImageRender not working in blenderplayer.

9 years agoFix #31259: particle grid distribution not working.
Brecht Van Lommel [Thu, 3 May 2012 13:56:15 +0000 (13:56 +0000)]
Fix #31259: particle grid distribution not working.

9 years agoFix #31272: Blender Crashes when press render
Sergey Sharybin [Thu, 3 May 2012 12:55:18 +0000 (12:55 +0000)]
Fix #31272: Blender Crashes when press render

Issue was caused by missed libraries. Seems compositor nodes already does check
in such cases, added the same check to texture and shader nodes.

9 years agoFix #31254: OpenGL-Rendering dark without Effect-Strip
Sergey Sharybin [Thu, 3 May 2012 11:54:12 +0000 (11:54 +0000)]
Fix #31254: OpenGL-Rendering dark without Effect-Strip

Issue was caused by the fact, that sequencer is working in sRGB space, but
when there's only image input strips we need to make sure conversion from
byte to float buffer would keep float buffer in sRGB space and wouldn't
make it linear as it's supposed to be in other areas.

9 years agoFix #31178, the cause is hidden and selected faces would return NULL as UVElements...
Antony Riakiotakis [Thu, 3 May 2012 10:56:35 +0000 (10:56 +0000)]
Fix #31178, the cause is hidden and selected faces would return NULL as UVElements. To avoid checking the whole contingency of UV synch selection + face selection + face hidden, added a NULL check.

9 years agoFix #31266: Track preview is shifted by half a pixel
Sergey Sharybin [Thu, 3 May 2012 10:40:04 +0000 (10:40 +0000)]
Fix #31266: Track preview is shifted by half a pixel

9 years agoFix #31139: fractal mesh subdivide was only working along normal where previously
Brecht Van Lommel [Thu, 3 May 2012 10:14:08 +0000 (10:14 +0000)]
Fix #31139: fractal mesh subdivide was only working along normal where previously
it would displace in all directions. Now there's an operator option to control this.

9 years agoFix #31257: tiff reader not reading 16 bit grayscale images correctly.
Brecht Van Lommel [Thu, 3 May 2012 09:51:12 +0000 (09:51 +0000)]
Fix #31257: tiff reader not reading 16 bit grayscale images correctly.

9 years agoFix #31108: entering local view with glsl shows objects black. Now keeps lamps
Brecht Van Lommel [Thu, 3 May 2012 09:31:59 +0000 (09:31 +0000)]
Fix #31108: entering local view with glsl shows objects black. Now keeps lamps
affecting the material even if they are not part of the local view.

9 years agoEnum property items were missing a terminator item.
Lukas Toenne [Thu, 3 May 2012 06:57:30 +0000 (06:57 +0000)]
Enum property items were missing a terminator item.

9 years agoGrr! Fix for own error in r46193.
Bastien Montagne [Thu, 3 May 2012 05:39:30 +0000 (05:39 +0000)]
Grr! Fix for own error in r46193.

9 years agoPatch [#30965] Cancel Sculpt Stroke w/ ESCAPE
Jason Wilkins [Thu, 3 May 2012 04:11:53 +0000 (04:11 +0000)]
Patch [#30965] Cancel Sculpt Stroke w/ ESCAPE

If the RMB has not been released after starting a sculpt stroke, then hitting escape will cancel the stroke in progress and undo any changes to the mesh.

This is a slightly faster work-flow than using undo, is a feature available in other paint programs, and also puts in place the infrastructure to add other keys later that could tweak strokes in different ways.

9 years agoPatch [#30255] Center Last Stroke
Jason Wilkins [Thu, 3 May 2012 03:51:30 +0000 (03:51 +0000)]
Patch [#30255] Center Last Stroke

Enables the NUMPERIOD view centering operator to work in sculpt mode.  Hitting NUMPERIOD while in sculpt mode will center the view on the end of the last sculpting stroke made by the user.

This is useful for quickly refocusing on the current work area without fussing with the view controls.

It does not zoom into the stroke (slide only).

It does nothing if there have been no strokes.

9 years agoED_object_exit_editmode needs ED_object.h
Jason Wilkins [Thu, 3 May 2012 01:07:16 +0000 (01:07 +0000)]
ED_object_exit_editmode needs ED_object.h

9 years agoFix #31256: collada export while in edit mode does not export edit mode changes,
Brecht Van Lommel [Wed, 2 May 2012 23:48:16 +0000 (23:48 +0000)]
Fix #31256: collada export while in edit mode does not export edit mode changes,
now uses same call as render to flush mesh without leaving edit mode.

9 years agoFix #31250, #31248: wrong vertex normals after transform apply, collada import,
Brecht Van Lommel [Wed, 2 May 2012 23:36:34 +0000 (23:36 +0000)]
Fix #31250, #31248: wrong vertex normals after transform apply, collada import,
sculpt shape key switch. All cases that called this function needed parameter
only_face_normals set to false, so changed it now.

Also fixed wrong user count for imported mesh from collada and simplified
previous fix for tesselated faces to polygons conversion.

9 years agoFix #31253: collada export default file name now is no longer always
Brecht Van Lommel [Wed, 2 May 2012 23:36:31 +0000 (23:36 +0000)]
Fix #31253: collada export default file name now is no longer always
untitled.dae, but rather uses .blend file name like other exporters.

Patch by Gaia Clary.

9 years agoInitialize an input in bmo_hull.
Nicholas Bishop [Wed, 2 May 2012 23:29:52 +0000 (23:29 +0000)]
Initialize an input in bmo_hull.

9 years agoFix #31247: cycles crash after recent bugfix.
Brecht Van Lommel [Wed, 2 May 2012 18:14:59 +0000 (18:14 +0000)]
Fix #31247: cycles crash after recent bugfix.

9 years agoFix #31089: collada file crashing on importing file with unknown/unsupported animatio...
Brecht Van Lommel [Wed, 2 May 2012 18:11:09 +0000 (18:11 +0000)]
Fix #31089: collada file crashing on importing file with unknown/unsupported animation data.

9 years agoStyle cleanup: spaces around operators
Sergey Sharybin [Wed, 2 May 2012 17:37:39 +0000 (17:37 +0000)]
Style cleanup: spaces around operators

9 years agoClip editor: cleanup of View menu - do not show operators which doesn't make sense...
Sergey Sharybin [Wed, 2 May 2012 17:33:48 +0000 (17:33 +0000)]
Clip editor: cleanup of View menu - do not show operators which doesn't make sense in dopesheet/curve view

9 years agoCycles: add Ray Length output to Light Path node. This gives the distance travelled
Brecht Van Lommel [Wed, 2 May 2012 17:03:46 +0000 (17:03 +0000)]
Cycles: add Ray Length output to Light Path node. This gives the distance travelled
by the last light ray. One use case for this might be to do absorption.

Patch #31232 by Agustin benavidez, see this blog post for details:

9 years agoClip editor: remove Z-key shortcut for curve view. It doesn't make many sense anymore.
Sergey Sharybin [Wed, 2 May 2012 17:01:48 +0000 (17:01 +0000)]
Clip editor: remove Z-key shortcut for curve view. It doesn't make many sense anymore.