7 years agoFix T36654.
Antony Riakiotakis [Thu, 27 Feb 2014 07:39:04 +0000 (09:39 +0200)]
Fix T36654.

There is a key conflict between grease pencil shortcuts and sculpt
shortcuts (D and ctrl D were taken by draw brush and dyntopo toggle,
respectively). Based on feedback, change dyntopo toggle to ctrl-T and
draw brush to X.

Also add missing property update for dyntopo detail size.

7 years agoUI: avoid for divide by zero for icon buttons (no need to clip text)
Campbell Barton [Thu, 27 Feb 2014 07:29:10 +0000 (18:29 +1100)]
UI: avoid for divide by zero for icon buttons (no need to clip text)

7 years agoFix T38863: FCurve auto-clamp allows handle to move past X bounds
Campbell Barton [Thu, 27 Feb 2014 06:15:49 +0000 (17:15 +1100)]
Fix T38863: FCurve auto-clamp allows handle to move past X bounds

F-Curves with large Y axis had strange behavior where the handles could
stretch out on the X axis rather then clamping as they do at smaller sizes.

7 years agoCode cleanup: curves calculation was using offsets confusingly
Campbell Barton [Thu, 27 Feb 2014 06:03:35 +0000 (17:03 +1100)]
Code cleanup: curves calculation was using offsets confusingly

also avoid calculating handle length when align isn't used.

7 years agoFix: 'F-Curve Editor' popup text was truncated.
Campbell Barton [Thu, 27 Feb 2014 04:50:30 +0000 (15:50 +1100)]
Fix: 'F-Curve Editor' popup text was truncated.

7 years agoFix T38859: Laplacian Deform Crash
Campbell Barton [Thu, 27 Feb 2014 04:03:03 +0000 (15:03 +1100)]
Fix T38859: Laplacian Deform Crash

7 years agoFix T38851: Apply Transform doesn't work when called from search popup
Campbell Barton [Thu, 27 Feb 2014 02:39:35 +0000 (13:39 +1100)]
Fix T38851: Apply Transform doesn't work when called from search popup

7 years agoFix T38834: Knife constraint is offset after moving the view
Campbell Barton [Thu, 27 Feb 2014 02:28:25 +0000 (13:28 +1100)]
Fix T38834: Knife constraint is offset after moving the view

7 years agoFix T38858: Crazy spaces was unpredictable with co-linear edges
Campbell Barton [Thu, 27 Feb 2014 01:28:40 +0000 (12:28 +1100)]
Fix T38858: Crazy spaces was unpredictable with co-linear edges

7 years agoFix for VIEW3D_OT_camera_to_view with quadview, disable in camera view
Campbell Barton [Thu, 27 Feb 2014 00:33:27 +0000 (11:33 +1100)]
Fix for VIEW3D_OT_camera_to_view with quadview, disable in camera view

7 years agoFix for view3d name getting concatenated
Campbell Barton [Thu, 27 Feb 2014 00:30:12 +0000 (11:30 +1100)]
Fix for view3d name getting concatenated

7 years agoTransform: remove recently added ival2, use editbones temp data
Campbell Barton [Wed, 26 Feb 2014 22:47:37 +0000 (09:47 +1100)]
Transform: remove recently added ival2, use editbones temp data

7 years agoRNA: rename matrix_for_frame -> matrix_from_frame
Campbell Barton [Wed, 26 Feb 2014 21:38:14 +0000 (08:38 +1100)]
RNA: rename matrix_for_frame -> matrix_from_frame

7 years agoFix T38678: Long strings on Search widget not getting shortened/no tooltip.
Bastien Montagne [Wed, 26 Feb 2014 20:53:56 +0000 (21:53 +0100)]
Fix T38678: Long strings on Search widget not getting shortened/no tooltip.

Note this commit only makes search menus wider and adds shortening to their strings.
Adding tooltips here is not trivial, would need much bigger changes...

Reviewers: brecht

Reviewed By: brecht

Differential Revision:

