blender.git
5 years agoCycles: change __device and similar qualifiers to ccl_device in kernel code.
Brecht Van Lommel [Fri, 15 Nov 2013 23:17:10 +0000 (00:17 +0100)]
Cycles: change __device and similar qualifiers to ccl_device in kernel code.

This to avoids build conflicts with libc++ on FreeBSD, these __ prefixed values
are reserved for compilers. I apologize to anyone who has patches or branches
and has to go through the pain of merging this change, it may be easiest to do
these same replacements in your code and then apply/merge the patch.

Ref T37477.

5 years agoFix T37428: NurbsPath Mesh Deform "Binding" not available or not functional
Sergey Sharybin [Mon, 18 Nov 2013 07:36:13 +0000 (13:36 +0600)]
Fix T37428: NurbsPath Mesh Deform "Binding" not available or not functional

Seems to be a regression when Campbell was working on T24009.

Bind operator exec handles curves nicely, could not see reason
why to disable this with a poll function.

From quick tests everything seems to be just fine.

5 years agoBMesh Refactor: BKE_bmbvh_new can now be created without an EditMesh.
Walid Shouman [Mon, 18 Nov 2013 07:20:21 +0000 (18:20 +1100)]
BMesh Refactor: BKE_bmbvh_new can now be created without an EditMesh.

This adds BM_bmesh_calc_tessellation() so we can get triangles from a
bmesh without having to have an editmesh available.

5 years agoFix T37486: Displacement bake from multires crashes when preview level is on 0
Sergey Sharybin [Mon, 18 Nov 2013 07:05:57 +0000 (13:05 +0600)]
Fix T37486: Displacement bake from multires crashes when preview level is on 0

Revert "Code cleanup: remove unused block from multire baker"

This reverts commit 63b01f6beee8eced14ff013ca93732f5c176ad10.

Multires displacement baker in fact uses level 0 for the
original subdivided mesh. Missed this when was making an
original commit.

5 years agoFix for T36936: Crash when starting BI rendered view
IRIE Shinsuke [Mon, 18 Nov 2013 02:30:06 +0000 (11:30 +0900)]
Fix for T36936: Crash when starting BI rendered view

Discard the render database when stopping the rendered preview,
otherwise starting it again may cause a segmentation fault because
undo/redo with non-rendered preview corrupts the database.

5 years agoPatch T37363: Highlight bone layers with active bones (as for Object Layers)
Joshua Leung [Mon, 18 Nov 2013 03:06:31 +0000 (16:06 +1300)]
Patch T37363: Highlight bone layers with active bones (as for Object Layers)

Patch by Jose Molina Garcia (sentinel), with style fixes by myself.

5 years agoCode cleanup - Reduce duplication of layer number calculations here
Joshua Leung [Mon, 18 Nov 2013 02:53:46 +0000 (15:53 +1300)]
Code cleanup - Reduce duplication of layer number calculations here

5 years agoFix T37413 - Fit-Curve option for Array Modifier ignores constraint results
Joshua Leung [Mon, 18 Nov 2013 01:02:49 +0000 (14:02 +1300)]
Fix T37413 - Fit-Curve option for Array Modifier ignores constraint results

Unless I'm missing something here (probably with regards to parenting),
it makes more sense that constraint results are considered here as well
(for example, if Limit Scale constraints get applied on the object),
as this allows for greater flexibility when creating setups with this.

5 years agoFix spelling error in comment
Joshua Leung [Sun, 17 Nov 2013 12:54:10 +0000 (01:54 +1300)]
Fix spelling error in comment

5 years agoFix T37325: applyRotation() wasn't working correctly on rigid bodies in the game...
Mitchell Stokes [Mon, 18 Nov 2013 00:04:26 +0000 (16:04 -0800)]
Fix T37325: applyRotation() wasn't working correctly on rigid bodies in the game engine.

During the physics cleanup/refactor, the rotation matrix in
CcdPhysicsController::RelativeRotate() became transposed.

