8 years agoFix #35665: more CUDA issues with recent kernel changes, tested on sm_20, sm_21
Brecht Van Lommel [Tue, 11 Jun 2013 21:58:48 +0000 (21:58 +0000)]
Fix #35665: more CUDA issues with recent kernel changes, tested on sm_20, sm_21
and sm_30 cards, so hopefully it should all work now.

Also includes some warnings fixes related to nvcc compiler arguments, should make
no difference otherwise.

8 years agoFix lamp size allowing negative values.
Brecht Van Lommel [Tue, 11 Jun 2013 21:58:43 +0000 (21:58 +0000)]
Fix lamp size allowing negative values.

8 years agofix [#35574] Export Key Map issue
Campbell Barton [Tue, 11 Jun 2013 15:11:55 +0000 (15:11 +0000)]
fix [#35574] Export Key Map issue

problem was the keymap failed to import but didnt give any feedback, now it displays error message.

8 years agoFix #35711: cycles border render issue after recent changes.
Brecht Van Lommel [Tue, 11 Jun 2013 14:15:46 +0000 (14:15 +0000)]
Fix #35711: cycles border render issue after recent changes.

8 years agoFix #35251: cycles crash rendering with a particular user preferences configuration.
Brecht Van Lommel [Tue, 11 Jun 2013 12:52:02 +0000 (12:52 +0000)]
Fix #35251: cycles crash rendering with a particular user preferences configuration.

8 years agoFix #35405: properties editor preview render restarted unnecessarily after F12 render.
Brecht Van Lommel [Tue, 11 Jun 2013 12:37:56 +0000 (12:37 +0000)]
Fix #35405: properties editor preview render restarted unnecessarily after F12 render.

8 years agoFix #35704: Simplify on scene with dupli recursion crashes
Sergey Sharybin [Tue, 11 Jun 2013 11:21:16 +0000 (11:21 +0000)]
Fix #35704: Simplify on scene with dupli recursion crashes

Couple of issues here:

- User shouldn't be able to run into dupligroup recursion.
  It was checking already when setting a group for dupli.
  Added check to operator which adds object to group.

- It's still possible files with recursion are hanging around,
  so made simplify function robust to such kind of crap.

8 years agoUse OpenMP threads in bm_loop_interp_mdisps
Sergey Sharybin [Tue, 11 Jun 2013 09:14:39 +0000 (09:14 +0000)]
Use OpenMP threads in bm_loop_interp_mdisps

Gives approx 2x speedup on my laptop on such operations
as mesh subdivision in edit mode. Desktops with fancier
CPUs could benefit even more.

Thanks Campbell for review!

8 years agoFix compilation error caused by recent wavelength node commit
Sergey Sharybin [Tue, 11 Jun 2013 08:07:05 +0000 (08:07 +0000)]
Fix compilation error caused by recent wavelength node commit

Apparently, it's bad idea to rely on compiler to cast NULL
which is (void*)0 to int -- and in fact if i was a compiler
would also generate an error.

Further, couldn't see why we need to pass NULL or 0 th add_node,
argument value is defautl to 0 already.

8 years agoFix for distortion happens when flipping mesh normals
Sergey Sharybin [Tue, 11 Jun 2013 08:06:59 +0000 (08:06 +0000)]
Fix for distortion happens when flipping mesh normals

Issue was caused by missing X/Y displacement components
flip when flipping the normals (flipping the normals changes
the tangent space apparently and displacement vectors need
to be modified to correspond to new space).

Reported by Jonathan Williamson in IRC.

8 years agoanother case that should have been in r57371, also reduce type conversions in compassion.
Campbell Barton [Tue, 11 Jun 2013 05:56:02 +0000 (05:56 +0000)]
another case that should have been in r57371, also reduce type conversions in compassion.

8 years agofix for problem where curve handles in editmode could be obscured by other selected...
Campbell Barton [Tue, 11 Jun 2013 05:21:36 +0000 (05:21 +0000)]
fix for problem where curve handles in editmode could be obscured by other selected objects (referred to in [#35669])

8 years agofix [#35656] Crash on File Browser
Campbell Barton [Tue, 11 Jun 2013 05:09:12 +0000 (05:09 +0000)]
fix [#35656] Crash on File Browser

8 years agoFix #35561: freestyle + read full sample layers = crash.
Tamito Kajiyama [Tue, 11 Jun 2013 02:32:01 +0000 (02:32 +0000)]
Fix #35561: freestyle + read full sample layers = crash.

Now add_freestyle() in pipeline.c takes a second argument to enable/disable
stroke rendering.  When stroke rendering is disabled, the function allocates
data structures but does not perform stroke rendering.  The allocated data
structures (mostly left unpopulated with data elements) are intended to allow
for the Read Full Sample Layers (Shift-R) command in the compositor.

8 years agoCycles / Wavelength to RGB node:
Thomas Dinges [Mon, 10 Jun 2013 21:55:41 +0000 (21:55 +0000)]
Cycles / Wavelength to RGB node:
* Added a node to convert wavelength (in nanometers, from 380nm to 780nm) to RGB values. This can be useful to match real world colors easier.

* Code cleanup:
** Moved color functions (xyz and hsv) into dedicated utility files.
** Remove svm_lerp(), use interp() instead.


Example render:

This is part of my GSoC 2013. (revisions 57322, 57326, 57335 and 57367 from soc-2013-dingto).

8 years agoFix msvc compile error with subdivide use_smooth_even option.
Brecht Van Lommel [Mon, 10 Jun 2013 20:54:08 +0000 (20:54 +0000)]
Fix msvc compile error with subdivide use_smooth_even option.

8 years agoFix cycles OSL node sockets not preserving values when updating with new code.
Brecht Van Lommel [Mon, 10 Jun 2013 20:47:58 +0000 (20:47 +0000)]
Fix cycles OSL node sockets not preserving values when updating with new code.

8 years agoCycles: ray visibility panel is now also available for the world, works same as
Brecht Van Lommel [Mon, 10 Jun 2013 20:34:34 +0000 (20:34 +0000)]
Cycles: ray visibility panel is now also available for the world, works same as
meshes and lamps. The light path node already made this possible but it's a bit
faster to render this way and convenient.

8 years agoFix cycles backwards compatibility for specular_toon shader this actually needs
Brecht Van Lommel [Mon, 10 Jun 2013 20:10:03 +0000 (20:10 +0000)]
Fix cycles backwards compatibility for specular_toon shader this actually needs
to be done in cycles itself to keep compatibility for bytecode too.

Also fix broken button to compile OSL from the text editors, this got broken after
recent change to disable editing of library linked nodes.

8 years agoCycles lamp specials menu now includes separate X/Y size for area lamps
Brecht Van Lommel [Mon, 10 Jun 2013 19:01:40 +0000 (19:01 +0000)]
Cycles lamp specials menu now includes separate X/Y size for area lamps
and strength (for the basic default node setup, this can't work with with
arbitrary nodes).

8 years agoAttempt to fix #35665: disable correlated multi jitter sampling on the GPU for now,
Brecht Van Lommel [Mon, 10 Jun 2013 19:01:37 +0000 (19:01 +0000)]
Attempt to fix #35665: disable correlated multi jitter sampling on the GPU for now,
seems to be giving issues with CUDA 4.2 but I can't figure out why exactly.

8 years agoFollow up to r57354: WeightVG and Wave modifiers too need to handle tex id refcount ;)
Bastien Montagne [Mon, 10 Jun 2013 18:12:07 +0000 (18:12 +0000)]
Follow up to r57354: WeightVG and Wave modifiers too need to handle tex id refcount ;)

8 years agoFix for crash when assigning NULL pointer to node group node_tree property. This...
Lukas Toenne [Mon, 10 Jun 2013 17:48:41 +0000 (17:48 +0000)]
Fix for crash when assigning NULL pointer to node group node_tree property. This is generally allowed (though operators usually would prevent it).

8 years agoFix #35678: Duplicating an object with Displace modifier does not increase the refere...
Sergey Sharybin [Mon, 10 Jun 2013 14:04:03 +0000 (14:04 +0000)]
Fix #35678: Duplicating an object with Displace modifier does not increase the reference count of the texture

8 years agoFix #35658: OpenEXR (from Maya) - missing passes
Sergey Sharybin [Mon, 10 Jun 2013 13:54:09 +0000 (13:54 +0000)]
Fix #35658: OpenEXR (from Maya) - missing passes

Added some special case for two-component channels name.

Maybe magic could be simplified to just use last char of
channel name as an id, but extra paranoid check never hurts.

8 years agoFix #35681: cycles excluded layers still got evaluated before and after
Brecht Van Lommel [Mon, 10 Jun 2013 13:53:38 +0000 (13:53 +0000)]
Fix #35681: cycles excluded layers still got evaluated before and after
rendering even if they were not used on any render layers.

8 years agoChanges to mask evaluation
Sergey Sharybin [Mon, 10 Jun 2013 13:07:02 +0000 (13:07 +0000)]
Changes to mask evaluation

- BKE_mask_update_scene was only used with do_newframe=FALSE,
  removed this argument.

- Made it so BKE_mask_update_scene is able to handle LIB_ID_RECALC_DATA
  case. Namely, if mask ID is tagged for data update it means shapekeys
  will be re-evaluated (as if do_newframe=true).

  If mask id only tagged for LIB_ID_RECALC, then no shapekey evaluation
  happens (same as it used to behave before).

  This means, doing DAG_id_tag_update(&mask->id, OB_RECALC_DATA) will
  lead to shapekeys re-evaluation which is really needed in such
  operators as clearing shapekeys (and cleaning shapekeys which is
  in tomato branch yet).

  This is a bit silly to use OB_RECALC_DATA sine mask is not an OB,
  but could not see better way to do it now.

This fixes missing mask re-evaluation after clearing shapekey,
would expect no other functional changes.

8 years agoFix cycles OSL backwards compatibility for specular_toon, it got renamed to glossy_toon
Brecht Van Lommel [Mon, 10 Jun 2013 13:06:10 +0000 (13:06 +0000)]
Fix cycles OSL backwards compatibility for specular_toon, it got renamed to glossy_toon
but we can keep the old name working too.

8 years agoFix #35653: manual texture space location and size not working in cycles viewport.
Brecht Van Lommel [Mon, 10 Jun 2013 13:01:41 +0000 (13:01 +0000)]
Fix #35653: manual texture space location and size not working in cycles viewport.

8 years agoCustom Group Node type for extending existing nodes from python scripts. This is...
Lukas Toenne [Mon, 10 Jun 2013 12:19:39 +0000 (12:19 +0000)]
Custom Group Node type for extending existing nodes from python scripts. This is a sort of workaround for the lack of APIs in our existing node systems (compositor, cycles, BI, textures). These systems
don't have any way to deal with scripted node types yet, which could in principle by added with pynodes. The NodeCustomGroup type adds a way of scripting nodes by automating node groups which the
hardcoded system can then interpret like regular groups.

The new NodeCustomGroup type has the basic node_tree pointer property like the regular group node types and also uses the same socket interface system as regular groups. This means that input/output
sockets can be mapped to internal nodes in the same way as regular node groups in renderers and the compositor. On top of that, however, the NodeCustomGroup type can be subclassed in python scripts to flesh out
scripted node types with own draw functions, properties, updates and so on.

NB: Only cycles currently supports this node type and its derivatives, other systems may follow later.

8 years agofix [#35691] Context Override replaces instead of overrides
Campbell Barton [Mon, 10 Jun 2013 12:17:36 +0000 (12:17 +0000)]
fix [#35691] Context Override replaces instead of overrides

8 years agoBugfix [#35382] NLA "Multiply" Blend Mode calculated incorrectly
Joshua Leung [Mon, 10 Jun 2013 11:58:57 +0000 (11:58 +0000)]
Bugfix [#35382] NLA "Multiply" Blend Mode calculated incorrectly

The "Multiply" blending mode for NLA strips worked incorrectly. Instead of
modulating the influence of the current strip, it was in fact scaling the result
of the entire stack (with the strip applied). This caused problems when
influence = 0, as it was in fact muting everything instead of just controlling
the strip we are interested in.

8 years agoFix bug in vertex group code after recent changes, did not do proper NULL
Brecht Van Lommel [Mon, 10 Jun 2013 11:08:39 +0000 (11:08 +0000)]
Fix bug in vertex group code after recent changes, did not do proper NULL
pointer check.

8 years agoRNA: simplify space type items code, no need to have this duplicated.
Brecht Van Lommel [Mon, 10 Jun 2013 11:08:37 +0000 (11:08 +0000)]
RNA: simplify space type items code, no need to have this duplicated.

8 years agoReplaced a hard-coded array length with MAX_ID_NAME.
Tamito Kajiyama [Mon, 10 Jun 2013 10:58:49 +0000 (10:58 +0000)]
Replaced a hard-coded array length with MAX_ID_NAME.

8 years agocorrection to typo in r57327, ui-load wasnt working on splash screen.
Campbell Barton [Mon, 10 Jun 2013 10:55:57 +0000 (10:55 +0000)]
correction to typo in r57327, ui-load wasnt working on splash screen.

also minor changes:
- update the load-UI flag when changing in the preferences.
- remove unused initialization values for subdivide.

8 years agoCorrection to previous maya keymap commit
Sergey Sharybin [Mon, 10 Jun 2013 10:45:25 +0000 (10:45 +0000)]
Correction to previous maya keymap commit

Added UNDOflag to the wrong operator..

8 years agoFix for r57316: SPACE_EMPTY *is* needed in RNA enum for now, exported keymaps abuse...
Bastien Montagne [Mon, 10 Jun 2013 10:37:24 +0000 (10:37 +0000)]
Fix for r57316: SPACE_EMPTY *is* needed in RNA enum for now, exported keymaps abuse it...

So for now, static enum is back to its previous form, and the menu one is dynamically generated by a callback. Not nice, but works.

8 years agoFix #35661: Maya key config - select operations are skipped by "undo"
Sergey Sharybin [Mon, 10 Jun 2013 09:57:10 +0000 (09:57 +0000)]
Fix #35661: Maya key config - select operations are skipped by "undo"

8 years agoMade blender compilable with strict flags again.
Sergey Sharybin [Mon, 10 Jun 2013 09:45:55 +0000 (09:45 +0000)]
Made blender compilable with strict flags again.

Maybe Joshua would want to check on arguments for nlaevalchan_verify.

8 years agoFix #35683: Addon working fine in console. But crashed when click GUI button.
Sergey Sharybin [Mon, 10 Jun 2013 09:45:51 +0000 (09:45 +0000)]
Fix #35683: Addon working fine in console. But crashed when click GUI button.

Crash happened in ED_view3d_calc_zfac and happend in cases operator was invoked
from a region different from RGN_TYPE_WINDOW.

For a transformation zfac is only used in convertViewVec in cases region is
RGN_TYPE_WINDOW, so solved by just adding extra check in calculateCenter
for this particular case.

8 years agooptimize customdata lookups for subdivision.
Campbell Barton [Mon, 10 Jun 2013 05:18:45 +0000 (05:18 +0000)]
optimize customdata lookups for subdivision.

8 years agoBugfixes [#35263], [#35382] NLA Animated Influence is ignored if strips below
Joshua Leung [Mon, 10 Jun 2013 05:10:58 +0000 (05:10 +0000)]
Bugfixes [#35263], [#35382] NLA Animated Influence is ignored if strips below
have zero total influence

Previously, when evaluating the NLA stack at a particular point in time, if a
channel hadn't been encountered before, influence values were simply ignored
when accumulating the values contributed by each strip to the overall stack.

This behaviour simplified the handling of the problem of what "baseline" to
blend relative to (i.e. influence basically scales the magnitude of a scalar
around 0, but we may not exactly want a property to get it's value set to 0 as
baseline). However, the problem was that this meant that you'd get popping
artifacts when the a lower strip finally reaches influence=0 but your upper
strips haven't fully reached maximum yet ([#35382]). Another problem was that
you'd end up with less ability to scale the influence of all strips (as in

So, as a stop-gap fix now, we will allow influence scaling to work on these
strips too. This still doesn't fix some of the other problems regarding
baselines/rest-poses and deterministic behaviour when some channels are only
keyed in one strip which isn't set to extend it's influence... Fixing those
issues is a bit more involved, and would require a bit of refactoring of how we
keep track of accumulation channels.

8 years agoBugfix [#35643] Animated textures are invisible in Graph Editor if it is not
Joshua Leung [Mon, 10 Jun 2013 04:39:05 +0000 (04:39 +0000)]
Bugfix [#35643] Animated textures are invisible in Graph Editor if it is not
linked via material

Textures linked to modifiers are now shown in the AnimEditor channel hierarchy
under object level now (i.e. on same level as ob-data, shapekeys, and object's
action). This makes it possible to edit such animation data without having to
ensure that these textures are also linked to the object's material so that they
will appear.

As a side-effect of how this is implemented, if playback is slower on scenes
following this commit, disable the "modifier" filter under the filtering
settings in the relevant animation editor header. In particular, it may be
beneficial to disable this when you've got scenes with meshes that have many
modifiers (but none of these have any linked data with settings which can be
animated), as Blender will still try to go through all those modifiers checking
for anything to show.

8 years agofix [#35648] Loop cut, smoothness showing wrong symmetrical
Campbell Barton [Mon, 10 Jun 2013 04:33:05 +0000 (04:33 +0000)]
fix [#35648] Loop cut, smoothness showing wrong symmetrical

this is more of a feature request then a bug, but nicer to use even smoothing offset for loopcut smoothing.

8 years agofix [#35669] Snap curvepoints dont work correct when another object is selected
Campbell Barton [Mon, 10 Jun 2013 03:56:50 +0000 (03:56 +0000)]
fix [#35669] Snap curvepoints dont work correct when another object is selected

Ctrl+Click extrude curves now supports snapping to faces as with meshes.

8 years agofix [#35670] Selectionmode LMB dont change the controlling for putting curve points...
Campbell Barton [Mon, 10 Jun 2013 02:28:19 +0000 (02:28 +0000)]
fix [#35670] Selectionmode LMB dont change the controlling for putting curve points with strg+lmb

8 years agominor edit to previous commit, only show option to reload the file if its been saved.
Campbell Barton [Mon, 10 Jun 2013 02:05:38 +0000 (02:05 +0000)]
minor edit to previous commit, only show option to reload the file if its been saved.

8 years agoPython script auto-execution changes:
Campbell Barton [Mon, 10 Jun 2013 00:42:16 +0000 (00:42 +0000)]
Python script auto-execution changes:

- script execution is off by default

- if a blend file attempts to execute a script
  this shows a message in the header with the action
  that was suppressed (script/driver/game-autostart) and 2 buttons to either reload the file trusted, or to ignore the message.

- the file selector will always default to use the trust setting in the user preferences,
  but reloading an open file will keep using the current setting (whatever was set before or set on the command-line).

- added SCons setting WITH_BF_PYTHON_SECURITY, this sets the default state for the user prefereces not to trust blend files on load.
  ... this option was in CMake before, but always off, now its enabled by default for SCons and CMake, and forced on in CMake for now.

8 years agocode cleanup: group python reset functions in BPY_python_reset()
Campbell Barton [Sun, 9 Jun 2013 23:31:53 +0000 (23:31 +0000)]
code cleanup: group python reset functions in BPY_python_reset()

8 years agofix [#35663] Some object types don't draw bounds other than "Box"
Campbell Barton [Sun, 9 Jun 2013 21:29:20 +0000 (21:29 +0000)]
fix [#35663] Some object types don't draw bounds other than "Box"

8 years agocode cleanup: use boolean for intersection functions.
Campbell Barton [Sun, 9 Jun 2013 21:25:27 +0000 (21:25 +0000)]
code cleanup: use boolean for intersection functions.

8 years agoCycles / Wavelength to RGB node:
Thomas Dinges [Sun, 9 Jun 2013 20:46:22 +0000 (20:46 +0000)]
Cycles / Wavelength to RGB node:
* Added a node to convert wavelength (in nanometer, from 380nm to 780nm) to RGB values. This can be useful to match real world colors easier.

Example render:

* Move some functions into an util file, maybe a common util_color.h or so.
* Test GPU, unfortunately sm_21 doesn't work for me yet.

8 years agoSVN merge r57315-57319 into soc-2013-dingto
Thomas Dinges [Sun, 9 Jun 2013 20:28:16 +0000 (20:28 +0000)]
SVN merge r57315-57319 into soc-2013-dingto

8 years agopatch [#35631] Active element for Lattice
Campbell Barton [Sun, 9 Jun 2013 20:28:08 +0000 (20:28 +0000)]
patch [#35631] Active element for Lattice
by Kevin Mackay (yakca)

Was one of our TODO's from the wiki.

8 years agoFix #35696: cycles crash with no world assigned to scene, after recent changes.
Brecht Van Lommel [Sun, 9 Jun 2013 18:05:53 +0000 (18:05 +0000)]
Fix #35696: cycles crash with no world assigned to scene, after recent changes.

8 years agoCode cleanup: removed some unused UI button types
Brecht Van Lommel [Sun, 9 Jun 2013 18:05:50 +0000 (18:05 +0000)]
Code cleanup: removed some unused UI button types

* CHARTAB: not needed anymore with improved copy/paste support and text input.
* IDPOIN: replaced by SEARCH_MENU.
* ICONROW/ICONTEXTROW: replaced by RNA enums.
* NUMABS: can use min/max limits instead.
* BUT_TOGDUAL, TOG3, TOGR, SLI: not used in 2.5 interface.

8 years agoFix #35665: cycles CUDA crash after recent changes. This works around a compiler
Brecht Van Lommel [Sun, 9 Jun 2013 16:37:04 +0000 (16:37 +0000)]
Fix #35665: cycles CUDA crash after recent changes. This works around a compiler
bug in CUDA 4.2 (solved in 5.5) with typedef'd function parameters.

8 years agoThis commit replaces old "manual" Editors menu with nice RNA-based one (so once again...
Bastien Montagne [Sun, 9 Jun 2013 16:18:23 +0000 (16:18 +0000)]
This commit replaces old "manual" Editors menu with nice RNA-based one (so once again, some cleanup of old UI code). It makes the following changes:

* RNA's editor types enum (space_type_items) has been re-ordered, added icons, and removed internal-only SPACE_EMPTY value, so that it matches the menu.

* Two fixes in code drawing enums as dropdown menu:
** All items were taken into account when computing the number of needed columns, now simple separators (void string items) are ignored.
** Simple separators items were drawn as labels, taking far too much space!

And now translators will be free from that ugly, insane menu-string! :P

Thanks to Brecht for the review.

8 years agoCreate soc-2013-dingto branch for shader nodes project
Brecht Van Lommel [Sun, 9 Jun 2013 15:17:03 +0000 (15:17 +0000)]
Create soc-2013-dingto branch for shader nodes project

8 years agoCycles:
Thomas Dinges [Sun, 9 Jun 2013 15:09:15 +0000 (15:09 +0000)]
* Use float_to_int() functions in a few more places.

8 years agoFix #35611: 'Quick Edit' in Texture mode + RGBA16bit gives bright results
Sergey Sharybin [Sun, 9 Jun 2013 14:20:46 +0000 (14:20 +0000)]
Fix #35611: 'Quick Edit' in Texture mode + RGBA16bit gives bright results

Was missing linearization of colro came from byte buffer.

8 years agoNLA Editor: It is now possible to add strips to AnimData blocks with no existing
Joshua Leung [Sun, 9 Jun 2013 13:13:47 +0000 (13:13 +0000)]
NLA Editor: It is now possible to add strips to AnimData blocks with no existing

As a convenience feature for those who are loading in action libraries and using
these to quickly block out things in the NLA editor, it is now possible to add
strips to AnimData blocks without first manually creating empty tracks to add
these strips to. Simply ensure that such empty AnimData blocks are selected
(Hint: click on the action line of the affected AnimData block to do so), and
try to add a strip normally.

8 years agoFix #35638: Object disappears when rotating after using the simplify brush
Sergey Sharybin [Sun, 9 Jun 2013 12:53:17 +0000 (12:53 +0000)]
Fix #35638: Object disappears when rotating after using the simplify brush

8 years agojpbouza Feature Request: Transformation Constraint now allows applies rotation
Joshua Leung [Sun, 9 Jun 2013 12:30:13 +0000 (12:30 +0000)]
jpbouza Feature Request: Transformation Constraint now allows applies rotation
offsets too (like for location)

This is useful in some cases when Copy Rotation constraints would otherwise be
used for this purpose but cannot be used for various reasons. Basically, this
works in practically the same way that the Copy Rotation offsets work, including
the same weirdness that you'll get when trying to manually rotate these in the
3D viewport using "global" space manipulations ("local/normal" spaces though
still seem to work really nicely).

WARNING: this may potentially break old files with transform constraint setups
involving rotation outputs. Please check whether this causes any problems on old
files, and report back if there are any issues.

8 years agoBugfix [#35686] Grease pencil to curve conversion causes NAN weights on vertices
Joshua Leung [Sun, 9 Jun 2013 12:05:29 +0000 (12:05 +0000)]
Bugfix [#35686] Grease pencil to curve conversion causes NAN weights on vertices

When you convert a grease pencil stroke to a polygon curve and look at the
vertices, the first and last vertex have weight = 0, but all others have a -NaN
value. This was caused by division by zero issues when minmax_weights[0] ==

8 years agoFix related to #35681: avoid some unnecessary cycles updated when using exclude
Brecht Van Lommel [Sun, 9 Jun 2013 11:57:51 +0000 (11:57 +0000)]
Fix related to #35681: avoid some unnecessary cycles updated when using exclude
render layers.

8 years agoFix #35677, #35525: cycles viewport not updating properly in some situations.
Brecht Van Lommel [Sun, 9 Jun 2013 11:57:50 +0000 (11:57 +0000)]
Fix #35677, #35525: cycles viewport not updating properly in some situations.

Revision 56883 broke a mechanism where cycles tags itself to be updated later
while it is busy.

8 years agoFix for unintended commit of python template file ...
Lukas Toenne [Sun, 9 Jun 2013 09:51:19 +0000 (09:51 +0000)]
Fix for unintended commit of python template file ...

8 years agoRemoved the unused draw_add_menu function from pynodes template. This was previously...
Lukas Toenne [Sun, 9 Jun 2013 09:49:44 +0000 (09:49 +0000)]
Removed the unused draw_add_menu function from pynodes template. This was previously used to extend the node Add menu, now the node categories system is used instead.

8 years agoRemoved deprecated XXX comment from, importing node base types works...
Lukas Toenne [Sun, 9 Jun 2013 09:42:34 +0000 (09:42 +0000)]
Removed deprecated XXX comment from, importing node base types works now (this comment was causing some confusion in the past).

8 years agoAdded an example for using the new node categories system to the
Lukas Toenne [Sun, 9 Jun 2013 08:46:48 +0000 (08:46 +0000)]
Added an example for using the new node categories system to the template script.

8 years agoRemoved the 'custom node group' example from the pynodes template script. This does...
Lukas Toenne [Sun, 9 Jun 2013 08:46:47 +0000 (08:46 +0000)]
Removed the 'custom node group' example from the pynodes template script. This does not work properly due to the fact that node groups don't have a single registerable base class any more. The reason for
that is that RNA does not support multiple inheritance so the actual node group subtypes (ShaderNodeGroup, CompositorNodeGroup, TextureNodeGroup) can not be derived from both the
ShaderNode/CompositorNode/TextureNode base types as well as a common NodeGroup type ... It is possible however to define node group types entirely in python which avoids the limitations of the RNA system
and is much more flexible, example for this will follow later.

8 years agoadd editmode wire color,
Campbell Barton [Sat, 8 Jun 2013 21:58:00 +0000 (21:58 +0000)]
add editmode wire color,
also changed lattice to use this, it used a hard-coded green color which was hard to see over the default background.

8 years agoFix compilation of cycles for MinGW-w64 after recent commits. MinGW-w64 has conflicti...
Antony Riakiotakis [Sat, 8 Jun 2013 21:48:01 +0000 (21:48 +0000)]
Fix compilation of cycles for MinGW-w64 after recent commits. MinGW-w64 has conflicting redefinitions of the SSE functions in windows.h, so we will be using this header instead, since we can't always avoid including it instead of the sse headers.

8 years agoFix for bug [#35400] Dilate Erode Feather Bug - feathering wraps around image
Monique Dewanchand [Sat, 8 Jun 2013 19:56:11 +0000 (19:56 +0000)]
Fix for bug [#35400] Dilate Erode Feather Bug - feathering wraps around image

8 years agoFix #35671: automatic armature weights assignment crashed with an empty mesh.
Brecht Van Lommel [Sat, 8 Jun 2013 17:56:45 +0000 (17:56 +0000)]
Fix #35671: automatic armature weights assignment crashed with an empty mesh.

8 years agoCycles: invert mist pass so that 0 is nearby and 1 is far away. This is the
Brecht Van Lommel [Sat, 8 Jun 2013 17:56:40 +0000 (17:56 +0000)]
Cycles: invert mist pass so that 0 is nearby and 1 is far away. This is the
opposite of Blender Internal but it makes more sense I think.

8 years agoFix for node search operator, this was not taking into account possible NodeItemCusto...
Lukas Toenne [Sat, 8 Jun 2013 17:35:05 +0000 (17:35 +0000)]
Fix for node search operator, this was not taking into account possible NodeItemCustom in the categories yet. Such custom items as just ignored for now.

8 years agoUI / Freestyle:
Thomas Dinges [Sat, 8 Jun 2013 17:10:17 +0000 (17:10 +0000)]
UI / Freestyle:
* Properties, which depend on an enum should be hidden, not greyed out.

8 years agoUI / Modifiers:
Thomas Dinges [Sat, 8 Jun 2013 16:53:14 +0000 (16:53 +0000)]
UI / Modifiers:
* Skin modifier also wasted quite some space, use dual column layout now.

8 years agoUI / Modifiers:
Thomas Dinges [Sat, 8 Jun 2013 16:06:39 +0000 (16:06 +0000)]
UI / Modifiers:
* VERTEX_WEIGHT modifiers had quite a messy UI, improved the grouping of options a bit, so it is easier to scan through.
* Do not use abbreviations like "Rem" or "Dist" in the UI...

* Also small change for BEVEL modifier UI for more efficient space usage.

8 years agoFix #35672: missing update when changing light ray visibility during viewport render.
Brecht Van Lommel [Sat, 8 Jun 2013 13:43:38 +0000 (13:43 +0000)]
Fix #35672: missing update when changing light ray visibility during viewport render.

8 years agoCycles / OpenCL:
Thomas Dinges [Sat, 8 Jun 2013 11:38:23 +0000 (11:38 +0000)]
Cycles / OpenCL:
* Fix for recent commits, ceilf is not available in OpenCL.

8 years agoCycles: window texture coordinates now work with orthographic cameras, this
Brecht Van Lommel [Sat, 8 Jun 2013 10:51:33 +0000 (10:51 +0000)]
Cycles: window texture coordinates now work with orthographic cameras, this
was an old issue since the first version.

8 years agocode cleanup: warn undefined compiler defines.
Campbell Barton [Sat, 8 Jun 2013 05:24:55 +0000 (05:24 +0000)]
code cleanup: warn undefined compiler defines.

8 years agoCode cleanup:
Nicholas Rishel [Sat, 8 Jun 2013 05:24:08 +0000 (05:24 +0000)]
Code cleanup:
Comment no longer relevant as UI button exists to create a new directory.

8 years agoMaps back and forward history to back and forward buttons on a 5 button mouse.
Nicholas Rishel [Sat, 8 Jun 2013 05:23:47 +0000 (05:23 +0000)]
Maps back and forward history to back and forward buttons on a 5 button mouse.

8 years agoCycles: ray visibility options now work for lamps and mesh lights, with and without
Brecht Van Lommel [Fri, 7 Jun 2013 18:59:23 +0000 (18:59 +0000)]
Cycles: ray visibility options now work for lamps and mesh lights, with and without
multiple importance sampling, so you can disable them for diffuse/glossy/transmission.

The Light Path node here is still weak and does not give this info. To make that
work we'd need to evaluate the shader multiple times which is slow and we can't
detect well enough when it is actually needed.

8 years agoCycles: experimental correlated multi-jittered sampling pattern that can be used
Brecht Van Lommel [Fri, 7 Jun 2013 16:06:22 +0000 (16:06 +0000)]
Cycles: experimental correlated multi-jittered sampling pattern that can be used
instead of sobol. So far one doesn't seem to be consistently better or worse than
the other for the same number of samples but more testing is needed.

The random number generator itself is slower than sobol for most number of samples,
except 16, 64, 256, .. because they can be computed faster. This can probably be
optimized, but we can do that when/if this actually turns out to be useful.

Paper this implementation is based on:

Also includes some refactoring of RNG code, fixing a Sobol correlation issue with
the first BSDF and < 16 samples, skipping some unneeded RNG calls and using a
simpler unit square to unit disk function.

8 years agoCode cleanup: avoid some warnings due to implicit uint/int/float/double conversion.
Brecht Van Lommel [Fri, 7 Jun 2013 16:06:17 +0000 (16:06 +0000)]
Code cleanup: avoid some warnings due to implicit uint/int/float/double conversion.

8 years agoUsablity:
Ton Roosendaal [Fri, 7 Jun 2013 15:42:26 +0000 (15:42 +0000)]

Textbuttons: double click now selects entire words (like on file path segements)
Triple click was requested too, but that's not a WM event type yet.

8 years agoCycles: mist pass added, with start/depth/falloff control. If the pass is
Brecht Van Lommel [Fri, 7 Jun 2013 12:45:26 +0000 (12:45 +0000)]
Cycles: mist pass added, with start/depth/falloff control. If the pass is
enabled in a render layer a Mist Pass panel will be shown in the world

8 years agoadd default preset for font settings.
Campbell Barton [Fri, 7 Jun 2013 01:06:01 +0000 (01:06 +0000)]
add default preset for font settings.

8 years agoadd support for storing text styles in themes.
Campbell Barton [Fri, 7 Jun 2013 00:27:21 +0000 (00:27 +0000)]
add support for storing text styles in themes.
also reset text styles when resetting to the default theme.

8 years agochange to r57261, replace BLI_cleanup_dir with BLI_split_dir_part
Campbell Barton [Thu, 6 Jun 2013 23:58:30 +0000 (23:58 +0000)]
change to r57261, replace BLI_cleanup_dir with BLI_split_dir_part

8 years agoReverted unwanted checkin of work in progres from my previews commit
Gaia Clary [Thu, 6 Jun 2013 22:25:20 +0000 (22:25 +0000)]
Reverted unwanted checkin of work in progres from my previews commit

8 years agoRenamed Panel to 'Vertex Weights' (describe its functionality more precise)
Gaia Clary [Thu, 6 Jun 2013 22:05:48 +0000 (22:05 +0000)]
Renamed Panel to 'Vertex Weights' (describe its functionality more precise)

8 years agotext rendering: shadow offset was causing text to clip, now check for clipping withou...
Campbell Barton [Thu, 6 Jun 2013 21:43:52 +0000 (21:43 +0000)]
text rendering: shadow offset was causing text to clip, now check for clipping without the shadow since not-drawing characters because of subtle effect is rather annoying.

8 years agofix for copy/paste error in scaling text by DPI, vertical shadow offset wasn't workin...
Campbell Barton [Thu, 6 Jun 2013 20:44:48 +0000 (20:44 +0000)]
fix for copy/paste error in scaling text by DPI, vertical shadow offset wasn't working for panel text.