7 years agoFix T38843: Bone parallel to world z axis flicking when scale in edit mode.
Bastien Montagne [Wed, 26 Feb 2014 20:28:11 +0000 (21:28 +0100)]
Fix T38843: Bone parallel to world z axis flicking when scale in edit mode.

This commit hopefully fixes all glitches we had when bone was Z-aligned. Note that when you init a transform
with a Z-aligned bone and change it to be non-Z-aligned, you will still get some brutal roll change,
there is not much things we can do here afaik...

7 years agoFix T38856: mark seam in search menu clearing the seam in some cases.
Brecht Van Lommel [Wed, 26 Feb 2014 19:56:36 +0000 (20:56 +0100)]
Fix T38856: mark seam in search menu clearing the seam in some cases.

It should not remember the operator property for the next time here.

7 years agoFix T36652: .blend file with minimized window not loading correctly on Windows.
Brecht Van Lommel [Wed, 26 Feb 2014 19:50:55 +0000 (20:50 +0100)]
Fix T36652: .blend file with minimized window not loading correctly on Windows.

7 years agoFix T37756: file > open with file selector already open not restoring screen correctly.
Brecht Van Lommel [Wed, 26 Feb 2014 18:50:12 +0000 (19:50 +0100)]
Fix T37756: file > open with file selector already open not restoring screen correctly.

7 years agoFix T38853: right click menu add driver should not be possible to redo.
Brecht Van Lommel [Wed, 26 Feb 2014 17:54:40 +0000 (18:54 +0100)]
Fix T38853: right click menu add driver should not be possible to redo.

This was already disabled for the keyframing operators, needs to be done for
drivers as well as this doesn't work.

7 years agoFix T38855: DIRECTORY_PATH vs. DIR_PATH inconsistency in python API docs.
Brecht Van Lommel [Wed, 26 Feb 2014 17:50:27 +0000 (18:50 +0100)]
Fix T38855: DIRECTORY_PATH vs. DIR_PATH inconsistency in python API docs.

7 years agoFix for bug reported by Pablo Vasquez (venomgfx) on IRC: Single layer
Lukas Tönne [Wed, 26 Feb 2014 17:44:32 +0000 (18:44 +0100)]
Fix for bug reported by Pablo Vasquez (venomgfx) on IRC: Single layer
renders were broken.

This was caused by rB1a79abdad2443ff9f12e7efd95ee78a264a9d60a which
makes a copy of the render layer list for thread safety. The single
layer passed to this function is still in the original list though, so
to get the correct index it has to be looked up there. Otherwise no
active index is set and all layers are rendered every time.

7 years agoFix T38710: volume render issue with transparent surfaces.
Brecht Van Lommel [Wed, 26 Feb 2014 17:47:50 +0000 (18:47 +0100)]
Fix T38710: volume render issue with transparent surfaces.

7 years agoFurther work to fix T38726: signal viewport to update when adding/removing render...
IRIE Shinsuke [Wed, 26 Feb 2014 17:35:55 +0000 (18:35 +0100)]
Further work to fix T38726: signal viewport to update when adding/removing render layers.

Reviewers: brecht

Differential Revision:

7 years agoLocale_wrapper: make the bad_cast catch more clear and fix the std::exception message
Jens Verwiebe [Wed, 26 Feb 2014 16:33:26 +0000 (17:33 +0100)]
Locale_wrapper: make the bad_cast catch more clear and fix the std::exception message

7 years agoFix T38726: missing rendered viewport update when removing render layer.
Brecht Van Lommel [Wed, 26 Feb 2014 16:29:50 +0000 (17:29 +0100)]
Fix T38726: missing rendered viewport update when removing render layer.

7 years agoFix T38831: blender internal enabling shadow pass changes material node diffuse.
Brecht Van Lommel [Wed, 26 Feb 2014 15:55:50 +0000 (16:55 +0100)]
Fix T38831: blender internal enabling shadow pass changes material node diffuse.

It would include/exclude shadow depending on the pass being disabled/enabled,
but that should have no influence on the combined render result. Now it always
includes shadow.