5 years agofix for crash with new buildinfo, when gmtime() returns NULL
Campbell Barton [Sun, 17 Nov 2013 15:39:26 +0000 (02:39 +1100)]
fix for crash with new buildinfo, when gmtime() returns NULL

5 years agoCMake OS X: enable FFMPEG and Quicktime by default to match release and scons.
Brecht Van Lommel [Sun, 17 Nov 2013 08:23:18 +0000 (09:23 +0100)]
CMake OS X: enable FFMPEG and Quicktime by default to match release and scons.

5 years agoOSX/scons: using ditto autocreates dirs, spares 2 steps of mkdir iterating over ...
Jens Verwiebe [Sun, 17 Nov 2013 14:16:21 +0000 (15:16 +0100)]
OSX/scons: using ditto autocreates dirs, spares 2 steps of mkdir iterating over .mo files, faster bundling

5 years agoStyle Cleanup: whitespace
Campbell Barton [Sun, 17 Nov 2013 11:00:57 +0000 (22:00 +1100)]
Style Cleanup: whitespace

5 years agoConvenience Makefile: spaces in the build path would fail still.
Campbell Barton [Sun, 17 Nov 2013 10:16:39 +0000 (21:16 +1100)]
Convenience Makefile: spaces in the build path would fail still.

5 years agoconvenience makefile: support spaces in paths
Campbell Barton [Sun, 17 Nov 2013 07:54:03 +0000 (18:54 +1100)]
convenience makefile: support spaces in paths

also update for new source/tools paths.

5 years agopython api internals: no need to set the stop-iter exception string.
Campbell Barton [Sun, 17 Nov 2013 04:09:57 +0000 (15:09 +1100)]
python api internals: no need to set the stop-iter exception string.

5 years agovertex weights: add weight quantize tool.
Campbell Barton [Sun, 17 Nov 2013 03:54:42 +0000 (14:54 +1100)]
vertex weights: add weight quantize tool.

5 years ago* Some less technical tooltip for the splash screen.
Thomas Dinges [Sat, 16 Nov 2013 23:44:08 +0000 (00:44 +0100)]
* Some less technical tooltip for the splash screen.

5 years agoDocumentation:
Thomas Dinges [Sat, 16 Nov 2013 23:37:12 +0000 (00:37 +0100)]
Documentation:
* Update readme for 2.70 (content + links), also updates for new tracker/git.
* Fix some links to the new blender.org website
* Release logs now point directly to the wiki, I don't see a reason to point to the website, just to redirect to the wiki after all.

5 years agoFreestyle: a follow-up fix of trunk revision 61233. When an iterator has reached
Tamito Kajiyama [Sat, 16 Nov 2013 22:10:27 +0000 (22:10 +0000)]
Freestyle: a follow-up fix of trunk revision 61233.  When an iterator has reached
the end, any reference of the object pointed by it will now lead to a RuntimeError
instead of returning None, with the aim of forcing Python API users to check the
end of iteration rather than implicitly indicating the error condition.

Acknowledgement to flokkievids for API discussions in the BlenderArtists.org
Freestyle for Blender thread.

5 years agoOSX/scons: small reorder and spelling
Jens Verwiebe [Sat, 16 Nov 2013 21:13:51 +0000 (22:13 +0100)]
OSX/scons: small reorder and spelling

5 years agoOSX/scons: fix msgfmt binary linking and locale files distribution
Jens Verwiebe [Sat, 16 Nov 2013 20:46:35 +0000 (21:46 +0100)]
OSX/scons: fix msgfmt binary linking and locale files distribution

5 years agoTransform: vertex snapping for curves
Henrik Aarnio [Sat, 16 Nov 2013 18:58:29 +0000 (19:58 +0100)]
Transform: vertex snapping for curves

This adds vertex snapping capabilities for curves. Snaps to all control points
of other objects, and visible + selected control points and handles in curve
edit mode.

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D3

5 years agoFix compilation error with SCons when using BUILDINFO and git is not found
Sergey Sharybin [Sat, 16 Nov 2013 18:45:11 +0000 (00:45 +0600)]
Fix compilation error with SCons when using BUILDINFO and git is not found

