blender-staging.git
6 years agobugfix: [#36641] Maya keymap: Border select doesn't add to selection
Dalai Felinto [Wed, 18 Sep 2013 19:55:48 +0000 (19:55 +0000)]
bugfix: [#36641] Maya keymap: Border select doesn't add to selection

I also replaced all EVT_TWEAK_L by EVT_TWEAK_S
- and replaced B by the gesture mouse for the clip keymaps

6 years agoFix warnings message on load about packed images:
Brecht Van Lommel [Wed, 18 Sep 2013 19:35:13 +0000 (19:35 +0000)]
Fix warnings message on load about packed images:
ERROR: Image not available. Keeping packed image

This was due to recent bugfix for #36639, the image should only be reloaded if
the path actually changed and it's not a packed file.

6 years agoFix memory leak that still existed when opening .blend file mesh data in older
Brecht Van Lommel [Wed, 18 Sep 2013 18:55:12 +0000 (18:55 +0000)]
Fix memory leak that still existed when opening .blend file mesh data in older
Blender versions, previous fix only solved it for newer versions.

Fix a memory leak in packed files.

6 years agoFix #36754: animation not evaluated on object two levels down in dupligroups.
Brecht Van Lommel [Wed, 18 Sep 2013 17:09:28 +0000 (17:09 +0000)]
Fix #36754: animation not evaluated on object two levels down in dupligroups.
Depsgraph would only consider one level, now it works recursive.

6 years agoUVProject modifier was still requiring old tesselated UV data instead of new poly...
Bastien Montagne [Wed, 18 Sep 2013 15:48:24 +0000 (15:48 +0000)]
UVProject modifier was still requiring old tesselated UV data instead of new poly/loop ones.

6 years agofixes for python api docs.
Campbell Barton [Wed, 18 Sep 2013 05:20:43 +0000 (05:20 +0000)]
fixes for python api docs.
also move foreach_get/set examples into their own py example files (prefer not to have example code built into blenders binary).

6 years agofix for missing attribute is_argument_optional when generating docs.
Campbell Barton [Wed, 18 Sep 2013 04:32:29 +0000 (04:32 +0000)]
fix for missing attribute is_argument_optional when generating docs.
also use __slots__ for classes.

6 years agofix relating to bug [#36758],
Campbell Barton [Wed, 18 Sep 2013 01:22:28 +0000 (01:22 +0000)]
fix relating to bug [#36758],
When printing operator reports, ommit unset properties.
This is needed because in some cases operators check if a value is set or not, so filling in default arguments may change behavior.

6 years agofix [#36758] Add Group Instance crash
Campbell Barton [Wed, 18 Sep 2013 00:28:23 +0000 (00:28 +0000)]
fix [#36758] Add Group Instance crash

6 years agostyle cleanup
Campbell Barton [Wed, 18 Sep 2013 00:07:17 +0000 (00:07 +0000)]
style cleanup

6 years agofix [#36211] bridge edge loops joining vertecies that are far away
Campbell Barton [Tue, 17 Sep 2013 23:23:32 +0000 (23:23 +0000)]
fix [#36211] bridge edge loops joining vertecies that are far away

for bridge use a different beautify method when edge loops have non-matching loop count (simple face-angle comparison).

6 years agocomments and more logical var names for bm_edge_calc_rotate_beauty(), (make it easier...
Campbell Barton [Tue, 17 Sep 2013 22:48:08 +0000 (22:48 +0000)]
comments and more logical var names for bm_edge_calc_rotate_beauty(), (make it easier to see whats going on)

6 years agoBGE: Fixing a typo in the collision API that was found by agoose77.
Mitchell Stokes [Tue, 17 Sep 2013 21:00:19 +0000 (21:00 +0000)]
BGE: Fixing a typo in the collision API that was found by agoose77.

6 years agobugfix: [#34663] Cannot rotate view while using Knife tool with Maya preset
Dalai Felinto [Tue, 17 Sep 2013 20:35:17 +0000 (20:35 +0000)]
bugfix: [#34663] Cannot rotate view while using Knife tool with Maya preset

fix as suggested by Ton Roosendaal in tracker:
"the knife tool has a "MODE_PANNING" state, it could be nice to set this
in the modal map as well, to define the shortcut(s) that have to be passed on."

6 years agobugfix [#36757] Vertex coloring in preview window meshes default to black, makes...
Dalai Felinto [Tue, 17 Sep 2013 20:11:02 +0000 (20:11 +0000)]
bugfix [#36757] Vertex coloring in preview window meshes default to black, makes preview useless

Adding 'Col' vertex color layer to preview cycles meshes

The artist could simply disconnect the VCol node from the nodetree for
the preview, but  it should be harmless to add this to the preview meshes.

As long as the user stick to the default vertex color name (and is happy
with seing a all-white channel) it should be ok.

6 years agoFix crash with recently added remove_on_cancel transform property, and hide this
Brecht Van Lommel [Tue, 17 Sep 2013 16:12:05 +0000 (16:12 +0000)]
Fix crash with recently added remove_on_cancel transform property, and hide this
property in the user interface.

6 years agoadd support for trackpad navigation while in knife operator
Dalai Felinto [Tue, 17 Sep 2013 15:20:44 +0000 (15:20 +0000)]
add support for trackpad navigation while in knife operator

I caught this while looking at:
[#34663] Cannot rotate view while using Knife tool with Maya preset

(though it's not the original report).
I'll look at the other operators, there are probably a few in the same
situation as knife.

6 years agoFix #36750: windows crash with empty cycles scene, can't do &references[0] with
Brecht Van Lommel [Tue, 17 Sep 2013 15:03:01 +0000 (15:03 +0000)]
Fix #36750: windows crash with empty cycles scene, can't do &references[0] with
MSVC when references is an empty vector.

6 years agoFix #36718: Wrong lighting on text objects
Sergey Sharybin [Tue, 17 Sep 2013 14:20:00 +0000 (14:20 +0000)]
Fix #36718: Wrong lighting on text objects

In fact, all curve objects were flipped in GLSL mode.
This is because of the way how normals are calculated
for them (inwards vs. outwards).

We might want to make normals consistent all over, but
that would be the bigger change. For ow just made some
tweaks to OpenGL setup.

Thanks Brecht for the review and tests!

6 years agoUpdate foreach_get/_set doc.
Bastien Montagne [Tue, 17 Sep 2013 14:02:13 +0000 (14:02 +0000)]
Update foreach_get/_set doc.

6 years agoFix #36741: cycles AO pass giving values > 1.0 with transparency.
Brecht Van Lommel [Tue, 17 Sep 2013 13:22:42 +0000 (13:22 +0000)]
Fix #36741: cycles AO pass giving values > 1.0 with transparency.

6 years agoFix for #36739: Delete new nodes added via the Add menu or toolbar if the subsequent...
Lukas Toenne [Tue, 17 Sep 2013 13:07:48 +0000 (13:07 +0000)]
Fix for #36739: Delete new nodes added via the Add menu or toolbar if the subsequent transform operator is cancelled. This prevents ugly situations where nodes stick "under" the toolbar after clicking a
wrong button.

Works by adding a flag to transform operators "remove_on_cancel". This is currently only used for node transforms, the idea is that if set, the operator will remove the transformed elements when it is
cancelled. It's not possible to do that in the original NODE_OT_add_node operator, because transform is modal and there is no way of reacting to a cancel outside of the transform itself (previous attempt
used a macro operator, but that also doesn't work because subsequent operators don't get executed if the previous transform cancels).

6 years agoFix #36748 Sculpting/image painting does not respect undo steps limit.
Antony Riakiotakis [Tue, 17 Sep 2013 12:11:00 +0000 (12:11 +0000)]
Fix #36748 Sculpting/image painting does not respect undo steps limit.

A simple oversight here, it should work as intended now.

Nice to have it functional for people who might hate dyntopo undo with a
passion.

6 years agoFix py/numpy build under Suse, and minor other fixes/enhancements.
Bastien Montagne [Tue, 17 Sep 2013 11:01:52 +0000 (11:01 +0000)]
Fix py/numpy build under Suse, and minor other fixes/enhancements.
Also switch to python3.3.2

6 years agoFix #36747: curve bevel and extrude issue
Sergey Sharybin [Tue, 17 Sep 2013 11:00:09 +0000 (11:00 +0000)]
Fix #36747: curve bevel and extrude issue

Was a small mistake in bevel list optimization,
no need to check whether first/last points are
the same coord if curve is not cyclic.

6 years agoSomplify one-liner for CPU cores detection and make it aware of multi-CPU computers
Sergey Sharybin [Tue, 17 Sep 2013 09:17:10 +0000 (09:17 +0000)]
Somplify one-liner for CPU cores detection and make it aware of multi-CPU computers

6 years agoSetting keyframe is now possible for tracks which doesn't have marker at current...
Sergey Sharybin [Tue, 17 Sep 2013 08:58:12 +0000 (08:58 +0000)]
Setting keyframe is now possible for tracks which doesn't have marker at current frame

6 years agoRe-track the plane after clearing the keyframe
Sergey Sharybin [Tue, 17 Sep 2013 08:54:10 +0000 (08:54 +0000)]
Re-track the plane after clearing the keyframe

From the math point of view there're two cases:

- Clearing the keyframe between two other ones.

  In this case tracker will first track plane from
  left keyframe to right one without doing any kind
  of blending. This will make plane stick to the
  actual plane motion, but lead to possible jump
  at the right keyframe.

  Second step is to track from the right keyframe
  to the left one with blending. This gives nice
  transition at the point of second keyframe and
  this mimics situation when you've been setting
  keyframes from left to right.

- Clearing left-most/right-most keyframe.

  In this case it's enough to only re-track the
  plane without blending from the neighbor keyframe
  without blending.

6 years agoMuted footage in MCE still was reading the frames from disk
Sergey Sharybin [Tue, 17 Sep 2013 08:43:35 +0000 (08:43 +0000)]
Muted footage in MCE still was reading the frames from disk

Wasn't so much great from speed point of view.

6 years agofix [#36246] Weight tools do not mirror properly in vertex selection mask mode.
Campbell Barton [Tue, 17 Sep 2013 07:03:13 +0000 (07:03 +0000)]
fix [#36246] Weight tools do not mirror properly in vertex selection mask mode.

Weight mirror is now supported by invert/clean/levels/blend.

6 years agovertex group blend, support for blending multiple groups at once.
Campbell Barton [Tue, 17 Sep 2013 06:47:47 +0000 (06:47 +0000)]
vertex group blend, support for blending multiple groups at once.

6 years agominor renaming (adding related functions in future commits).
Campbell Barton [Tue, 17 Sep 2013 04:19:45 +0000 (04:19 +0000)]
minor renaming (adding related functions in future commits).

6 years agoadd unused hair bsdf glsl callback function to register_node_type_sh_bsdf_hair()
Campbell Barton [Tue, 17 Sep 2013 00:24:46 +0000 (00:24 +0000)]
add unused hair bsdf glsl callback function to register_node_type_sh_bsdf_hair()

6 years agoFix #36731: border render not updating properly with persistent images
Brecht Van Lommel [Mon, 16 Sep 2013 21:20:21 +0000 (21:20 +0000)]
Fix #36731: border render not updating properly with persistent images
setting enabled in cycles.

6 years agoFix #36738: object ray visibility flags not working in cycles viewport if there
Brecht Van Lommel [Mon, 16 Sep 2013 21:05:43 +0000 (21:05 +0000)]
Fix #36738: object ray visibility flags not working in cycles viewport if there
is only a single object in the scene.

6 years agoFix #36725: mismatch between viewport and render result when no world is linked
Brecht Van Lommel [Mon, 16 Sep 2013 21:05:42 +0000 (21:05 +0000)]
Fix #36725: mismatch between viewport and render result when no world is linked
to the scene in cycles.

6 years agoFix wrong temporary path in user preferences, revert startup.blend and instead
Brecht Van Lommel [Mon, 16 Sep 2013 21:05:39 +0000 (21:05 +0000)]
Fix wrong temporary path in user preferences, revert startup.blend and instead
do the freestyle changes in BLO_update_defaults_startup_blend.

6 years agoFix [#36742] Pasting image into text editor causes freeze
Bastien Montagne [Mon, 16 Sep 2013 18:14:04 +0000 (18:14 +0000)]
Fix [#36742] Pasting image into text editor causes freeze

Last fallback (XCLIB_XCOUT_FALLBACK_TEXT) was not checked, hence infinitly looping...

6 years agoGrrr, forgot to update getopt command for updated args...
Bastien Montagne [Mon, 16 Sep 2013 15:48:37 +0000 (15:48 +0000)]
Grrr, forgot to update getopt command for updated args...

6 years agoCode cleanup / Cycles:
Thomas Dinges [Mon, 16 Sep 2013 15:40:50 +0000 (15:40 +0000)]
Code cleanup / Cycles:
* Avoid some duplicated code for switch/case in the Attribute code.

6 years agoCycles / Hair:
Thomas Dinges [Mon, 16 Sep 2013 15:34:31 +0000 (15:34 +0000)]
Cycles / Hair:
* Hair rendering is now a supported feature, no further need to change the feature set to "Experimental".

6 years agobugfix [#36736] You can still transform objects while navigating view
Dalai Felinto [Mon, 16 Sep 2013 15:33:28 +0000 (15:33 +0000)]
bugfix [#36736] You can still transform objects while navigating view

Bug was in maya preset.
view3d.manipulator was defined twice, and it was taken precedent over view3d.rotate

6 years agoAdd --required-numpy to force compilation of both py3.3 and numpy1.7 in case you...
Bastien Montagne [Mon, 16 Sep 2013 15:22:10 +0000 (15:22 +0000)]
Add --required-numpy to force compilation of both py3.3 and numpy1.7 in case you really need numpy and 1.7 is not available!

6 years agoMaking install_deps.sh correctly see hyperthreading
Daniel Salazar [Mon, 16 Sep 2013 14:38:33 +0000 (14:38 +0000)]
Making install_deps.sh correctly see hyperthreading

6 years agopartial bugfix: [#36501] Blenderplayer can not change video resolution in Mac OSX
Dalai Felinto [Mon, 16 Sep 2013 13:24:28 +0000 (13:24 +0000)]
partial bugfix: [#36501] Blenderplayer can not change video resolution in Mac OSX
OSX support for native desktop resolution changing is not simple as for Windows or Linux.

The 'fix' here is at the interface level only.
Refer to the original bug report for the suggested native workaround, test patch and problems.

6 years agoFix issue with paint cursor overlay and size pressure drawing, it would
Antony Riakiotakis [Mon, 16 Sep 2013 13:03:28 +0000 (13:03 +0000)]
Fix issue with paint cursor overlay and size pressure drawing, it would
draw incorrectly and leave openGL in an inconsistent state, making for a
quite surreal UI. Reported by Sebastian Koenig thanks!

6 years agoInstall_deps.sh updates:
Bastien Montagne [Mon, 16 Sep 2013 13:02:49 +0000 (13:02 +0000)]
Install_deps.sh updates:
* Raise OpenCOLLADA version to 18da7f4109a8eafaa290a33f5550501cc4c8bae8 as requested by Gaia.
* Made OSL build/install ON by default (no more an experimental feature!).
* Use default LLVM version under Debian (specifying a version does not work with OSL when you have more that one installed :( ).

6 years agoFix #36734 Matcap displays solid black.
Lukas Toenne [Mon, 16 Sep 2013 11:40:04 +0000 (11:40 +0000)]
Fix #36734 Matcap displays solid black.
GLSL typo in r60151 caused this.

6 years agofix [#36732] Auto depth feature misbehaves on orbit with mouse cursor outside the...
Campbell Barton [Mon, 16 Sep 2013 08:59:54 +0000 (08:59 +0000)]
fix [#36732] Auto depth feature misbehaves on orbit with mouse cursor outside the model.

ortho mode didn't store the depth for re-use when the cursor had no depth.

6 years agofix [#36291] Applying subsurf to mesh or setting subdivisions to zero crashes Blender
Campbell Barton [Mon, 16 Sep 2013 06:00:25 +0000 (06:00 +0000)]
fix [#36291] Applying subsurf to mesh or setting subdivisions to zero crashes Blender

issue was mesh somehow had a mismatch of UV/texpoly layers. we may want to allow this in the future but for now sync on load just in case.

6 years agofix [#36537] "Grid Floor Scaling" can have some unexpected behaviour on new objects
Campbell Barton [Mon, 16 Sep 2013 04:19:48 +0000 (04:19 +0000)]
fix [#36537] "Grid Floor Scaling" can have some unexpected behaviour on new objects

curves and metaballs now behave the same as meshes wrt grid scaling.
remove WM_operator_view3d_distance_invoke(), and replace with a function called from exec which initializes defaults, this way operators can have their own invoke functions.

6 years agofix [#36444] view3d.viewnumpad operator should not animate
Campbell Barton [Mon, 16 Sep 2013 04:04:44 +0000 (04:04 +0000)]
fix [#36444] view3d.viewnumpad operator should not animate

when running viewport operations with exec() rather then invoke(), perform the action immediately rather then using smoothview.
makes viewport operations usable from python scripts.

6 years agoUndo the front-facing only commit for clay strips brushes, it adds an
Antony Riakiotakis [Mon, 16 Sep 2013 02:24:41 +0000 (02:24 +0000)]
Undo the front-facing only commit for clay strips brushes, it adds an
attenuation that should really be optional. There's also a minor
performance penalty and all this only for one problematic case. In case
the tool flattens two surfaces, users can manually set the front face
only option. A better non-attenuating way to cull such vertices can be
added later.

Also flatten brush should calculate the flatten plane from the original
vertices or the flattening will not converge for planes offsets
different than zero.

Reported by Michalis Zissiou, thanks!

6 years agoreplace RNA_property_array_length with RNA_property_array_check where the length...
Campbell Barton [Mon, 16 Sep 2013 01:35:52 +0000 (01:35 +0000)]
replace RNA_property_array_length with RNA_property_array_check where the length of the array is only used to check if the property is an array or not.
(this isnt reliable since arrays can be zero length).

6 years agomove make_prim_radius_prop into a generic function.
Campbell Barton [Mon, 16 Sep 2013 00:18:09 +0000 (00:18 +0000)]
move make_prim_radius_prop into a generic function.

6 years agomove editcurve add functions into their own source file editcurve_add.c
Campbell Barton [Mon, 16 Sep 2013 00:03:33 +0000 (00:03 +0000)]
move editcurve add functions into their own source file editcurve_add.c

6 years agoCycles Hair: Two basic bair shaders added
Stuart Broadfoot [Sun, 15 Sep 2013 23:58:00 +0000 (23:58 +0000)]
Cycles Hair: Two basic bair shaders added

A new hair bsdf node, with two closure options, is added. These closures allow the generation of the reflective and transmission components of hair. The node allows control of the highlight colour, roughness and angular shift.

Llimitations include:
-No glint or fresnel adjustments.
-The 'offset' is un-used when triangle primitives are used.

6 years agoFix [#36727] Curve Object Scaled to 0 + Freestyle = Crash
Bastien Montagne [Sun, 15 Sep 2013 14:27:06 +0000 (14:27 +0000)]
Fix [#36727] Curve Object Scaled to 0 + Freestyle = Crash

Division by zero...

6 years agouse crazy-space when modifiers_isCorrectableDeformed() fails,
Campbell Barton [Sun, 15 Sep 2013 11:51:38 +0000 (11:51 +0000)]
use crazy-space when modifiers_isCorrectableDeformed() fails,
without this. warp modifier for eg didnt use crazy-space.

6 years agomodify crazyspace_get_mapped_editverts to work like crazyspace_set_quats_mesh
Campbell Barton [Sun, 15 Sep 2013 11:38:48 +0000 (11:38 +0000)]
modify crazyspace_get_mapped_editverts to work like crazyspace_set_quats_mesh
- array of quats is now aligned with the vertices (over alloc, it simplifies things and removes need to set invalid index values).
- remove visit-bitmap from crazyspace_get_mapped_editverts(). setting coords multiple times isnt bad.

6 years agoOSX/cmake: fix config by moving code back into xcode conditional, cmake/makefiles...
Jens Verwiebe [Sun, 15 Sep 2013 10:56:36 +0000 (10:56 +0000)]
OSX/cmake: fix config by moving code back into xcode conditional, cmake/makefiles does not even have xcode_vesion lookup

6 years agouse mpolys rather then tessfaces for crazy-space calculation. (was a todo since mergi...
Campbell Barton [Sun, 15 Sep 2013 08:05:27 +0000 (08:05 +0000)]
use mpolys rather then tessfaces for crazy-space calculation. (was a todo since merging bmesh)

6 years agouse stack memory for deform weight interpolation.
Campbell Barton [Sun, 15 Sep 2013 05:17:19 +0000 (05:17 +0000)]
use stack memory for deform weight interpolation.

6 years agoreplace BLI_edgehash_insert with BLI_edgehash_reinsert for explode operator, was...
Campbell Barton [Sun, 15 Sep 2013 01:47:40 +0000 (01:47 +0000)]
replace BLI_edgehash_insert with BLI_edgehash_reinsert for explode operator, was inserting the same edges more then once.

6 years ago- update bl_run_operators.py for change in blender.
Campbell Barton [Sun, 15 Sep 2013 01:46:25 +0000 (01:46 +0000)]
- update bl_run_operators.py for change in blender.
- rename curve delete operator vertices enum to match mesh delete operator.
- add missing NULL checks to view3d_lock_poll() to prevent crashes when called outside a view3d.

6 years agoOSX/cmake: don't try get xcode path from xcode before 4.3, developer dir was not...
Jens Verwiebe [Sat, 14 Sep 2013 12:11:26 +0000 (12:11 +0000)]
OSX/cmake: don't try get xcode path from xcode before 4.3, developer dir was not bundled in this case

6 years agominor style clanup and use more meaningful name for 3DCONNEXION source code.
Campbell Barton [Sat, 14 Sep 2013 12:04:10 +0000 (12:04 +0000)]
minor style clanup and use more meaningful name for 3DCONNEXION source code.

6 years agoCode cleanup: spelling correction
Joseph Mansfield [Sat, 14 Sep 2013 10:22:56 +0000 (10:22 +0000)]
Code cleanup: spelling correction

6 years agoBGE: Adding a Python collision API. The initial patch was provided by agoose77, with...
Mitchell Stokes [Sat, 14 Sep 2013 02:02:58 +0000 (02:02 +0000)]
BGE: Adding a Python collision API. The initial patch was provided by agoose77, with some edits by me.

KX_GameObject now has a collisionCallbacks list which is a list of callables that are called when a collision occurs. The callables will be called with an argument that contains a reference to the other object involved in the collision (i.e., not self).

6 years agofix weird issue after last commit where grab brush would not work and
Antony Riakiotakis [Sat, 14 Sep 2013 00:35:41 +0000 (00:35 +0000)]
fix weird issue after last commit where grab brush would not work and
also warnings fix and description fix.

6 years agominor changes needed for building standalone mathutils.
Campbell Barton [Sat, 14 Sep 2013 00:30:56 +0000 (00:30 +0000)]
minor changes needed for building standalone mathutils.

6 years agoSculpting:
Antony Riakiotakis [Fri, 13 Sep 2013 23:58:00 +0000 (23:58 +0000)]
Sculpting:

* Cleanup for previous commit and reduce some local variable referencing
* Add support for brushes that operate on frontfaces only and do not
show the option for those brushes. Currently only clay strips is in the
list but this may change according to artist feedback. This should take
care of the "sticky" surface problem completely.

6 years agoSculpting:
Antony Riakiotakis [Fri, 13 Sep 2013 23:21:35 +0000 (23:21 +0000)]
Sculpting:

Modify calculation of sculpt plane to only take into account forward
facing vertices. This will solve cases where sculpting on a volume with
the two sides of the mesh inside the brush radius could move the sculpt
plane inside the mesh volume.

To completely fix the issue where the mesh would "stick" the two sides
of the mesh together on the sculpt plane (for instance for clay strip
brushes), user should enable "front face only". Perhaps some brushes,
like clay strips should enforce this and not present the option in the
first place.

6 years agoCleanup for last commit
Jens Verwiebe [Fri, 13 Sep 2013 21:42:52 +0000 (21:42 +0000)]
Cleanup for last commit

6 years agoFix broken compiling with ndof on linux and win
Jens Verwiebe [Fri, 13 Sep 2013 21:21:53 +0000 (21:21 +0000)]
Fix broken compiling with ndof on linux and win

6 years agoOSX/cmake: move the new xcode-select-handing outside xcode conditional, to fix cmake...
Jens Verwiebe [Fri, 13 Sep 2013 21:13:57 +0000 (21:13 +0000)]
OSX/cmake: move the new xcode-select-handing outside xcode conditional, to fix cmake/make compile

6 years agoFix for #36720 and #36721.
Lukas Toenne [Fri, 13 Sep 2013 16:01:41 +0000 (16:01 +0000)]
Fix for #36720 and #36721.
This was own error in r60049 which fixed chunk number calculation. This was mixing int and unsigned int values from ExecutionGroup, which leads to huge chunk numbers which are then skipped.

6 years agoOSX/scons: take xcode-select path into account, to work well with different xcode...
Jens Verwiebe [Fri, 13 Sep 2013 15:41:18 +0000 (15:41 +0000)]
OSX/scons: take xcode-select path into account, to work well with different xcode versions

6 years agoOSX: Compilefix for ndof symbols get magled when used extern C, now use discrete...
Jens Verwiebe [Fri, 13 Sep 2013 15:18:17 +0000 (15:18 +0000)]
OSX: Compilefix for ndof symbols get magled when used extern C, now use discrete c files embedded, patch by Jake Kauth

6 years agoOSX/cmake: allow for compiling with xcode develper previews by determing xcode-select
Jens Verwiebe [Fri, 13 Sep 2013 14:57:57 +0000 (14:57 +0000)]
OSX/cmake: allow for compiling with xcode develper previews by determing xcode-select

6 years agoFix #36719: UV pass not rendering in second render layer if first render layer
Brecht Van Lommel [Fri, 13 Sep 2013 14:31:28 +0000 (14:31 +0000)]
Fix #36719: UV pass not rendering in second render layer if first render layer
does not have the UV pass enabled as well.

6 years agoCleanup and improvements of the compositor debug output.
Lukas Toenne [Fri, 13 Sep 2013 13:36:47 +0000 (13:36 +0000)]
Cleanup and improvements of the compositor debug output.

Debug code for graphviz output moved to a dedicated file COM_Debug.h/cpp.

The DebugInfo class has only static functions, which are called from a number of places to keep track of what is happening in the compositor. If debugging is disabled these are just inline stubs, so we
don't need #ifdefs everywhere and don't get any overhead.

The graphviz output is much more useful now. DebugInfo keeps track of node names in a static string map for meaningful names. It uses a number of colors for various special operation classes.
ExecutionGroups are indicated in graphviz with clusters.

Currently the graphviz .dot files are stored in the BLI_temporary_dir() folder. A separate dot file is generated for each stage of the ExecutionGroup scheduling, this is intended to give some idea of the
compositor progress, but could still be improved.

6 years agoRelated to #36710: add a "use_viewport" option to the render operator, to specify
Brecht Van Lommel [Fri, 13 Sep 2013 13:34:12 +0000 (13:34 +0000)]
Related to #36710: add a "use_viewport" option to the render operator, to specify
if the layers and camera of the 3d viewport should be used. Python scripts don't
always want this behavior.

6 years agoFix memory leak reading mesh data after change to skip saving temporary
Brecht Van Lommel [Fri, 13 Sep 2013 13:34:10 +0000 (13:34 +0000)]
Fix memory leak reading mesh data after change to skip saving temporary
custom data layers.

6 years agoMatch free_normals_split with calc_normals_split names ;)
Bastien Montagne [Fri, 13 Sep 2013 12:13:30 +0000 (12:13 +0000)]
Match free_normals_split with calc_normals_split names ;)

6 years ago* Fix #36717, don't grey out AO distance property, as it affects the AO Render Pass...
Thomas Dinges [Fri, 13 Sep 2013 10:26:20 +0000 (10:26 +0000)]
* Fix #36717, don't grey out AO distance property, as it affects the AO Render Pass and AO closure as well.

6 years agochange NODE_TREE_TYPES_BEGIN/END macros to include braces (matches CTX_DATA_BEGIN...
Campbell Barton [Fri, 13 Sep 2013 08:45:20 +0000 (08:45 +0000)]
change NODE_TREE_TYPES_BEGIN/END macros to include braces (matches CTX_DATA_BEGIN/END)

6 years agocorrect error in libmv stub, also correct typo.
Campbell Barton [Fri, 13 Sep 2013 03:49:11 +0000 (03:49 +0000)]
correct error in libmv stub, also correct typo.

6 years agoMoved and renamed ED_pose_channel_in_IK_chain() ->
Joshua Leung [Fri, 13 Sep 2013 03:03:46 +0000 (03:03 +0000)]
Moved and renamed  ED_pose_channel_in_IK_chain() ->
BKE_pose_channel_in_IK_chain()

This was needed for depsgraph work, and it's cleaner for RNA to have fewer
dependencies on editors

6 years agofix/workaround [#36709] Renaming multiple objects in the outliner halts the interface
Campbell Barton [Thu, 12 Sep 2013 22:55:42 +0000 (22:55 +0000)]
fix/workaround [#36709] Renaming multiple objects in the outliner halts the interface

Only show one edit button at a time (editing multiple buttons at once I never saw in other ui toolkits and its unclear what you change).

6 years agowhen handling the escape key, check for press (ignore release events), right mouse...
Campbell Barton [Thu, 12 Sep 2013 22:48:46 +0000 (22:48 +0000)]
when handling the escape key, check for press (ignore release events), right mouse already did this.
ensures the escape key isn't handled twice for one press.

6 years agoadd back library linking warning when renaming library datablocks in the outliner...
Campbell Barton [Thu, 12 Sep 2013 22:08:56 +0000 (22:08 +0000)]
add back library linking warning when renaming library datablocks in the outliner, also typo corrections.

6 years agofix [#36713] crash from adding gear from 'extra objects' addon
Campbell Barton [Thu, 12 Sep 2013 21:01:27 +0000 (21:01 +0000)]
fix [#36713] crash from adding gear from 'extra objects' addon

6 years agoChange the enum for CustomDataMask bits back to #defines.
Nathan Letwory [Thu, 12 Sep 2013 20:43:29 +0000 (20:43 +0000)]
Change the enum for CustomDataMask bits back to #defines.

enum is an int, and values from CD_PREVIEW_MLOOPCOL (32) onwards
will not give what apparently was expected.

Found with help from Oscurart in #blendercoders while trying to figure
out compile error with CMake/msvc9. Occasionally it is good to heed
the warnings given by compilers!

6 years agocode cleanup: unnecessary shadowing and some minor pep8 edits.
Campbell Barton [Thu, 12 Sep 2013 19:51:31 +0000 (19:51 +0000)]
code cleanup: unnecessary shadowing and some minor pep8 edits.

6 years ago3D View / UI:
Thomas Dinges [Thu, 12 Sep 2013 13:01:36 +0000 (13:01 +0000)]
3D View / UI:
* Decouple "Display" panel, into Display and Shading panels, so one of them can be closed when not needed. (Saves some space).

Patch by Sebastian K├Ânig, with tweaks by myself.

6 years agoDifferent implementation of patch #36430: use layer froms scene directly for
Brecht Van Lommel [Thu, 12 Sep 2013 12:09:14 +0000 (12:09 +0000)]
Different implementation of patch #36430: use layer froms scene directly for
rendering, in case some script wants to set it in the render_pre callback. In
case of decoupled 3d view layers or local view it will still override this
though.

6 years agoFix for [#36707] Blender Opens in fullscreen and stays like that
Nathan Letwory [Thu, 12 Sep 2013 10:44:03 +0000 (10:44 +0000)]
Fix for [#36707] Blender Opens in fullscreen and stays like that
Reported by holy enigma

The previous commit in this area removed bounding box checks, because
they were done against primary monitor. Now do bound checks against
the entire desktop, or rather, the virtual screen. This is the bounding
rectangle of all the monitors.

This should ensure windows are always created within the confines of this
area.

6 years agomore localized fix for [#36299], only changes behavior for subsurf with orco in editmode
Campbell Barton [Thu, 12 Sep 2013 10:41:00 +0000 (10:41 +0000)]
more localized fix for [#36299], only changes behavior for subsurf with orco in editmode

6 years agoFix #36706: Added complementary API functions for the FileOutput node so file/layer...
Lukas Toenne [Thu, 12 Sep 2013 08:43:25 +0000 (08:43 +0000)]
Fix #36706: Added complementary API functions for the FileOutput node so file/layer slots (input sockets) can be added without using the operator. Instead of adding sockets to these node using the
node.inputs collection, the node.file_slots or node.layer_slots collections should be used. Both of them work, they just provide slightly different properties for use with simple files or multi-layer
EXR.

The FileOutput node design is cumbersome and should be considered broken. It should eventually be replaced, the problem with that is backward/forward compatibility.