7 years agoNicer solution to T38846: Split off the render layer forcing from the
Lukas Tönne [Wed, 26 Feb 2014 13:56:27 +0000 (14:56 +0100)]
Nicer solution to T38846: Split off the render layer forcing from the
validity check for render operator.

This way scene DNA can stay read-only there, cleaner and we don't have
to pass an awkward bool pointer around.

7 years agoFix T38846: Render layer checkbox is not refreshed.
Lukas Tönne [Wed, 26 Feb 2014 13:36:30 +0000 (14:36 +0100)]
Fix T38846: Render layer checkbox is not refreshed.

The render operator invoke checks render layers, which can force the
render layer to be activated. This requires a notifier, which has to be
done in the operator itself (can't do this inside pipeline code).

7 years agoFix crash happening when drawing GP for a track which doesn't have visible marker
Sergey Sharybin [Wed, 26 Feb 2014 13:42:59 +0000 (19:42 +0600)]
Fix crash happening when drawing GP for a track which doesn't have visible marker

7 years agoFix 3D tracks to mesh not aligning mesh properly
Sergey Sharybin [Wed, 26 Feb 2014 13:40:04 +0000 (19:40 +0600)]
Fix 3D tracks to mesh not aligning mesh properly

Also fixed wrong frame number used for reconstructed object
visualization in 3D viewport.

7 years agoFix for own regression: remove doubles deselected faces
Campbell Barton [Wed, 26 Feb 2014 12:40:27 +0000 (23:40 +1100)]
Fix for own regression: remove doubles deselected faces

7 years agoBMesh: add overwrite option to BM_mesh_elem_hflag_enable/disable_test
Campbell Barton [Wed, 26 Feb 2014 12:34:09 +0000 (23:34 +1100)]
BMesh: add overwrite option to BM_mesh_elem_hflag_enable/disable_test

7 years agoIgnore zero weighted markers in keyframe selection
Sergey Sharybin [Wed, 26 Feb 2014 11:56:10 +0000 (17:56 +0600)]
Ignore zero weighted markers in keyframe selection

It doesn't make sense to use zero-weighted tracks as a correspondences
in keyframe selection.

Such tracks are not guaranteed to be tracked accurately because their
purpose is to add reference points in 3D space without affecting the

7 years agoFix T38837: Ctrl+RMB can't select posemode
Campbell Barton [Wed, 26 Feb 2014 05:05:29 +0000 (16:05 +1100)]
Fix T38837: Ctrl+RMB can't select posemode

This used to work (unintentionally), now check for paint-select
modes as well as editmode for ctrl+rmb to force object selection.

7 years agoPaint API: add BKE_paint_select_elem_test: to check on paint selection
Campbell Barton [Wed, 26 Feb 2014 05:00:54 +0000 (16:00 +1100)]
Paint API: add BKE_paint_select_elem_test: to check on paint selection

7 years agoSculpt: allow to select objects when in sculpt mode
Campbell Barton [Wed, 26 Feb 2014 04:41:42 +0000 (15:41 +1100)]
Sculpt: allow to select objects when in sculpt mode

This was disabled with circle select (which makes sense), but all other
paint modes allow this and sculpt isnt using select mouse.

7 years agoWM: hide screen management and ndof operators from seach popup
Campbell Barton [Wed, 26 Feb 2014 02:48:41 +0000 (13:48 +1100)]
WM: hide screen management and ndof operators from seach popup

7 years agoFix for sequencer add operators showing up in spacebar search.
Campbell Barton [Wed, 26 Feb 2014 02:21:48 +0000 (13:21 +1100)]
Fix for sequencer add operators showing up in spacebar search.

7 years agoFix for constraint poll function succeeding when no constraint exists
Campbell Barton [Wed, 26 Feb 2014 02:09:58 +0000 (13:09 +1100)]
Fix for constraint poll function succeeding when no constraint exists

7 years agoFix T38548: Edit externally always uses first frame only
Sergey Sharybin [Tue, 25 Feb 2014 23:58:14 +0000 (10:58 +1100)]
Fix T38548: Edit externally always uses first frame only

7 years agoFix T38836: change screencast timer limits so you can record with higher FPS.
Brecht Van Lommel [Tue, 25 Feb 2014 18:25:44 +0000 (19:25 +0100)]
Fix T38836: change screencast timer limits so you can record with higher FPS.

Note that the screencast implementation is quite poor and that you may not even
get the requested FPS, the timing system here is not reliable.

7 years agoFurther work for fix T38804: unnecessary empty space in the modifier UI.
Brecht Van Lommel [Mon, 24 Feb 2014 21:01:58 +0000 (22:01 +0100)]
Further work for fix T38804: unnecessary empty space in the modifier UI.

7 years agoFix missing brackets in cpuid bitfield check.
Martijn Berger [Tue, 25 Feb 2014 18:50:53 +0000 (19:50 +0100)]
Fix missing brackets in cpuid bitfield check.
concern raised by lukas_t (rBef73d547cc7c663ad180721094c81b3c81482ac3)

7 years agoFix T38811: Cycles particle ids are inconsistent when using multiple particle systems.
Lukas Tönne [Tue, 25 Feb 2014 17:29:11 +0000 (18:29 +0100)]
Fix T38811: Cycles particle ids are inconsistent when using multiple particle systems.

Problem is that the particle systems in the cycles database are not
stored in a well-defined order. This means the particle_id for dupli
objects can not simply be assigned using a global running index during

Now the particle index is assigned locally for each particle system.
When transferring particle data to the device as a single texture, the
particle indices are offset based on the final order of particle systems
in the database.

Reviewers: brecht

Reviewed By: brecht

CC: Andreas80
Differential Revision:

7 years agoFix T38815
Martijn Berger [Tue, 25 Feb 2014 16:57:05 +0000 (17:57 +0100)]
Fix T38815

For AVX support we need to check both OS support and CPU support.

7 years agoFix T38827: Input preferences can not find Left Mouse or Left Arrow
Campbell Barton [Tue, 25 Feb 2014 13:35:00 +0000 (00:35 +1100)]
Fix T38827: Input preferences can not find Left Mouse or Left Arrow

7 years agoKeymap search: check 'key_modifier' as well as 'type'
Campbell Barton [Tue, 25 Feb 2014 13:13:20 +0000 (00:13 +1100)]
Keymap search: check 'key_modifier' as well as 'type'

7 years agoAssert for invalid customdata allocs
Campbell Barton [Tue, 25 Feb 2014 12:13:17 +0000 (23:13 +1100)]
Assert for invalid customdata allocs

7 years agoFix T38003: Skin modifier crash with long edges
Campbell Barton [Tue, 25 Feb 2014 12:01:50 +0000 (23:01 +1100)]
Fix T38003: Skin modifier crash with long edges

7 years agoDisable eager-refinement step of region tracking
Sergey Sharybin [Tue, 25 Feb 2014 10:54:34 +0000 (16:54 +0600)]
Disable eager-refinement step of region tracking

This gives much worse results on mango footage (see 04_2e)
so disabling for now for until proper prediction model is landed.

The thing is, currently blender sends input coordinates as the guess to
region tracker and in case of fast motion such an early out ruins the track.

7 years agoUI / 3D View: Fix Rigid Body panel, being closed per default.
Thomas Dinges [Tue, 25 Feb 2014 09:59:05 +0000 (10:59 +0100)]
UI / 3D View: Fix Rigid Body panel, being closed per default.

7 years agoFix T38824: curve which is constrained on a hidden layer causes cycles crash
Sergey Sharybin [Tue, 25 Feb 2014 09:44:39 +0000 (15:44 +0600)]
Fix T38824: curve which is constrained on a hidden layer causes cycles crash

Issue was caused by cycles setting scene frame which will update scene for
all the layers (not just visible ones) which confuses depsgraph making
objects which are needed as dependency are not really evaluated.

Made it so setting frame via scene.frame_set() which check whether update
need to be flushed to an invisible objects and do this if so.

Not ideal solution but seems to be safest at this point.

7 years agoFix T38773: Inconsistent conversion of colors and float values in
Lukas Tönne [Tue, 25 Feb 2014 09:11:48 +0000 (10:11 +0100)]
Fix T38773: Inconsistent conversion of colors and float values in
Blender Internal shader nodes.

All nodes now use the `nodestack_get_vec` function to convert whatever
input values are connected to the desired type, instead of using the
stack values directly regardless of what they contain.

Note that this might break old node setups that have been adapted to the
faulty behavior, but as discussed in the bug report the 2.70 version is
the right time to fix this.

7 years agoFix T38806: Proxy file changes don't update until Blender's restart
Sergey Sharybin [Tue, 25 Feb 2014 07:49:38 +0000 (13:49 +0600)]
Fix T38806: Proxy file changes don't update until Blender's restart

7 years agoObject disable negative object dimensions
Campbell Barton [Tue, 25 Feb 2014 07:31:50 +0000 (18:31 +1100)]
Object disable negative object dimensions

these would become positive on update

7 years agoFix T38745: Curve parent crash when rendering animation
Sergey Sharybin [Tue, 25 Feb 2014 07:15:59 +0000 (13:15 +0600)]
Fix T38745: Curve parent crash when rendering animation

Issue was caused by curve orco calculation for rendering being freed
curve path and not calculating it back.

This left depsgraph in a state that it believed all the object data
is up to date but in fact some parts of data was freed by convert

Now made it so path is not being freed by render thread. This is
rather a workaround actually because ideally render thread need
to use copy-on-write here or at least use local cache here. But
current logic should be closer to what was happening in previous

7 years agoFix T38778: Properties from bpy.props could be edited as custom props
Campbell Barton [Tue, 25 Feb 2014 06:01:46 +0000 (17:01 +1100)]
Fix T38778: Properties from bpy.props could be edited as custom props

7 years agoUse string escaping when renaming custom properties
Campbell Barton [Tue, 25 Feb 2014 05:49:14 +0000 (16:49 +1100)]
Use string escaping when renaming custom properties

7 years agoFix for custom property editor when property id's contained quotes
Campbell Barton [Tue, 25 Feb 2014 05:18:10 +0000 (16:18 +1100)]
Fix for custom property editor when property id's contained quotes

Adds bpy.utils.escape_identifier()

7 years agoFix text select offset /w zoomed UI & popups (colorpicker)
Campbell Barton [Tue, 25 Feb 2014 03:18:04 +0000 (14:18 +1100)]
Fix text select offset /w zoomed UI & popups (colorpicker)

7 years agoRevert "Fix T38819: Mark Seam misbehaves when accessed through spacebar search"
Campbell Barton [Tue, 25 Feb 2014 03:06:31 +0000 (14:06 +1100)]
Revert "Fix T38819: Mark Seam misbehaves when accessed through spacebar search"

This reverts commit d47d030275f14b1c1b7a35452f9b3c841ebeb178.

This isn't a bug.

7 years agoFix T38819: Mark Seam misbehaves when accessed through spacebar search
Dalai Felinto [Tue, 25 Feb 2014 01:48:46 +0000 (22:48 -0300)]
Fix T38819: Mark Seam misbehaves when accessed through spacebar search

7 years agoUI: remove number specific button offset when selecting text
Campbell Barton [Tue, 25 Feb 2014 01:42:17 +0000 (12:42 +1100)]
UI: remove number specific button offset when selecting text

7 years agoFix T38808: image opened with 'relative path', gets absolute path
Dalai Felinto [Tue, 25 Feb 2014 00:06:11 +0000 (11:06 +1100)]
Fix T38808: image opened with 'relative path', gets absolute path

7 years agoFix T38809: regression, text cursor offset in number buttons
Campbell Barton [Mon, 24 Feb 2014 23:28:41 +0000 (10:28 +1100)]
Fix T38809: regression, text cursor offset in number buttons

Use the same offset for all edit-buttons now.

7 years agoCycles Standalone: Tweak for d59f53f7b7da, use "closure color" as type name, to 100...
Thomas Dinges [Mon, 24 Feb 2014 22:59:27 +0000 (23:59 +0100)]
Cycles Standalone: Tweak for d59f53f7b7da, use "closure color" as type name, to 100% match the OSL data type.

7 years agoCMake: add _WIN32_WINNT MSVC define to match scons
Campbell Barton [Mon, 24 Feb 2014 22:56:55 +0000 (09:56 +1100)]
CMake: add _WIN32_WINNT MSVC define to match scons

7 years agoOn MSVC 2013 64 bit set the default to build a vista API targetted binary.
Martijn Berger [Mon, 24 Feb 2014 22:14:12 +0000 (23:14 +0100)]
On MSVC 2013 64 bit set the default to build a vista API targetted binary.

7 years agoCycles: Make CUDA aware of COMPUTE_50 (sm_50, Maxwell).
Thomas Dinges [Mon, 24 Feb 2014 20:47:45 +0000 (21:47 +0100)]
Cycles: Make CUDA aware of COMPUTE_50 (sm_50, Maxwell).

If you have a Maxwell GPU and want to test, you have to use the CUDA Toolkit 6.0(RC) and enable sm_50 in scons/cmake.

7 years agoPaint UI: Don't hide the custom icon path, just grey out.
Thomas Dinges [Mon, 24 Feb 2014 20:13:05 +0000 (21:13 +0100)]
Paint UI: Don't hide the custom icon path, just grey out.

This is what we do with boolean and sub-settings. We usually hide it when the options depend on a menu-enum.

7 years agoFix T38804: unnecessary empty space in the modifier UI.
Brecht Van Lommel [Mon, 24 Feb 2014 20:02:49 +0000 (21:02 +0100)]
Fix T38804: unnecessary empty space in the modifier UI.

7 years agoCode cleanup: Re-use Grease Pencil panel for 3D view as well.
Thomas Dinges [Mon, 24 Feb 2014 19:53:37 +0000 (20:53 +0100)]
Code cleanup: Re-use Grease Pencil panel for 3D view as well.

7 years agoFix T38813: missing color management in texture nodes preview.
Brecht Van Lommel [Mon, 24 Feb 2014 19:18:51 +0000 (20:18 +0100)]
Fix T38813: missing color management in texture nodes preview.

7 years agoFix T38810: ctrl + click panel collapse not taking tabs into account.
Brecht Van Lommel [Mon, 24 Feb 2014 18:52:34 +0000 (19:52 +0100)]
Fix T38810: ctrl + click panel collapse not taking tabs into account.

7 years agoFix T38812: color picker incorrectly cancelling operation when clicking next to it.
Brecht Van Lommel [Mon, 24 Feb 2014 18:47:48 +0000 (19:47 +0100)]
Fix T38812: color picker incorrectly cancelling operation when clicking next to it.

7 years agoTweak to T38766 fix: cycles now support setting viewport alpha for a material.
Brecht Van Lommel [Mon, 24 Feb 2014 18:05:07 +0000 (19:05 +0100)]
Tweak to T38766 fix: cycles now support setting viewport alpha for a material.

7 years agoFix misaligned alpha slider label in color picker.
Brecht Van Lommel [Mon, 24 Feb 2014 17:20:45 +0000 (18:20 +0100)]
Fix misaligned alpha slider label in color picker.

7 years agoFix T38801: Dupli objects with modifiers exhibit bad transform artifacts
Lukas Tönne [Mon, 24 Feb 2014 17:53:35 +0000 (18:53 +0100)]
Fix T38801: Dupli objects with modifiers exhibit bad transform artifacts
in Blender Internal renderer.

The BI renderer applies modifiers //after// changing the obmat of the
respective object (for the first instance it encounters). Before
rB6940bf0 the original obmat (omat) was stored inside dupli object data,
which was removed in favor of local omat variables due to hackishness
and redundancy. Problem with BI is that all the obmats have to be
overridden in relation to each other to produce the correct modifier
results (here: offset object for the array modifier).

The patch restores the old (messy) behavior for BI by first overriding
**all** the obmats at once from duplis, then creating render instances,
then cleaning up.

A better solution would be to avoid these modifier hacks in BI
altogether and properly evaluate them in the original object space, but
that requires far greater changes to the old code base, and is out of
scope for bugfixing.

7 years agoFix for MSVC 2008 compiler errors.
Tamito Kajiyama [Mon, 24 Feb 2014 16:16:52 +0000 (01:16 +0900)]
Fix for MSVC 2008 compiler errors.

7 years agoFix T38766: blender material transparency setting not taken into account for viewport.
Brecht Van Lommel [Mon, 24 Feb 2014 14:43:26 +0000 (15:43 +0100)]
Fix T38766: blender material transparency setting not taken into account for viewport.

7 years agoFix T38766: cycles viewport incorrectly taking blender internal alpha into account.
Brecht Van Lommel [Mon, 24 Feb 2014 14:35:26 +0000 (15:35 +0100)]
Fix T38766: cycles viewport incorrectly taking blender internal alpha into account.

7 years agoFix T38779: cycles SSS and object scale render issue.
Brecht Van Lommel [Mon, 24 Feb 2014 14:26:05 +0000 (15:26 +0100)]
Fix T38779: cycles SSS and object scale render issue.

7 years agoFollowup for 90a86fe: libmv/ceres cmake/scons files are automatically generated
Sergey Sharybin [Mon, 24 Feb 2014 14:12:17 +0000 (20:12 +0600)]
Followup for 90a86fe: libmv/ceres cmake/scons files are automatically generated

So don't forget to update generator scripts as well.

7 years agoFix T38784: smoothview using perspective transition with ortho camera
Campbell Barton [Mon, 24 Feb 2014 13:57:10 +0000 (00:57 +1100)]
Fix T38784: smoothview using perspective transition with ortho camera

7 years agoFix T38755: Crash when having cyclic dependency and curve deform
Sergey Sharybin [Mon, 24 Feb 2014 13:12:40 +0000 (19:12 +0600)]
Fix T38755: Crash when having cyclic dependency and curve deform

Issue was caused by undefined object update order and in some
cases NULL pointer will be de-referenced.

Added on-demand curve path calculation, just the same creepy call
of BKE_displist_make_curveTypes(). This violates DAG and might
end up in a difficult to troubleshoot race condition if there'll
be some issues with how dependencies are calculated in DAG, but
this is the easiest and safest way to solve the bug at this stage,

7 years agoFix T38798: Can get stuck in world nodes when switching from Cycles to
Lukas Tönne [Mon, 24 Feb 2014 12:21:43 +0000 (13:21 +0100)]
Fix T38798: Can get stuck in world nodes when switching from Cycles to

The shaderfrom setting in the node editor only makes sense for "new"
shading nodes (cycles), otherwise it should be ignored and default to

7 years agoFix T38794: ScaleFixedSizeOperation was not taking offset into account
Lukas Tönne [Mon, 24 Feb 2014 12:07:40 +0000 (13:07 +0100)]
Fix T38794: ScaleFixedSizeOperation was not taking offset into account
when calculating depending-area-of-interest.

7 years agoPreserve non-flat faces in boolean modifier
Sergey Sharybin [Mon, 24 Feb 2014 11:58:56 +0000 (17:58 +0600)]
Preserve non-flat faces in boolean modifier

This commit implements dissolving of edges which were used
to triangulate non-flat faces. This slows things down a bit
(around 5% on heave mesh with all faces triangulated).

We could improve speed of dissolve a bit here (so not a bell
to add an option for triangulation yet).

Also fixed wrong edge origindex mapping.

7 years agoImage: color grid - correct abs() use with ints
Campbell Barton [Mon, 24 Feb 2014 11:25:06 +0000 (22:25 +1100)]
Image: color grid - correct abs() use with ints

7 years agoOSX/scons: cp needs the targetdir to be created ( ditto does it itself ),
Jens Verwiebe [Mon, 24 Feb 2014 11:09:46 +0000 (12:09 +0100)]
OSX/scons: cp needs the targetdir to be created ( ditto does it itself ),
changing the order of commands let us use cp again

7 years agoSupport for generic OSL shader parameters in the Cycles standalone XML
Lukas Tönne [Mon, 24 Feb 2014 10:24:43 +0000 (11:24 +0100)]
Support for generic OSL shader parameters in the Cycles standalone XML

To make a generic OSL shader connectable to other nodes, the parameters
must be declared via "input" and "output" child elements:

  <osl_shader name="tex" src="./osl/stripes.osl">
    <input name="Stripes" type="int" />
    <output name="ColorOut" type="color" />

`name` must be the same as the OSL shader parameter name.
`type` must be one of float, int, color, vector, point, normal, closure,
       string (matching cycles socket types)

Beyond this the OSL script nodes then work just like all other nodes.

OSL parameter sockets can be connected to other cycles nodes:

  <connect from="checker color" to="tex Stripes" />
  <connect from="tex ColorOut" to="floor_closure color" />

They can set default values for the input sockets by attributes of the
main node element:

  <osl_shader name="tex" src="./osl/stripes.osl" Stripes="3" >
    <input name="Stripes" type="int" />
    <output name="ColorOut" type="color" />

This system of specifying custom attributes should probably be changed,
since it can easily create name conflicts and arbitrarily long elements.
But that is a different issue to be solved for all nodes in general.

7 years agoFix T38800: Setting UV projector caused zero user objects
Campbell Barton [Mon, 24 Feb 2014 10:34:09 +0000 (21:34 +1100)]
Fix T38800: Setting UV projector caused zero user objects

Don't change user count when setting modifier objects

7 years agoOSX: add debug mesg to bl_locale_pgettext for later indeep investigation
Jens Verwiebe [Mon, 24 Feb 2014 10:18:07 +0000 (11:18 +0100)]
OSX: add debug mesg to bl_locale_pgettext for later indeep investigation

7 years agoFix T38795: Mesh Analysis overhang faces show gray
Campbell Barton [Mon, 24 Feb 2014 08:53:44 +0000 (19:53 +1100)]
Fix T38795: Mesh Analysis overhang faces show gray

7 years agoFix T38756: Regression with vertex slide responding to mouse events
Campbell Barton [Mon, 24 Feb 2014 08:34:36 +0000 (19:34 +1100)]
Fix T38756: Regression with vertex slide responding to mouse events

7 years agoFix T38786: Curve unable to make segment
Campbell Barton [Mon, 24 Feb 2014 08:24:52 +0000 (19:24 +1100)]
Fix T38786: Curve unable to make segment

7 years agoFix for recent changes with NDOF
Campbell Barton [Mon, 24 Feb 2014 06:21:25 +0000 (17:21 +1100)]
Fix for recent changes with NDOF

7 years agoNDOF: various fixes for view3d
Campbell Barton [Mon, 24 Feb 2014 04:15:17 +0000 (15:15 +1100)]
NDOF: various fixes for view3d

- allow zooming when in ortho+user mode
- fix for using VIEW3D_OT_ndof_orbit_zoom when the camera is locked.
- fix for locked camera changing the dist value when used with ndof.
- de-duplicate ndof_pan_zoom and ndof_all operators

7 years agoNDOF: Auto-Depth preference was used while orbiting
Campbell Barton [Mon, 24 Feb 2014 01:53:31 +0000 (12:53 +1100)]
NDOF: Auto-Depth preference was used while orbiting

7 years agoNDOF: fix for use with locked offset
Campbell Barton [Mon, 24 Feb 2014 01:36:57 +0000 (12:36 +1100)]
NDOF: fix for use with locked offset

- when locked to cursor or object. fallback to orbit and allow zoom.
- correct speed calculation in perspective mode.