Fallback to "no buildinfo" mode in this case.

5 years agopose mode: extend selection flipping to use the same method as editmode.
Campbell Barton [Sat, 16 Nov 2013 18:18:10 +0000 (05:18 +1100)]
pose mode: extend selection flipping to use the same method as editmode.

adds extend and active only opton.

5 years agoarmature editmode: option for select mirror to use active bone only.
Campbell Barton [Sat, 16 Nov 2013 17:41:37 +0000 (04:41 +1100)]
armature editmode: option for select mirror to use active bone only.

5 years agocode cleanup: armature functions
Campbell Barton [Sat, 16 Nov 2013 17:30:36 +0000 (04:30 +1100)]
code cleanup: armature functions

- added BKE_pose_channel_get_mirrored (matching editmode function ED_armature_bone_get_mirrored)
- editbone_name_exists -> ED_armature_bone_find_name

5 years agocode cleanup: rename flip_side_name to BKE_deform_flip_side_name
Campbell Barton [Sat, 16 Nov 2013 17:20:31 +0000 (04:20 +1100)]
code cleanup: rename flip_side_name to BKE_deform_flip_side_name

5 years agoSkip .git files from submodules for install targets
Sergey Sharybin [Sat, 16 Nov 2013 18:18:21 +0000 (00:18 +0600)]
Skip .git files from submodules for install targets

Also removed .svn checks when it's not longer needed.
Some further tweaks (probably for OSX bundler) are
likely needed.

5 years agoRemove check for whether po folder exist
Sergey Sharybin [Sat, 16 Nov 2013 18:09:03 +0000 (00:09 +0600)]
Remove check for whether po folder exist

It was just a temp thing to not break stuff
before final git migration.

5 years agoFixes for buildinfo of exported source tree
Sergey Sharybin [Sat, 16 Nov 2013 18:00:02 +0000 (00:00 +0600)]
Fixes for buildinfo of exported source tree

- Better to set branch/hash to "unknown" so
  it's clear build is done from exported tree.
- SCons used to reference undefined variable.

5 years agoarmature editing: using too short length checking to add L/R suffix.
Campbell Barton [Sat, 16 Nov 2013 17:03:09 +0000 (04:03 +1100)]
armature editing: using too short length checking to add L/R suffix.

5 years agoFurther tweak to .mo compilation on windows
Sergey Sharybin [Sat, 16 Nov 2013 16:33:05 +0000 (22:33 +0600)]
Further tweak to .mo compilation on windows

Was wrong dependency used for msgfmt custom command.

5 years agoFix T37493: Defocus node with angle = 90° rotates bokeh only for ~1.5°
Sv. Lockal [Sat, 16 Nov 2013 15:34:06 +0000 (19:34 +0400)]
Fix T37493: Defocus node with angle = 90° rotates bokeh only for ~1.5°

5 years agoGit test commit, this time from Windows.
Thomas Dinges [Sat, 16 Nov 2013 15:13:18 +0000 (16:13 +0100)]
Git test commit, this time from Windows.

5 years agoAttempt to fix compilation error on windows
Sergey Sharybin [Sat, 16 Nov 2013 14:39:36 +0000 (20:39 +0600)]
Attempt to fix compilation error on windows

Seems simply need to add .exe to msgfmt executable when
adding custom command to SCons.

Don't have windows by hand atm, so can not test for sure.

5 years agoMore fix for this stupid uppercase-to-lowercase convertion code... Thanks to Lockal...
Bastien Montagne [Sat, 16 Nov 2013 14:31:00 +0000 (15:31 +0100)]
More fix for this stupid uppercase-to-lowercase convertion code... Thanks to Lockal for noting this!

5 years agoRemove nested check for .git folder exists in buildinfo.cmake
Sergey Sharybin [Sat, 16 Nov 2013 13:40:26 +0000 (19:40 +0600)]
Remove nested check for .git folder exists in buildinfo.cmake

Title says it all :)

Pointer by IRIE Shinsuke in the ML, thanks!

