9 years agoBGE Docs: Adding some docs for some of the Steering Actuator attributes. I grabbed...
Mitchell Stokes [Fri, 23 Nov 2012 07:47:53 +0000 (07:47 +0000)]
BGE Docs: Adding some docs for some of the Steering Actuator attributes. I grabbed the docs from the UI descriptions from RNA for the Steering Actuator. However, these aren't the best descriptions, and both the UI descriptions and the docs could use some attention. Also, steeringVec and facingMode didn't have corresponding UI elements, so I've left them undocumented for now. Someone who knows what they do can hopefully document them.

9 years agocode cleanup: warning & style
Campbell Barton [Fri, 23 Nov 2012 06:35:06 +0000 (06:35 +0000)]
code cleanup: warning & style

9 years agoskip some redundant looping in bevel code.
Campbell Barton [Fri, 23 Nov 2012 06:09:03 +0000 (06:09 +0000)]
skip some redundant looping in bevel code.

9 years agofix for inset getting bad UV's/VCols at face boundaries.
Campbell Barton [Fri, 23 Nov 2012 05:49:00 +0000 (05:49 +0000)]
fix for inset getting bad UV's/VCols at face boundaries.

9 years agoBugfix [#29186] Object contribute to fluid sim animation start earlier than keyframe
Daniel Genrich [Fri, 23 Nov 2012 05:00:07 +0000 (05:00 +0000)]
Bugfix [#29186] Object contribute to fluid sim animation start earlier than keyframe

Also fix:
- Fluid simulation was always lagging 1 frame behind: E.g. the 250th frame in blender showed 249th frame of the fluid simulation.

- Animated enabled/disabled property only gets counted as "on" if value >= 1

Note that this bugfix should solve many problems with timings of animated fluid sim properties.

9 years agoFix bevel crash in OSX debug build.
Howard Trickey [Fri, 23 Nov 2012 03:15:16 +0000 (03:15 +0000)]
Fix bevel crash in OSX debug build.
Code to select from output slot moved before
EDBM_op_finish, which frees slot buffers.

9 years agofinal fix for Sensor Fit (AUTO, HOR, VERT) in panorama lens - patch by Brecht Van...
Dalai Felinto [Fri, 23 Nov 2012 02:10:13 +0000 (02:10 +0000)]
final fix for Sensor Fit (AUTO, HOR, VERT) in panorama lens - patch by Brecht Van Lommel and me

9 years agoBugfix [#33268] Crash when delete all or segment from curve with SplineIK
Joshua Leung [Thu, 22 Nov 2012 23:19:15 +0000 (23:19 +0000)]
Bugfix [#33268] Crash when delete all or segment from curve with SplineIK

Path rebuild may fail after certain editing operations. Instead of blindly
assuming that path rebuilds will always succeed, we now give up trying to
evaluate in case of failure.

9 years agoStyle: AnimData vars should be named "adt" NOT "ad"
Joshua Leung [Thu, 22 Nov 2012 22:58:01 +0000 (22:58 +0000)]
Style: AnimData vars should be named "adt" NOT "ad"

9 years agoBGE Docs: Adding docs for bge.logic.NextFrame() and bge.logic.PrintMemInfo() based...
Mitchell Stokes [Thu, 22 Nov 2012 22:38:31 +0000 (22:38 +0000)]
BGE Docs: Adding docs for bge.logic.NextFrame() and bge.logic.PrintMemInfo() based on their doc strings. There was also an :rtype: in the bge.logic.setExitKey() docs that should have been :type:.

9 years agoBGE Docs: Adding docs for KX_Scene.drawObstacleSimulation() based on its doc string.
Mitchell Stokes [Thu, 22 Nov 2012 22:25:12 +0000 (22:25 +0000)]
BGE Docs: Adding docs for KX_Scene.drawObstacleSimulation() based on its doc string.

9 years agoFix cycles OSL wrong reflection texture coordinate.
Brecht Van Lommel [Thu, 22 Nov 2012 22:24:34 +0000 (22:24 +0000)]
Fix cycles OSL wrong reflection texture coordinate.

9 years agoBGE Docs: Documenting missing Sound Actuator attributes based on RNA UI strings.
Mitchell Stokes [Thu, 22 Nov 2012 22:13:27 +0000 (22:13 +0000)]
BGE Docs: Documenting missing Sound Actuator attributes based on RNA UI strings.

9 years agoBGE Docs: Adding docs for the KX_GameObject.playAction() play_mode constants.
Mitchell Stokes [Thu, 22 Nov 2012 21:52:30 +0000 (21:52 +0000)]
BGE Docs: Adding docs for the KX_GameObject.playAction() play_mode constants.

9 years agoBGE Docs: Reordering the "Various" constants so they are in alphabetical order.
Mitchell Stokes [Thu, 22 Nov 2012 21:37:12 +0000 (21:37 +0000)]
BGE Docs: Reordering the "Various" constants so they are in alphabetical order.

9 years agoReverting previous buildbot commit - sm_13 still fails actually
Sergey Sharybin [Thu, 22 Nov 2012 17:22:08 +0000 (17:22 +0000)]
Reverting previous buildbot commit - sm_13 still fails actually

9 years agoFix #33265: editing uv vertex coordinates in panel could move hidden uv's.
Brecht Van Lommel [Thu, 22 Nov 2012 17:12:41 +0000 (17:12 +0000)]
Fix #33265: editing uv vertex coordinates in panel could move hidden uv's.

9 years agoBuildbot: enable sm_13 for 32bit linux
Sergey Sharybin [Thu, 22 Nov 2012 16:16:33 +0000 (16:16 +0000)]
Buildbot: enable sm_13 for 32bit linux

9 years agoCycles: disable anisotropic BSDF on CUDA sm 1.x, to try to get it building again.
Brecht Van Lommel [Thu, 22 Nov 2012 16:08:18 +0000 (16:08 +0000)]
Cycles: disable anisotropic BSDF on CUDA sm 1.x, to try to get it building again.

9 years agoSolved descriptors leak in OCIO module on windows
Sergey Sharybin [Thu, 22 Nov 2012 12:48:09 +0000 (12:48 +0000)]
Solved descriptors leak in OCIO module on windows

Seems was simply caused by wrong destructor used in processorRelease

9 years agoFix #33264: Array MOD First Last option does nothing
Sergey Sharybin [Thu, 22 Nov 2012 12:03:15 +0000 (12:03 +0000)]
Fix #33264: Array MOD First Last option does nothing

9 years agoTweak macbook trackpad version check, now assumes to be there for version >= 10.
Brecht Van Lommel [Thu, 22 Nov 2012 11:50:15 +0000 (11:50 +0000)]
Tweak macbook trackpad version check, now assumes to be there for version >= 10.

9 years agoFix for animation possible offset in sequencer.
Sergey Sharybin [Thu, 22 Nov 2012 11:45:52 +0000 (11:45 +0000)]
Fix for animation possible offset in sequencer.

BKE_scene_update_for_newframe should be called before RE_BlenderFrame in
seq_render_scene_strip. It's not entirely nice, but bot sure about better
solution for now.

9 years agoFix #33263: Sequencer Command Line Bugs
Sergey Sharybin [Thu, 22 Nov 2012 11:45:39 +0000 (11:45 +0000)]
Fix #33263: Sequencer Command Line Bugs

Was own regressions since recursive sequencer commit.

9 years agoFix #33185 correct now, forgot stringlength incrased
Jens Verwiebe [Thu, 22 Nov 2012 11:26:21 +0000 (11:26 +0000)]
Fix #33185 correct now, forgot stringlength incrased

9 years agoBGE Docs: Moving the KX_ArmatureSensor.type constant docs from bge.types.rst to bge...
Mitchell Stokes [Thu, 22 Nov 2012 11:09:42 +0000 (11:09 +0000)]
BGE Docs: Moving the KX_ArmatureSensor.type constant docs from bge.types.rst to bge.logic.rst where the rest of the constants docs are.

9 years agoBGE: KX_ACT_ARMATURE_SETINFLUENCE constant for BL_ArmatureActuator.type was documente...
Mitchell Stokes [Thu, 22 Nov 2012 11:03:17 +0000 (11:03 +0000)]
BGE: KX_ACT_ARMATURE_SETINFLUENCE constant for BL_ArmatureActuator.type was documented but not actually added to bge.logic.

9 years agominor speedup for bevel, avoid calling find_bevvert() when we know the edge isn't...
Campbell Barton [Thu, 22 Nov 2012 11:02:57 +0000 (11:02 +0000)]
minor speedup for bevel, avoid calling find_bevvert() when we know the edge isn't beveled.

9 years agoFix #33185 by taking new sysctl hw.model into accont
Jens Verwiebe [Thu, 22 Nov 2012 10:59:46 +0000 (10:59 +0000)]
Fix #33185 by taking new sysctl hw.model into accont

9 years agominor edit to console line adding, all callers have the console space, may as well...
Campbell Barton [Thu, 22 Nov 2012 09:57:38 +0000 (09:57 +0000)]
minor edit to console line adding, all callers have the console space, may as well pass it.

9 years agofix for clear line adjusting console selection.
Campbell Barton [Thu, 22 Nov 2012 09:49:56 +0000 (09:49 +0000)]
fix for clear line adjusting console selection.

9 years agoBGE Docs: Changing ROT_* Armature Channel constants in the docs to be ROT_MODE_*...
Mitchell Stokes [Thu, 22 Nov 2012 09:20:36 +0000 (09:20 +0000)]
BGE Docs: Changing ROT_* Armature Channel constants in the docs to be ROT_MODE_* to match the actual constants from bge.logic.

9 years agoBGE Docs: Fixing indentation.
Mitchell Stokes [Thu, 22 Nov 2012 09:12:21 +0000 (09:12 +0000)]
BGE Docs: Fixing indentation.

9 years agoavoid string -> unicode conversion when registering classes, also avoid unlikely...
Campbell Barton [Thu, 22 Nov 2012 08:45:32 +0000 (08:45 +0000)]
avoid string -> unicode conversion when registering classes, also avoid unlikely but possible crash if the py-class returns new instances of PyObjects it doesnt own when registering the class.

9 years agoindentation edits
Campbell Barton [Thu, 22 Nov 2012 08:30:54 +0000 (08:30 +0000)]
indentation edits

9 years agoBGE Docs: Adding some basic docs for the KX_STEERING_* constants. Right now just...
Mitchell Stokes [Thu, 22 Nov 2012 08:22:46 +0000 (08:22 +0000)]
BGE Docs: Adding some basic docs for the KX_STEERING_* constants. Right now just their names and values are in the docs, not what they actually do.

9 years agoBGE Docs: Moving the BL_ArmatureChannel.rotation_mode constant docs from bge.types...
Mitchell Stokes [Thu, 22 Nov 2012 08:16:30 +0000 (08:16 +0000)]
BGE Docs: Moving the BL_ArmatureChannel.rotation_mode constant docs from bge.types.rst to bge.logic.rst where the rest of the constants docs are.

9 years agoBGE Docs: Moving the BL_ArmatureConstraint constant docs from bge.types.rst to bge...
Mitchell Stokes [Thu, 22 Nov 2012 08:07:13 +0000 (08:07 +0000)]
BGE Docs: Moving the BL_ArmatureConstraint constant docs from bge.types.rst to bge.logic.rst with the rest of the constants docs are.

9 years agoBGE Docs: Adding RM_* mode constants from KX_NavMeshObject.draw()
Mitchell Stokes [Thu, 22 Nov 2012 08:01:02 +0000 (08:01 +0000)]
BGE Docs: Adding RM_* mode constants from KX_NavMeshObject.draw()

9 years agoMoving the Armature Actuator constant docs from bge.types.rst to bge.logic.rst with...
Mitchell Stokes [Thu, 22 Nov 2012 07:52:17 +0000 (07:52 +0000)]
Moving the Armature Actuator constant docs from bge.types.rst to bge.logic.rst with the rest of the constants docs are. Not only is this more consistent, but it also makes Campbell's script happier.

9 years agoSome KX_CONSTRAINTACT_* constants were incorrectly documented as KX_CONSTRAINT_*.
Mitchell Stokes [Thu, 22 Nov 2012 07:31:51 +0000 (07:31 +0000)]
Some KX_CONSTRAINTACT_* constants were incorrectly documented as KX_CONSTRAINT_*.

9 years agoAdding docs for KX_NavMeshObject based on doc strings found in KX_NavMeshObject.cpp.
Mitchell Stokes [Thu, 22 Nov 2012 07:24:00 +0000 (07:24 +0000)]
Adding docs for KX_NavMeshObject based on doc strings found in KX_NavMeshObject.cpp.

9 years agoBGE: KX_PhysicsObjectWrapper was not being used anywhere in the code base, but it...
Mitchell Stokes [Thu, 22 Nov 2012 07:08:02 +0000 (07:08 +0000)]
BGE: KX_PhysicsObjectWrapper was not being used anywhere in the code base, but it was being maintained (style, docs, name changes, etc), so I'm removing it.

9 years agoBGE: Removing some glIsEnabled() calls from DisableForText() in KX_BlenderGL.cpp...
Mitchell Stokes [Thu, 22 Nov 2012 06:11:05 +0000 (06:11 +0000)]
BGE: Removing some glIsEnabled() calls from DisableForText() in KX_BlenderGL.cpp. Use of glIsEnabled() is discouraged since it causes a potential sync with the graphics card. Also, it's faster to just always use glDisable() (even if that feature is already disabled) then to check if it's enabled first.

9 years agomore bge reference api docstrings, leaving KX_FontObject and KX_NavMeshObject as...
Campbell Barton [Thu, 22 Nov 2012 06:04:12 +0000 (06:04 +0000)]
more bge reference api docstrings, leaving KX_FontObject and KX_NavMeshObject as TODO.

9 years agobge camera axix actuator was undocumented and python had incorrect limits on this...
Campbell Barton [Thu, 22 Nov 2012 05:33:05 +0000 (05:33 +0000)]
bge camera axix actuator was undocumented and python had incorrect limits on this attribute.

9 years agomodify the python stub to include __file__ and __name__, also correct odd indent...
Campbell Barton [Thu, 22 Nov 2012 05:20:51 +0000 (05:20 +0000)]
modify the python stub to include __file__ and __name__, also correct odd indent in KX_KetsjiEngine.cpp

9 years agoadd missing bgl and gpu api docstrings (found using docstring completeness checker)
Campbell Barton [Thu, 22 Nov 2012 05:15:52 +0000 (05:15 +0000)]
add missing bgl and gpu api docstrings (found using docstring completeness checker)

9 years agofix own error - remove doubles slot name.
Campbell Barton [Thu, 22 Nov 2012 01:00:40 +0000 (01:00 +0000)]
fix own error - remove doubles slot name.

9 years agoFix 33149: LLVM caused startup crash on linux systems using Mesa llvmpipe.
Brecht Van Lommel [Wed, 21 Nov 2012 22:28:15 +0000 (22:28 +0000)]
Fix 33149: LLVM caused startup crash on linux systems using Mesa llvmpipe.
Now we hide the LLVM symbols with an ld version script to avoid conflicts.

9 years agoFix: Normal maps and triangulate modifier will give incorrect result on
Antony Riakiotakis [Wed, 21 Nov 2012 21:42:07 +0000 (21:42 +0000)]
Fix: Normal maps and triangulate modifier will give incorrect result on
rectangular faces after applying rotation, reported by Metalliandi

This issue is caused by floating point precision error. After applying
rotation, the edge lengths change slightly and on rectangular faces the
length comparison can be flipped. Solved by giving a slight offset to
the length calculation for the diagonal during triangulation
calculation. (Same as done during uv unwrapping)

9 years agocamera sensor ui fix: grey out values when not affecting camera
Dalai Felinto [Wed, 21 Nov 2012 19:08:27 +0000 (19:08 +0000)]
camera sensor ui fix: grey out values when not affecting camera
reviewed by Thomas Dinges (DingTo)

9 years agoFix two stupid mistakes... Btw, osl now compiles with Fedora17, once llvm-3.1 has...
Bastien Montagne [Wed, 21 Nov 2012 15:42:12 +0000 (15:42 +0000)]
Fix two stupid mistakes... Btw, osl now compiles with Fedora17, once llvm-3.1 has been compiled! ;)

9 years agoFixes for OS X default locale: use pclose and do error checking for file read.
Brecht Van Lommel [Wed, 21 Nov 2012 15:14:19 +0000 (15:14 +0000)]
Fixes for OS X default locale: use pclose and do error checking for file read.

9 years agoOSX/locale: moved command up, so errorchecking also happens
Jens Verwiebe [Wed, 21 Nov 2012 14:29:34 +0000 (14:29 +0000)]
OSX/locale: moved command up, so errorchecking also happens

9 years agoOSX/locale: workaround to get osx system locale from user defaults
Jens Verwiebe [Wed, 21 Nov 2012 13:54:54 +0000 (13:54 +0000)]
OSX/locale: workaround to get osx system locale from user defaults

9 years agoStyle cleanup: mixed tabs/spaces were used for indentation in osl_closures.h
Sergey Sharybin [Wed, 21 Nov 2012 13:45:37 +0000 (13:45 +0000)]
Style cleanup: mixed tabs/spaces were used for indentation in osl_closures.h

9 years agoCycles: solve -Wmissing-declarations for osl kernel
Sergey Sharybin [Wed, 21 Nov 2012 13:41:47 +0000 (13:41 +0000)]
Cycles: solve -Wmissing-declarations for osl kernel

9 years agofix [#29633] Mirror-Y also flips Z axis
Campbell Barton [Wed, 21 Nov 2012 13:39:32 +0000 (13:39 +0000)]
fix [#29633] Mirror-Y also flips Z axis
Was floating point precision error (FLT_EPSILON was too small).

9 years agoFix #33257: cycles camera clipping did not work through transparent objects.
Brecht Van Lommel [Wed, 21 Nov 2012 13:22:24 +0000 (13:22 +0000)]
Fix #33257: cycles camera clipping did not work through transparent objects.

9 years agoEnable llvm building for fedora too.
Bastien Montagne [Wed, 21 Nov 2012 13:13:50 +0000 (13:13 +0000)]
Enable llvm building for fedora too.

Unfortunately, this does not solve OSL compile problem in this distro (still the same errors, looks related to gnu c++... :/).

9 years agobevel: fix bug where constructed where parallel test
Howard Trickey [Wed, 21 Nov 2012 13:07:03 +0000 (13:07 +0000)]
bevel: fix bug where constructed where parallel test
didn't work (angle check too sensitive). Caused some
(nan,nan,nan) results from offset_in_two_planes.

9 years agoFix #33256: cycles Z pass for orthographic camera was not right, now is more
Brecht Van Lommel [Wed, 21 Nov 2012 13:00:57 +0000 (13:00 +0000)]
Fix #33256: cycles Z pass for orthographic camera was not right, now is more
useful for e.g. fog in compositing.

9 years agoFix #32796: cycles did not support image auto refresh option.
Brecht Van Lommel [Wed, 21 Nov 2012 13:00:51 +0000 (13:00 +0000)]
Fix #32796: cycles did not support image auto refresh option.

9 years agoPatch #33242: ffmpeg AAC/AC3 encoding
Sergey Sharybin [Wed, 21 Nov 2012 11:57:35 +0000 (11:57 +0000)]
Patch #33242: ffmpeg AAC/AC3 encoding

Patch by David M (erwin94), thanks!

Also made Vorbis codec using float sample_fmt, otherwise it didn't work
with new FFmpeg.

Perhaps we can make it more clear by explicitly separating audio_input_buffer
for float and integer buffers, but as far as it works i'm not so fussed about
this atm.

9 years agoFix #33222: When rendering DPX it's flipped in the Image Editor
Sergey Sharybin [Wed, 21 Nov 2012 11:10:37 +0000 (11:10 +0000)]
Fix #33222: When rendering DPX it's flipped in the Image Editor

Avoid using IMB_flipy from image save callback. It will use a bit more
memory but wold be thread-safe.

9 years agoenable edge draw by default for new edges,
Campbell Barton [Wed, 21 Nov 2012 10:57:45 +0000 (10:57 +0000)]
enable edge draw by default for new edges,
alternate fix for [#33217] Mirror Modifier not showing "Shadow" mesh in wireframe view

9 years agorevert r52399, fix for [#33217], will look into a different fix
Campbell Barton [Wed, 21 Nov 2012 10:53:15 +0000 (10:53 +0000)]
revert r52399, fix for [#33217], will look into a different fix

9 years agofix for re->partx/re->party values being different for RE_Database_FromScene() then...
Campbell Barton [Wed, 21 Nov 2012 10:20:38 +0000 (10:20 +0000)]
fix for re->partx/re->party values being different for RE_Database_FromScene() then the main render loop.

9 years agoFix #33252: VSE preview displays wrong color space
Sergey Sharybin [Wed, 21 Nov 2012 10:13:52 +0000 (10:13 +0000)]
Fix #33252: VSE preview displays wrong color space

Early output was not setting image buffer float color space

9 years agoWhen the File Output node exits early in convertToOperations (in case not rendering...
Lukas Toenne [Wed, 21 Nov 2012 10:09:51 +0000 (10:09 +0000)]
When the File Output node exits early in convertToOperations (in case not rendering), it should still unlink all inputs to avoid debug assert failure that checks for remaining Node connections (debug_check_node_connections).

9 years agoPrevent division by zero in tiles size versioning code when mixing
Sergey Sharybin [Wed, 21 Nov 2012 09:58:44 +0000 (09:58 +0000)]
Prevent division by zero in tiles size versioning code when mixing
using current trunk and previous release.

9 years agoFix #33253: VSE preview doesn't display compositor
Sergey Sharybin [Wed, 21 Nov 2012 09:36:36 +0000 (09:36 +0000)]
Fix #33253: VSE preview doesn't display compositor

There were two issues in scene strip rendering:

- It will skip rendering if scene doesn't have camera but uses compositor
- G.is_break will cancel preview rendering

Also removed Use Sequencer from scene's strip settings, it's not supported.

9 years agoFix for debug assert failure with Reroute nodes in compositor. After redirecting...
Lukas Toenne [Wed, 21 Nov 2012 09:32:40 +0000 (09:32 +0000)]
Fix for debug assert failure with Reroute nodes in compositor. After redirecting links from the reroute output the input must be completely unlinked, otherwise the debug_check_node_connections will complain (this is a sanity check that ensures all the original Nodes have been fully reconnected to Operations).

9 years agoBring SUSE target to the same level as others.
Bastien Montagne [Wed, 21 Nov 2012 09:01:49 +0000 (09:01 +0000)]
Bring SUSE target to the same level as others.

Also add compile_LLVM func, needed by openSuse (which llvm package is
completly broken), and probably can help for OSL in Fedora17 too (will test soon).

9 years agochanges to startup.blend
Campbell Barton [Wed, 21 Nov 2012 08:59:25 +0000 (08:59 +0000)]
changes to startup.blend
- Set render tile size to 64x64 pixels
- Set default lamp area size to 0.1 (see commit 52012)

9 years agoMore LLVM work (now always search llvm-config into LLVM_DIRECTORY when
Bastien Montagne [Wed, 21 Nov 2012 08:59:20 +0000 (08:59 +0000)]
More LLVM work (now always search llvm-config into LLVM_DIRECTORY when

9 years agodoc corrections and add bge.types.KX_ArmatureSensor
Campbell Barton [Wed, 21 Nov 2012 08:53:04 +0000 (08:53 +0000)]
doc corrections and add bge.types.KX_ArmatureSensor

9 years agoscripts to report missing py reference api docs. (simple RST parse and compare with...
Campbell Barton [Wed, 21 Nov 2012 07:40:46 +0000 (07:40 +0000)]
scripts to report missing py reference api docs. (simple RST parse and compare with python)

9 years agoFix for #33250: animation player shortcut keys not working on OS X.
Brecht Van Lommel [Wed, 21 Nov 2012 03:33:49 +0000 (03:33 +0000)]
Fix for #33250: animation player shortcut keys not working on OS X.

9 years agoFix #33241: can't exit edit mode when object gets hidden via animation.
Brecht Van Lommel [Wed, 21 Nov 2012 03:33:34 +0000 (03:33 +0000)]
Fix #33241: can't exit edit mode when object gets hidden via animation.

9 years agopy api cleanup, replace use...
Campbell Barton [Wed, 21 Nov 2012 02:28:36 +0000 (02:28 +0000)]
py api cleanup, replace use...
- PyLong_FromSsize_t --> PyLong_FromLong
- PyLong_AsSsize_t --> PyLong_AsLong

In all places except for those where python api expects PySsize_t (index lookups mainly).

- use PyBool_FromLong in a few areas of the BGE.
- fix incorrect assumption in the BGE that PySequence_Check() means PySequence_Fast_ functions can be used.

9 years agoChange edge loop select and edge ring select to be consistent with
Nathan Vegdahl [Wed, 21 Nov 2012 01:51:31 +0000 (01:51 +0000)]
Change edge loop select and edge ring select to be consistent with
other selection operators.  Instead of having only a single "extend"
option which causes the selection to toggle, there are now
three options:
- extend: adds to selection
- deselect: removes from selection
- toggle: toggles the selection

The default keymap is adjusted to have identical behavior as before,
using these new options, so end-users shouldn't experience any

9 years agoCycles bugfix: AUTO wasn't working for Equisolid Fisheye lens
Dalai Felinto [Wed, 21 Nov 2012 01:07:30 +0000 (01:07 +0000)]
Cycles bugfix: AUTO wasn't working for Equisolid Fisheye lens
Now one no longer needs to match the sensor dimensions with the render dimensions manually.

IMPORTANT NOTE: if you were using AUTO before with mismathing sensor aspect ratio (comparing to the render dimensions)
this will change your render! We can doversion this, but apart from Tube project I don't know if anyone else
is using this yet (part due to this bug and the only recently fixed 3dview preview aspect ratio).

That should help more artists to take advantage of this fantastic Blender feature.
It still helps to know the parameters of kwnown cameras/lens though.
For example:

Nikon DX2S with a 10.5mm fisheye can be set with:
Render resolution: 4288 x 2848
Sensor 23.7 x 15.70 (15.70 can be ommitted if AUTO is used as fit method)

Note: some cameras render different sizes according to the recording mode.
For example, a Red Scarlet in 5k (@12 fps) can render a full circular fisheye with a sigma 4.5 lens.
The same camera in the 30fps recording mode renders 4k in a cropped circular image.
So it's not only the resolution that changes, but the actual sensor been used.

So just keep in mind that the more information you have from the camera/lens you want to emulate the better.
Bug found at/patch written as a follow up of the BlenderPRO2012, patch reviewed by Brecht Van Lommel

9 years agoFix #33158: motion vector pass wrong in cycles in some scenes, wrong vectors
Brecht Van Lommel [Wed, 21 Nov 2012 01:00:03 +0000 (01:00 +0000)]
Fix #33158: motion vector pass wrong in cycles in some scenes, wrong vectors
due to float precision problem in matrix inverse.

9 years agopy api: BMesh.from_object() was using the derivedFinal, which isn't always available...
Campbell Barton [Wed, 21 Nov 2012 00:31:47 +0000 (00:31 +0000)]
py api: BMesh.from_object() was using the derivedFinal, which isn't always available - or may not have UV data if in the wireframe view.

update the function to calculate the derived mesh with bmesh data-mask each time.

resolves bug [#33205] Bmesh "from_object" gives "no usable mesh data".

also found 'mesh_build_data' could run with non mesh objects and fail silently - add an assert.

9 years agoDebug value in degrees (under parenthesis) for rotation driver variables
Dalai Felinto [Tue, 20 Nov 2012 23:35:03 +0000 (23:35 +0000)]
Debug value in degrees (under parenthesis) for rotation driver variables
Specifically the Rotational Difference and XYZ Rotation Transform Channel

Feature requested during BlenderPRO 2012 (Brazilian Blender Conference)
and coded during my flight back :)

Reviewed by Joshua Leung(Aligorith)

9 years agofix for missing bmesh operator flags when selecting linked (caused by own recent...
Campbell Barton [Tue, 20 Nov 2012 20:45:04 +0000 (20:45 +0000)]
fix for missing bmesh operator flags when selecting linked (caused by own recent commits)

9 years agoFix #33227: custom keymap syncing didn't work well always when adding/removing
Brecht Van Lommel [Tue, 20 Nov 2012 19:44:20 +0000 (19:44 +0000)]
Fix #33227: custom keymap syncing didn't work well always when adding/removing
properties from operator, now it compares at RNA rather than ID property level,
which is more accurate.

9 years agoFix #33177: OSL render difference with missing textures and HSV nodes.
Brecht Van Lommel [Tue, 20 Nov 2012 17:40:21 +0000 (17:40 +0000)]
Fix #33177: OSL render difference with missing textures and HSV nodes.

9 years agoFix cycles OSL missing support for texture mapping paramaters found in texture
Brecht Van Lommel [Tue, 20 Nov 2012 17:40:10 +0000 (17:40 +0000)]
Fix cycles OSL missing support for texture mapping paramaters found in texture
properties tab.

9 years agoFix #33243: cycles CUDA going missing sometimes, disabled the new code now that
Brecht Van Lommel [Tue, 20 Nov 2012 17:39:56 +0000 (17:39 +0000)]
Fix #33243: cycles CUDA going missing sometimes, disabled the new code now that
can detect if a device becomes available while Blender runs, appears to be
unreliable for some reason.

9 years agocode cleanup: comment unused members of bmesh operator slots and some osl style edits.
Campbell Barton [Tue, 20 Nov 2012 14:31:58 +0000 (14:31 +0000)]
code cleanup: comment unused members of bmesh operator slots and some osl style edits.

9 years agoFix [#33239] Cycles OSL : Environment Texture Rotation Incorrect:
Thomas Dinges [Tue, 20 Nov 2012 14:18:56 +0000 (14:18 +0000)]
Fix [#33239] Cycles OSL : Environment Texture Rotation Incorrect:
* Projection mappings were not implemented yet.

9 years agobmesh operator api:
Campbell Barton [Tue, 20 Nov 2012 13:29:27 +0000 (13:29 +0000)]
bmesh operator api:
avoid per vert/edge/face string lookups in BMO_slot_map_* functions --- used in array modifier, subdivide, remove doubles and other tools.

9 years agoMotion tracking: dump mask image when dump images is enabled
Sergey Sharybin [Tue, 20 Nov 2012 12:54:28 +0000 (12:54 +0000)]
Motion tracking: dump mask image when dump images is enabled

This is pure development option which is enabled by defining DUMP_FAILURE
or DUMP_ALWAYS libmv-capi.

9 years agoSupport for type callbacks on IDProperty pointers. Before this the type of the type...
Lukas Toenne [Tue, 20 Nov 2012 12:25:28 +0000 (12:25 +0000)]
Support for type callbacks on IDProperty pointers. Before this the type of the type of a PropertyGroup pointer would be fixed to the default RNA type. This is fine in most cases, but it may be necessary to define the property group subtype dynamically in some cases. Now the returned RNA pointer uses the typef callback if it exists.

9 years agoText editor: fix for line spacing with word wrap enabled
Sergey Sharybin [Tue, 20 Nov 2012 12:10:54 +0000 (12:10 +0000)]
Text editor: fix for line spacing with word wrap enabled

9 years agoMotion tracking: fixed View Selection operator in cases pixel aspect != 1
Sergey Sharybin [Tue, 20 Nov 2012 11:44:55 +0000 (11:44 +0000)]
Motion tracking: fixed View Selection operator in cases pixel aspect != 1

This could break old files a little bit -- clip view could be offset/zoomed
in comparison with previous releases in pixel aspect != 1.

9 years agoFix for add plane operator broken since recent code cleanup
Sergey Sharybin [Tue, 20 Nov 2012 10:43:11 +0000 (10:43 +0000)]
Fix for add plane operator broken since recent code cleanup