5 years agoFix T37476 Bevel modifier got weight from wrong edge
Howard Trickey [Sat, 16 Nov 2013 13:07:03 +0000 (08:07 -0500)]
Fix T37476 Bevel modifier got weight from wrong edge

The bevel modifier with 'weight' activated was reading
the weights from the wrong edges.

5 years agoAnd here is the first git (testing) commit by me!
Ton Roosendaal [Sat, 16 Nov 2013 10:57:40 +0000 (11:57 +0100)]
And here is the first git (testing) commit by me!
Welcome to a brave new GPL3 world... well if commit works :)

5 years agoFix T37442: Disabled uiList would "freeze" Blender when trying to drag-resize it.
mont29 [Sat, 16 Nov 2013 10:30:48 +0000 (11:30 +0100)]
Fix T37442: Disabled uiList would "freeze" Blender when trying to drag-resize it.

For now, simply disable drag-resize for disabled uiLists!

5 years agoTest
Thomas Dinges [Sat, 16 Nov 2013 09:59:08 +0000 (10:59 +0100)]
Test

5 years agoThe tittle for "Maximum Draw Type" had capitalization inconsistent with the rest...
Daniel Salazar [Sat, 16 Nov 2013 08:50:01 +0000 (02:50 -0600)]
The tittle for "Maximum Draw Type" had capitalization inconsistent with the rest of Blender

5 years agorangetree: support for building on freebsd-10
Campbell Barton [Sat, 16 Nov 2013 07:31:13 +0000 (18:31 +1100)]
rangetree: support for building on freebsd-10

5 years agoHelp menu: report a bug now links to the new tracker at developer.blender.org.
Brecht Van Lommel [Sat, 16 Nov 2013 02:26:04 +0000 (03:26 +0100)]
Help menu: report a bug now links to the new tracker at developer.blender.org.

There will be a redirect from the projects.blender.org website as well, but
might as well update the link here.

5 years agoAddons: remove tracker URL from addon template, as this is no longer used,
Brecht Van Lömmel [Sat, 16 Nov 2013 02:08:51 +0000 (03:08 +0100)]
Addons: remove tracker URL from addon template, as this is no longer used,
and link to the new Addons bug reporting page.

5 years agoOSX/cmake: rollback ca5bbe0e419b04d16ee7eb12fa7eaffa0266815a cause OSX versions can...
Jens Verwiebe [Fri, 15 Nov 2013 22:20:16 +0000 (23:20 +0100)]
OSX/cmake: rollback ca5bbe0e419b04d16ee7eb12fa7eaffa0266815a cause OSX versions can have not subversion thus sw_vers -productVersion is not usable for sdk setting

5 years agoCode cleanup, cont. A small omission here.
Antony Riakiotakis [Fri, 15 Nov 2013 21:04:18 +0000 (23:04 +0200)]
Code cleanup, cont. A small omission here.

5 years agoCode cleanup: Use different redraw options for sculpt mask operators.
Antony Riakiotakis [Fri, 15 Nov 2013 21:00:15 +0000 (23:00 +0200)]
Code cleanup: Use different redraw options for sculpt mask operators.

Current redraw options also did an unnecessary normal recalculation on
updated nodes.

Also, for the box and lasso mask only push an undo node if any vertex
has actually been influenced.

5 years agoSupport for symmetrical box masking in sculpt mode.
Antony Riakiotakis [Fri, 15 Nov 2013 20:20:51 +0000 (22:20 +0200)]
Support for symmetrical box masking in sculpt mode.

Now box masking will take the symmetry options into account.

5 years agoOSX/cmake: use CMAKE_XCODE_ATTRIBUTE rather than CMAKE_OSX_SYSROOT and set min deploy...
Jens Verwiebe [Fri, 15 Nov 2013 19:05:23 +0000 (20:05 +0100)]
OSX/cmake: use CMAKE_XCODE_ATTRIBUTE rather than CMAKE_OSX_SYSROOT and set min deployment target to 10.6 now

5 years agoOSX/cmake: simplify system-version detection
Jens Verwiebe [Fri, 15 Nov 2013 18:26:43 +0000 (19:26 +0100)]
OSX/cmake: simplify system-version detection

5 years agoFix collada after git switch ( undefined build_commit_time )
Jens [Fri, 15 Nov 2013 17:37:57 +0000 (18:37 +0100)]
Fix collada after git switch ( undefined build_commit_time )

5 years agoFix for own mistake in r61178: bNodeTree->links ListBase was being modified while...
Lukas Tönne [Fri, 15 Nov 2013 15:54:05 +0000 (16:54 +0100)]
Fix for own mistake in r61178: bNodeTree->links ListBase was being modified while iterating ...

5 years agoFix Bevel artifacts bug T37053
howardt [Fri, 15 Nov 2013 15:19:38 +0000 (10:19 -0500)]
Fix Bevel artifacts bug T37053

In the case that there are two beveled edges with one unbeveled
one in between, and the widths don't allow them to magically
line up, it is better to slide along unbeveled edge.

Sometimes bevel widths are uneven (this was the case before)
and it is a followup TODO to do a width cleanup pass afterwards
to even the edges up as much as possible.

5 years agoCmake: little typo breaking player
jensverwiebe [Fri, 15 Nov 2013 15:30:49 +0000 (16:30 +0100)]
Cmake: little typo breaking player

5 years agoOSX/scons: make another gcc conditional futureproof
Jens Verwiebe [Fri, 15 Nov 2013 09:46:10 +0000 (10:46 +0100)]
OSX/scons: make another gcc conditional futureproof

5 years agoAdded the wrong file. Now addin .arcconfig for real.
Sergey Sharybin [Fri, 15 Nov 2013 14:40:43 +0000 (20:40 +0600)]
Added the wrong file. Now addin .arcconfig for real.

Summary is still: http://wiki.blender.org/index.php/Dev:Doc/Tools/Code_Review

5 years agoAdd .arcconfig for Phabricator Arcanist
Sergey Sharybin [Fri, 15 Nov 2013 14:38:39 +0000 (20:38 +0600)]
Add .arcconfig for Phabricator Arcanist

Summary: http://wiki.blender.org/index.php/Dev:Doc/Tools/Code_Review

5 years agoFurther tweaks to buildinfo
Sergey Sharybin [Fri, 15 Nov 2013 11:11:59 +0000 (17:11 +0600)]
Further tweaks to buildinfo

Summary:
Old idea with changes since previous release tag
didn't work good enough. In most of the cases tag
was done in a branch hence not actually reachable
from the master branch.

Now change since release is gone, and date of
the latest commit is used instead.

The date is displayed in format YYYY-MM-DD HH:mm
in the splash.

New bpy.app fields:

- build_commit_timestamp is an unix timestamp of
  the commit blender was build from.
- build_commit_date is a date of that commit.
- build_commit_time is a time of that commit.

Reviewers: campbellbarton

Differential Revision: http://developer.blender.org/D5

5 years agosupport for paths with spaces in makefile
Campbell Barton [Fri, 15 Nov 2013 07:59:50 +0000 (18:59 +1100)]
support for paths with spaces in makefile

5 years agoadd gitignore
Campbell Barton [Fri, 15 Nov 2013 07:51:31 +0000 (18:51 +1100)]
add gitignore

5 years agoAdd functional and cctype headers to msgfmt.cc
Sergey Sharybin [Thu, 14 Nov 2013 21:51:17 +0000 (03:51 +0600)]
Add functional and cctype headers to msgfmt.cc

Fixes compilation with MSVC compilers.

Patch by leszekswirski (Lech Swirski) with some own tweaks.

Differential Revision: http://developer.blender.org/D2

5 years agoFix for msgfmt leaving context from previous message string
Sergey Sharybin [Wed, 13 Nov 2013 11:02:28 +0000 (17:02 +0600)]
Fix for msgfmt leaving context from previous message string

5 years agoRemove debug-only print from cmake macros
Sergey Sharybin [Wed, 13 Nov 2013 10:42:31 +0000 (16:42 +0600)]
Remove debug-only print from cmake macros

Left it there by an accident.

5 years agoInitialize git submodules for addons, locales and scons
Sergey Sharybin [Fri, 15 Nov 2013 06:19:08 +0000 (12:19 +0600)]
Initialize git submodules for addons, locales and scons

Uses relative paths to repositories, so this is expected
to work fine for any protocol we support (git, ssh and http).

Uses ignore=all for all the submodules, so updating them
to latest remote hash does not tags blender repository
as changes. But it is still possible to make changes to
submodules and commit them from their path.

5 years agoFix for [#37362] Audio strips sometimes are evaluated incorrectly.
Joerg Mueller [Tue, 12 Nov 2013 18:29:08 +0000 (18:29 +0000)]
Fix for [#37362] Audio strips sometimes are evaluated incorrectly.

For details see bug comments. The problem was that blender's animation system didn't update the audio animation system anymore due to an optimization. Fixed this in a complex but proper way in the audio animation system, so that it can handle gaps of missing values.

5 years agoSmall example for dynamic node labels in the custom_nodes.py template script.
Lukas Toenne [Tue, 12 Nov 2013 18:18:06 +0000 (18:18 +0000)]
Small example for dynamic node labels in the custom_nodes.py template script.

5 years agoMake dynamic node labels possible as a registerable function 'draw_label' (simple...
Lukas Toenne [Tue, 12 Nov 2013 18:18:04 +0000 (18:18 +0000)]
Make dynamic node labels possible as a registerable function 'draw_label' (simple 'label' identifier is already in use, need to avoid API breakage). This should simply return a string. The dynamic label can still be overridden by the user-defined node.label string.

5 years agoInstead of requiring a const char* return from the (optional) node label callback...
Lukas Toenne [Tue, 12 Nov 2013 18:17:58 +0000 (18:17 +0000)]
Instead of requiring a const char* return from the (optional) node label callback function, let it write into a mutable string buffer. This will allow actual dynamic labels for nodes using the python
API.

5 years agoChange the behavior of AO pass in Blender internal's shader/render node tree so that...
Irie Shinsuke [Tue, 12 Nov 2013 10:59:40 +0000 (10:59 +0000)]
Change the behavior of AO pass in Blender internal's shader/render node tree so that it becomes (1.0, 1.0, 1.0) when AO is disabled.

For materials using AO pass, this makes the material preview and the GLSL
preview more accurate, but shouldn't affect final rendering in most cases
because we usually enable AO when using the AO pass in node tree.

Thanks to Brecht for code review.

5 years agoFix [#37409] Missing Buttons in Edit Strip Sub-Menu for Sound Strips in the VSE
Bastien Montagne [Tue, 12 Nov 2013 07:02:04 +0000 (07:02 +0000)]
Fix [#37409] Missing Buttons in Edit Strip Sub-Menu for Sound Strips in the VSE

Add back mute & lock buttons to audio strips (these should not have been removed, own fault).

5 years agoFix #37092 and #37381: crashes in the .object() method of Freestyle iterators.
Tamito Kajiyama [Tue, 12 Nov 2013 02:28:26 +0000 (02:28 +0000)]
Fix #37092 and #37381: crashes in the .object() method of Freestyle iterators.
Now the method checks if the iterator is at the end, and returns None if that is the case.

5 years agoFix [#37380] vertex paint colors don't render.
Bastien Montagne [Mon, 11 Nov 2013 20:37:19 +0000 (20:37 +0000)]
Fix [#37380] vertex paint colors don't render.

Another Evil Typo (r) one, you could add much more than the 8 allowed VCol layers!

Note: added some (warning-only) checks in mesh validate functions, but we still have a big issue with new cdlayer merge function, which could generate more than 8 layers of UVs or VCol... Don't know yet how to handle this situation. :(

5 years agoFix [#37388] Grid fill crashes blender in specific situation.
Bastien Montagne [Mon, 11 Nov 2013 14:29:01 +0000 (14:29 +0000)]
Fix [#37388] Grid fill crashes blender in specific situation.

With some geometries, we can have a valid first path, without being able to find a valid second one, added needed check.

5 years agoUsed wrong RNA access routine in bevel amount commit.
Howard Trickey [Mon, 11 Nov 2013 12:19:39 +0000 (12:19 +0000)]
Used wrong RNA access routine in bevel amount commit.

5 years agoFix #37395: Rendering with a movie strip behind a scene shows inconsistent results
Sergey Sharybin [Mon, 11 Nov 2013 12:08:31 +0000 (12:08 +0000)]
Fix #37395: Rendering with a movie strip behind a scene shows inconsistent results

For now just make sure conversion to sequencer space will ensure imbuf's
color space names is set properly.

Might be some further changes needed to make colorspace flow more clear
in sequencer, but that's for later.

5 years agoFix [#37394] UV Map cannot be renamed.
Bastien Montagne [Sun, 10 Nov 2013 20:32:27 +0000 (20:32 +0000)]
Fix [#37394] UV Map cannot be renamed.

Own epic failure! CustomData_get_named_layer() returns a relative index, not an absolute one. :(

5 years agoFix [#37393] Input dimensions are case sensitive in the property panel, uppercase...
Bastien Montagne [Sun, 10 Nov 2013 19:51:44 +0000 (19:51 +0000)]
Fix [#37393] Input dimensions are case sensitive in the property panel, uppercase input is misinterpreted

Typo in lowercasing code!

5 years agomake IS_EQ and IS_EQF typecheck args
Campbell Barton [Sun, 10 Nov 2013 14:13:26 +0000 (14:13 +0000)]
make IS_EQ and IS_EQF typecheck args

5 years agoreplace IS_EQ -> IS_EQF for use with floats.
Campbell Barton [Sun, 10 Nov 2013 12:56:50 +0000 (12:56 +0000)]
replace IS_EQ -> IS_EQF for use with floats.

5 years agoAdded options for how bevel amount is measured.
Howard Trickey [Sun, 10 Nov 2013 12:31:57 +0000 (12:31 +0000)]
Added options for how bevel amount is measured.
Now there is an 'Offset Type' dropdown on tool
shelf with types:
Offset - current method, offset of new edge
  from old along sliding face
Width - width of new bevel face (if segments=1)
Depth - amount a chamfering plane moves down
  from original edge
Percent - percent of way sliding edges move
  along their adjacent edges

The different options mainly are useful when
beveling more than one edge at once.

Leaving as a TODO to put these in the modifier,
as doing that has more permanent effects so
want to let users shake out problems with this
first.

5 years agomistake in last commit
Campbell Barton [Sun, 10 Nov 2013 12:29:15 +0000 (12:29 +0000)]
mistake in last commit

5 years agono need to call isnan() on unsigned ints (causes error on freebsd/clang)
Campbell Barton [Sun, 10 Nov 2013 12:26:03 +0000 (12:26 +0000)]
no need to call isnan() on unsigned ints (causes error on freebsd/clang)

5 years agoWork around for bug [#37376] wrong tooltips on few minus buttons
Bastien Montagne [Sun, 10 Nov 2013 08:15:24 +0000 (08:15 +0000)]
Work around for bug [#37376] wrong tooltips on few minus buttons

Until we have a way to customize tooltips based on operator parameters...

5 years agouiList: fix another bug, where active item labels in sublayouts would not get colored...
Bastien Montagne [Sat, 9 Nov 2013 18:44:37 +0000 (18:44 +0000)]
uiList: fix another bug, where active item labels in sublayouts would not get colored as active (need recursion in sublayouts!). Was affecting e.g. Group node inputs/outputs lists.

5 years agouiList: fix a bug in computing visual active index (afaict, in case of reordering...
Bastien Montagne [Sat, 9 Nov 2013 17:05:07 +0000 (17:05 +0000)]
uiList: fix a bug in computing visual active index (afaict, in case of reordering, was affecting "keep active visible" feature when resizing, and the "active label color" in custom themes).

5 years agoOSX/scons: user request, make options succes transparent by printing it
Jens Verwiebe [Sat, 9 Nov 2013 16:32:10 +0000 (16:32 +0000)]
OSX/scons: user request, make options succes transparent by printing  it

5 years agoOSX/scons: spelling and cleanup comments
Jens Verwiebe [Sat, 9 Nov 2013 16:00:08 +0000 (16:00 +0000)]
OSX/scons: spelling and cleanup comments

5 years agoOSX/scons: Only cosmetical, a nicer formatting for available sdk listing
Jens Verwiebe [Sat, 9 Nov 2013 13:31:20 +0000 (13:31 +0000)]
OSX/scons: Only cosmetical, a nicer formatting for available sdk listing

5 years agoCycles / Fresnel Node:
Thomas Dinges [Sat, 9 Nov 2013 13:14:00 +0000 (13:14 +0000)]
Cycles / Fresnel Node:
* Add a "Normal" Input to the Fresnel node.
* Fix for the Fresnel GLSL code (normalize the Incoming vector).

Patch #37384 by Philipp Oeser (lichtwerk) , thanks!

5 years agoMore fix for [#37327] Inconsistent numeric input conversion.
Bastien Montagne [Sat, 9 Nov 2013 10:35:32 +0000 (10:35 +0000)]
More fix for [#37327] Inconsistent numeric input conversion.

When a single element is involved, apply directly the values instead of using the diff from init values. This avoids glitches when going from huge values to very small ones (due to float precision).

Note we should probably switch to doubles here, ultimately, but would leave that for later.

Manys thanks to Armin Zingler, who did all the investigation work on this point!

5 years agoBe ready for changes in bf-translations repository
Sergey Sharybin [Fri, 8 Nov 2013 20:44:48 +0000 (20:44 +0000)]
Be ready for changes in bf-translations repository

Made it so if there's release/datafiles/locale/po
folder, then all the .po files will be converted
to .mo at blender compile time and installed to
an appropriate location.

Uses small own implementation msgfmt which is
based on msgfmt.py from Python project, but also
supports contexts.

There's no functional changes for until we've
switched to use source .po files instead of
pre-compiled .mo.

P.S. Well, there's one change which is msgfmt.cc
     being compiled even if it's not used, but
     would rather not clutter code with checks
     since pretty soon we'll use this program
     anyway.

5 years agoknife tool: Remove unused 'extend' variable
Sergej Reich [Fri, 8 Nov 2013 18:01:07 +0000 (18:01 +0000)]
knife tool: Remove unused 'extend' variable

5 years agoknife tool: Clean up line hits when starting a new cut
Sergej Reich [Fri, 8 Nov 2013 18:01:05 +0000 (18:01 +0000)]
knife tool: Clean up line hits when starting a new cut

Fixes intersection points of the previous cut still being drawn when
starting a new cut.

5 years agouse assert to check for incorrect use of BLF_draw_ascii()
Campbell Barton [Fri, 8 Nov 2013 15:01:43 +0000 (15:01 +0000)]
use assert to check for incorrect use of BLF_draw_ascii()

5 years agoOSX/scons: make MACOSX_SDK_CHECK a local var is sconstruct and remove from env, also...
Jens Verwiebe [Fri, 8 Nov 2013 13:44:10 +0000 (13:44 +0000)]
OSX/scons: make MACOSX_SDK_CHECK a local var is sconstruct and remove from env, also fix a longstanding misuse of MACOSX_SDK_CHECK in ceres, use MACOSX_SDK instead

5 years agoOSX/scons: remove never used MAC_PROC and minor cleanups
Jens Verwiebe [Fri, 8 Nov 2013 13:19:51 +0000 (13:19 +0000)]
OSX/scons: remove never used MAC_PROC and minor cleanups

5 years ago[#37327] Inconsistent numeric input conversion.
Bastien Montagne [Fri, 8 Nov 2013 11:25:50 +0000 (11:25 +0000)]
[#37327] Inconsistent numeric input conversion.

Issue was actually that micrometer was not drawing correctly (from r58165), reverted that fix and instead use utf8 drawing for editmode metrics when using a unit system (we already had a similar hack for surfaces and volumes, anyway).