5 years agoBMesh: maintain select-history when sorting
Campbell Barton [Wed, 7 Oct 2015 04:39:06 +0000 (15:39 +1100)]
BMesh: maintain select-history when sorting

5 years agoFix T45886: cont.deactivate(ActionActuatorInPropertyMode) does not work
Mitchell Stokes [Mon, 24 Aug 2015 02:56:51 +0000 (19:56 -0700)]
Fix T45886: cont.deactivate(ActionActuatorInPropertyMode) does not work

Make sure the Action Actuator actually deactivates when given a negative
event while using the property play mode.

5 years agoCleanup: spelling
Campbell Barton [Wed, 7 Oct 2015 04:02:06 +0000 (15:02 +1100)]
Cleanup: spelling

5 years agoFix mesh validate: 'r_changed' ignored loop edits
Campbell Barton [Wed, 7 Oct 2015 03:38:36 +0000 (14:38 +1100)]
Fix mesh validate: 'r_changed' ignored loop edits

5 years agoFix game-property use-after-free error
Campbell Barton [Wed, 7 Oct 2015 00:04:23 +0000 (11:04 +1100)]
Fix game-property use-after-free error

D1538 by @hal01

5 years agoFix FileBrowser: do not show 'advanced filter' panel outside of lib browsing context,
Bastien Montagne [Tue, 6 Oct 2015 18:17:40 +0000 (20:17 +0200)]
Fix FileBrowser: do not show 'advanced filter' panel outside of lib browsing context,
it’s only used there so far.

Reported by Thomas Beck (plasmasolutions) over IRC, thanks.

Safe enough for 2.76.

5 years agoFix T46390: Sound sequencer API doesnt' work when built with SCons
Sergey Sharybin [Tue, 6 Oct 2015 16:00:37 +0000 (21:00 +0500)]
Fix T46390: Sound sequencer API doesnt' work when built with SCons

The issue was caused by original patch efde4dbb.

This seems to be really old bug, but safe for 2.76.

5 years agoFix T46392: Navmesh generator error.
Bastien Montagne [Tue, 6 Oct 2015 13:58:45 +0000 (15:58 +0200)]
Fix T46392: Navmesh generator error.

We now have to explicitely enure tesselation of DMs when we need it.

Notes: Maybe we could use looptris here as well?

Not a regression (bug already present in 2.75, but not 2.74), nice to backport to 2.76 nontheless.

5 years agoWM: Fix crash when a new window can't be created
Campbell Barton [Tue, 6 Oct 2015 13:27:27 +0000 (00:27 +1100)]
WM: Fix crash when a new window can't be created

Report an error instead of crashing if a new window can't be created
(typically caused by bad drivers).

5 years agoFix T46345: Registrable props could be modified
Julian Eisel [Tue, 6 Oct 2015 10:51:35 +0000 (21:51 +1100)]
Fix T46345: Registrable props could be modified

5 years agoCleanup: return PROP_EDITABLE rna flag
Campbell Barton [Tue, 6 Oct 2015 10:43:04 +0000 (21:43 +1100)]
Cleanup: return PROP_EDITABLE rna flag

Harmless, since the flag happens to be 1.

5 years agoCleanup: use BLI_path_basename
Campbell Barton [Tue, 6 Oct 2015 08:49:58 +0000 (19:49 +1100)]
Cleanup: use BLI_path_basename

5 years agoRNA: Add check_existing arg to other load() funcs
Campbell Barton [Tue, 6 Oct 2015 08:40:15 +0000 (19:40 +1100)]
RNA: Add check_existing arg to other load() funcs

Note: movieclip was doing this already by default,
now split into 2 functions, matching image behavior.

5 years agoFix T46389: Shrinkwrap fails in editmode
Campbell Barton [Tue, 6 Oct 2015 06:55:15 +0000 (17:55 +1100)]
Fix T46389: Shrinkwrap fails in editmode

Own regression caused by fix for T46067,
edit-mode bvh only contained unselected faces.

This commit adds support for an edit-mode bvh containing all faces.

5 years agoCleanup: only check paint mode for active objects
Campbell Barton [Tue, 6 Oct 2015 05:24:57 +0000 (16:24 +1100)]
Cleanup: only check paint mode for active objects

5 years agoFix T46385: Duplicate w/ vertex parent fails
Campbell Barton [Tue, 6 Oct 2015 04:20:16 +0000 (15:20 +1100)]
Fix T46385: Duplicate w/ vertex parent fails

Depsgraph customdata flag was set on the parent,
then cleared once the parent object was handled.

This is initialized to zero for new nodes, no need to clear.

5 years agoImage Py API: Expose 'load_exists' to RNA image load(), and extend load_image() helper.
Bastien Montagne [Mon, 5 Oct 2015 16:49:20 +0000 (18:49 +0200)]
Image Py API: Expose 'load_exists' to RNA image load(), and extend load_image() helper.

Expose our `BKE_image_load_exists` feature through an optional parameter to `Image.load()`.

Extend `image_utils.load_image()` with two optional parameters, to return existing image datablock
if possible, and in that case, to force reloading said image.

Needed by incomming 'import images as planes' addon enhancement.

5 years agoCleanup: use proper `ObjectWalkFunc` typedef in modifiers' object callback func.
Bastien Montagne [Mon, 5 Oct 2015 13:57:10 +0000 (15:57 +0200)]
Cleanup: use proper `ObjectWalkFunc` typedef in modifiers' object callback func.

Also, fix own stupidity, no need to define ID callback in case we only have objects,
calling code knows to fallback to `foreachObjectLink()` when `foreachIDLink()` is missing...

5 years agoFix T46333: Particle Info Node broken w/ BI
Campbell Barton [Mon, 5 Oct 2015 12:23:05 +0000 (23:23 +1100)]
Fix T46333: Particle Info Node broken w/ BI

Patch from @a.romanov

This also fixes multiple particle systems - which never worked.

5 years agoCleanup: warning
Campbell Barton [Mon, 5 Oct 2015 12:19:33 +0000 (23:19 +1100)]
Cleanup: warning

5 years agoFix T46375: Inverted scroll in node template menus
Campbell Barton [Mon, 5 Oct 2015 11:22:03 +0000 (22:22 +1100)]
Fix T46375: Inverted scroll in node template menus

5 years agoFix T46354: Curve Modifier does not update (new Dependency graph)
Sergey Sharybin [Mon, 5 Oct 2015 11:16:58 +0000 (16:16 +0500)]
Fix T46354: Curve Modifier does not update (new Dependency graph)

Result of curve modifier depends on transform of the object which should
be reflected by the depsgraph relations.

5 years agoBuildbot: Disable use of own Clang for OSX builds
Sergey Sharybin [Mon, 5 Oct 2015 10:58:52 +0000 (15:58 +0500)]
Buildbot: Disable use of own Clang for OSX builds

Our version of clang fails with latest SDK. It's not really clear if such
change will disable openmp or not (-fopenmp doesn't throw an error, but
it might be a silent fail).

In any case, builds without OpenMP is better than no builds at all.\

5 years agoFix T46377: No python executable in 2.76 rc3 distribution for OSX
Sergey Sharybin [Mon, 5 Oct 2015 10:43:56 +0000 (15:43 +0500)]
Fix T46377: No python executable in 2.76 rc3 distribution for OSX

5 years agoMetadata display: support word-wrapped note
Campbell Barton [Mon, 5 Oct 2015 09:41:45 +0000 (20:41 +1100)]
Metadata display: support word-wrapped note

- Match layout from stamp buffer (note last so it can wrap)
- Correct vertical spacing (didn't take decender into account)
- Use U.pixelsize when setting font-size.

5 years agoFix T46379: Bad behavior of bUnit_ToUnitAltName() with default units.
Bastien Montagne [Mon, 5 Oct 2015 09:55:52 +0000 (11:55 +0200)]
Fix T46379: Bad behavior of bUnit_ToUnitAltName() with default units.

It would simply remove default units (in most case), cannot see any good reason for such behavior?
Might work in case default unit is the only one present, but breaks consistency (and it may not be
always obvious for user which unit it is). Comes from original patch from five years ago, rB7d8f0fce.

This will break keyboard-setting of values, e.g. '2m 33.4cm' would become '2 33.4cm',
totally useless and invalid entry!

5 years agoCleanup: pass pointer to rctf
Campbell Barton [Mon, 5 Oct 2015 09:46:53 +0000 (20:46 +1100)]
Cleanup: pass pointer to rctf

5 years agoSCons: Support compilation with 10.11 SK on OS X
Sergey Sharybin [Mon, 5 Oct 2015 09:48:04 +0000 (14:48 +0500)]
SCons: Support compilation with 10.11 SK on OS X

5 years agoFix T46352: Cycles fails to render when material contains UV mapped texture as volume...
Sergey Sharybin [Mon, 5 Oct 2015 09:45:03 +0000 (14:45 +0500)]
Fix T46352: Cycles fails to render when material contains UV mapped texture as volume input

5 years agoCycles: Add some TODO comments about derivatives
Sergey Sharybin [Mon, 5 Oct 2015 07:54:05 +0000 (12:54 +0500)]
Cycles: Add some TODO comments about derivatives

5 years agoCycles: Fix for builtin textures when linking against OSL 1.6.8
Sergey Sharybin [Mon, 5 Oct 2015 07:52:07 +0000 (12:52 +0500)]
Cycles: Fix for builtin textures when linking against OSL 1.6.8

Issue was caused by changed function signature. This is still not really full
support of new OSL API since we don't store anything in the derivatives which
could confuse mipmapping.

5 years agoCycles: Remove redundant coordinate clipping in voxel SVM node
Sergey Sharybin [Mon, 5 Oct 2015 07:41:16 +0000 (12:41 +0500)]
Cycles: Remove redundant coordinate clipping in voxel SVM node

It is now handled via texture extension type.

5 years agoCycles: Fix missing z-coordinate check in volume sampling
Sergey Sharybin [Mon, 5 Oct 2015 07:40:50 +0000 (12:40 +0500)]
Cycles: Fix missing z-coordinate check in volume sampling

5 years agoFix T46358: Cycles point density uses repeat extension type
Sergey Sharybin [Mon, 5 Oct 2015 07:28:36 +0000 (12:28 +0500)]
Fix T46358: Cycles point density uses repeat extension type

5 years agoFix T46305: normal map display issues in viewport when using VBOs.
Brecht Van Lommel [Sun, 4 Oct 2015 22:10:28 +0000 (00:10 +0200)]
Fix T46305: normal map display issues in viewport when using VBOs.

5 years agoCMake: detect OS X 10.11 / Xcode 7.
Brecht Van Lommel [Sun, 4 Oct 2015 15:57:14 +0000 (17:57 +0200)]
CMake: detect OS X 10.11 / Xcode 7.

5 years agoFix T46368: Subtitle Export: Subtitles are not sorted by time.
Bastien Montagne [Sun, 4 Oct 2015 14:42:19 +0000 (16:42 +0200)]
Fix T46368: Subtitle Export: Subtitles are not sorted by time.

We need a temp list of Text effect strips here, to be able to sort it as we want...

5 years agoFix (unreported) broken export of timecodes in SubRip VSE exporter.
Bastien Montagne [Sun, 4 Oct 2015 13:53:56 +0000 (15:53 +0200)]
Fix (unreported) broken export of timecodes in SubRip VSE exporter.

Would write 1.04 seconds as `00:00:01,40` instead of `00:00:01,040`...

Anyway, we already have BLI API for timecodes, much better to add
SubRip timecode format there, heavily simplifies code.

To be backported to final 2.76.

5 years agoBMesh: improved smooth subdivision
Campbell Barton [Sun, 4 Oct 2015 12:20:48 +0000 (23:20 +1100)]
BMesh: improved smooth subdivision

Instead of offsetting along normals, smooth positions are now
calculated on a sphere defined by the vertices and their normals.

This removes visible seams along original edges, which were common previously.

5 years agoFix (coverity-reported) broken 'transform helpers' drawing.
Bastien Montagne [Sun, 4 Oct 2015 07:31:17 +0000 (09:31 +0200)]
Fix (coverity-reported) broken 'transform helpers' drawing.

E.g. trackball-arrows (R-R) were no more visible.

Caused by wrong cast of an array from int to float, we need an int version of those helpers (`glTranslatenxv`) too.

5 years agoClenup: Text Editor: Fix inconsistencies in textline handling (makes coverty happy).
Bastien Montagne [Sun, 4 Oct 2015 06:59:14 +0000 (08:59 +0200)]
Clenup: Text Editor: Fix inconsistencies in textline handling (makes coverty happy).

5 years agoCorrect last commit, picky type warnings
Campbell Barton [Sun, 4 Oct 2015 04:11:38 +0000 (15:11 +1100)]
Correct last commit, picky type warnings

5 years agoCorrect last commit, check before freeing
Campbell Barton [Sun, 4 Oct 2015 04:01:46 +0000 (15:01 +1100)]
Correct last commit, check before freeing

5 years agoBLI_Buffer: add BLI_buffer_reinit
Campbell Barton [Sun, 4 Oct 2015 03:14:28 +0000 (14:14 +1100)]
BLI_Buffer: add BLI_buffer_reinit

Useful for re-using a buffer when the existing data can be thrown away.

5 years agoBLI_Buffer: support over 2gb allocations
Campbell Barton [Sun, 4 Oct 2015 02:58:40 +0000 (13:58 +1100)]
BLI_Buffer: support over 2gb allocations

Also move comment to C-source and enumerate useful features.

5 years agoBLI_Buffer: fix BLI_buffer_resize w/ calloc flag
Campbell Barton [Sun, 4 Oct 2015 02:52:13 +0000 (13:52 +1100)]
BLI_Buffer: fix BLI_buffer_resize w/ calloc flag

When resizing, zero memory when the calloc flag is set,
even when no realloc is done.

5 years agoInstallDeps: Fix broken OSL (would not generate valid default names for its .oso...
Bastien Montagne [Sat, 3 Oct 2015 14:20:03 +0000 (16:20 +0200)]
InstallDeps: Fix broken OSL (would not generate valid default names for its .oso pre-compiled files).

Also, externalize temp/hacky patches in own dir, much much cleaner than integrating them in bash script!

5 years agoFix T44605: OS X continuous grab issues.
Brecht Van Lommel [Sat, 3 Oct 2015 01:37:41 +0000 (03:37 +0200)]
Fix T44605: OS X continuous grab issues.

5 years agoFix Broken Font Preview (reported over IRC by kopias, thanks).
Bastien Montagne [Sat, 3 Oct 2015 07:25:44 +0000 (09:25 +0200)]
Fix Broken Font Preview (reported over IRC by kopias, thanks).

Broken by font wrap commit rBf2341f829654c4dc97, there was actually two things here:
* Using non-initialized color (which lead to transparent drawing...), we need to use new
  `blf_draw_buffer__start/end` helpers here too, made them shared internally.
* Using `draw_str_i18n_nbr` as `draw_str[i]` length, ugh! That's the number of utf8 glyphs of
  translated string, not the length of untranslated string!

This fix must be backported to final 2.76.

5 years agoCleanup: style
Campbell Barton [Fri, 2 Oct 2015 22:22:48 +0000 (08:22 +1000)]
Cleanup: style

5 years agorename ui_but_dragedit_poll
Campbell Barton [Fri, 2 Oct 2015 22:19:50 +0000 (08:19 +1000)]
rename ui_but_dragedit_poll

This isnt only checking, its initializing draglock

5 years agoFix T46346: Hide/Mask menu, Hotkey for lasso mask in sculpt mode unchangeable.
Bastien Montagne [Fri, 2 Oct 2015 11:09:33 +0000 (13:09 +0200)]
Fix T46346: Hide/Mask menu, Hotkey for lasso mask in sculpt mode unchangeable.

One can only edit keyboard shortcuts from that menu, others will now show a short
info about that instead of stupid 'Add' option!

5 years agoFix memory leak in compositor code with RGB curve nodes.
Lukas Tönne [Thu, 1 Oct 2015 16:11:12 +0000 (18:11 +0200)]
Fix memory leak in compositor code with RGB curve nodes.

5 years agoCycles: Correction to point density with particle source and world mapping
Sergey Sharybin [Thu, 1 Oct 2015 14:34:37 +0000 (19:34 +0500)]
Cycles: Correction to point density with particle source and world mapping

5 years agoFix T46340: Auto scrolling in text editor with upward selection not work.
Bastien Montagne [Thu, 1 Oct 2015 13:27:11 +0000 (15:27 +0200)]
Fix T46340: Auto scrolling in text editor with upward selection not work.

Cleanup and rework a bit text_cursor_set_to_pos_wrapped(), it did not handle correctly negative y valuesi,
because it was only checking lines starting from first visible one.

Mostly, we now directly get line matching given y position (be it an invisible one) from the helper
(renamed `get_line_pos_wrapped()`), instead of first visible one, which allows us to get rid of
additional complexity of looping over next lines until we find correct one.

This code remains rather complex to follow, added some asserts to ensure everything works as expected,
and tested it rather seriously, but DO NOT backport this to 2.76!

5 years agoBGE: Fix T46302: abort call for unnormalized quaterions.
Porteries Tristan [Thu, 1 Oct 2015 11:05:16 +0000 (13:05 +0200)]
BGE: Fix T46302: abort call for unnormalized quaterions.

5 years agoFix T46339: Edge sliding when there is only one vertex in the mesh crashes blender.
Bastien Montagne [Thu, 1 Oct 2015 10:03:09 +0000 (12:03 +0200)]
Fix T46339: Edge sliding when there is only one vertex in the mesh crashes blender.

If t->mode remains edge/vert slide, restoreTransObjects() ends up calling
projectVert/EdgeSlideData(), which tries to access invalid customdata...

Not sure why we call again restoreTransObjects() and resetTransRestrictions() here tbh,
but safer not to change that for now.

Should be backported to 2.76 if possible.

5 years agoFix T46321: 3D view not refreshed immediatelly after pasting keyframe in dope sheet...
Joshua Leung [Thu, 1 Oct 2015 05:47:37 +0000 (18:47 +1300)]
Fix T46321: 3D view not refreshed immediatelly after pasting keyframe in dope sheet (for a single channel)

5 years agoFix potential memory leak baking
Campbell Barton [Thu, 1 Oct 2015 07:19:12 +0000 (17:19 +1000)]
Fix potential memory leak baking

5 years agoFix T46331: File open does not show thumbnails, when a filter_glob is provided by...
Bastien Montagne [Wed, 30 Sep 2015 18:19:21 +0000 (20:19 +0200)]
Fix T46331: File open does not show thumbnails, when a filter_glob is provided by python scripts.

No reason to exclude usual file-type 'guessing' for operator-filtered extensions...

Safe for 2.76, should we need to merge more fixes.

5 years agoFix T46332: Can't select an object with OpenSubdiv enabled
Sergey Sharybin [Wed, 30 Sep 2015 15:59:19 +0000 (20:59 +0500)]
Fix T46332: Can't select an object with OpenSubdiv enabled

The issue was introduced by a wrong fix for T46247. Now both reports should
be properly solved.

5 years agoRevert "Fix T46247: Side-reported, bbox for zero-verts object with OSD subsurf and...
Sergey Sharybin [Wed, 30 Sep 2015 15:57:02 +0000 (20:57 +0500)]
Revert "Fix T46247: Side-reported, bbox for zero-verts object with OSD subsurf and GPU compute would be -INF."

This reverts commit b278e8742be436f7d0272033bc93def1d47f1752.

5 years agoFix T46313: Cycles bake normal map
Campbell Barton [Wed, 30 Sep 2015 20:47:12 +0000 (06:47 +1000)]
Fix T46313: Cycles bake normal map

Regression moving to bake to looptri
caused by mismatch w/ MFace and MLoopTri when the 3rd index was 0.

5 years agoFix T46325: Armature: No more possible to rotate a bone with only its tip selected...
Bastien Montagne [Wed, 30 Sep 2015 08:48:22 +0000 (10:48 +0200)]
Fix T46325: Armature: No more possible to rotate a bone with only its tip selected, in EditMode.

Regression from rB312cb0a957b81233ea, now we make an exception for TFM_ROTATION mode...

5 years agoFix T46306: Cursor sometimes jumps with num-slider buttons & Continuous Grab
Julian Eisel [Tue, 29 Sep 2015 23:04:11 +0000 (01:04 +0200)]
Fix T46306: Cursor sometimes jumps with num-slider buttons & Continuous Grab

More precise description of the issue: Clicking on the right side of a num-slider button with Continuous Grab enabled sometimes caused cursor to jump to the inner value indicator even though text editing was started.

Happened because data->ungrab_mval wasn't reset correctly after dragging.

5 years agoAdd drag-threshold for number slider buttons
Julian Eisel [Tue, 29 Sep 2015 17:56:09 +0000 (19:56 +0200)]
Add drag-threshold for number slider buttons

Was already used for normal number buttons for ages, makes sense to use here too.

5 years agoFix T46299: Windows: File Browser Crash while listing big folders in preview mode...
Bastien Montagne [Tue, 29 Sep 2015 17:54:25 +0000 (19:54 +0200)]
Fix T46299: Windows: File Browser Crash while listing big folders in preview mode (fonts, images...).

Windows-only bug, mmap & co are not threadsafe by default on this platform, so we have to add a dedicated
spinlock for them in win32.

Note that we may try to get rid of those mmap later, but not for 2.76!

To be backported to final 2.76...

5 years agoi18n extraction tools: keep even better order of entries in PO files.
Bastien Montagne [Mon, 28 Sep 2015 18:19:54 +0000 (20:19 +0200)]
i18n extraction tools: keep even better order of entries in PO files.

Important to avoid too much changes, especially on the git repo (we are still getting
way too much changes there currently...).

5 years agoBlender Internal: Fix regression in point density texture
Sergey Sharybin [Mon, 28 Sep 2015 16:10:17 +0000 (21:10 +0500)]
Blender Internal: Fix regression in point density texture

The issue was introduced by original Cycles point density support commit,
it lead to a constant density of 1 for object verticies point density source.

5 years agoCycles: Fix wrong particles min/max calculation for point density
Sergey Sharybin [Mon, 28 Sep 2015 15:10:01 +0000 (20:10 +0500)]
Cycles: Fix wrong particles min/max calculation for point density

Solves wrong object mapping reported in T46301.

5 years agoFix T46293: Text Editor: Convert to spaces/to tabs was totally broken with non-ASCII...
Bastien Montagne [Mon, 28 Sep 2015 08:04:37 +0000 (10:04 +0200)]
Fix T46293: Text Editor: Convert to spaces/to tabs was totally broken with non-ASCII strings.

Code was totally unaware of UTF8, also it was needlessly complicated...

5 years agoBGE docs fix: link to the correct method name
Sybren A. Stüvel [Sun, 27 Sep 2015 15:19:30 +0000 (17:19 +0200)]
BGE docs fix: link to the correct method name

5 years agoBGE documentation updates
Sybren A. Stüvel [Sun, 27 Sep 2015 14:32:16 +0000 (16:32 +0200)]
BGE documentation updates

Mostly added missing :arg: clauses -- these caused the :type:-clauses
that were already in the RST files to be hidden from the output HTML.

I also fixed some argument types from 'list' to 'Vector' where applicable
and corrected some obvious mistakes.

5 years agoFix T46285: "Select parent" if there is no parent doesn't work correctly.
Bastien Montagne [Sun, 27 Sep 2015 08:24:11 +0000 (10:24 +0200)]
Fix T46285: "Select parent" if there is no parent doesn't work correctly.

5 years agoFix T46268: All Hotkey "C" are unexpectedly translated in menus.
Bastien Montagne [Sun, 27 Sep 2015 07:49:41 +0000 (09:49 +0200)]
Fix T46268: All Hotkey "C" are unexpectedly translated in menus.

We need custom context here, those are often very short names so context collision is pretty easy.

Also some minor changes (and avoid shadowing varnames)...

5 years agoFix T46271: switching between textures in texture buttons not updating preview.
Brecht Van Lommel [Sun, 27 Sep 2015 00:40:30 +0000 (02:40 +0200)]
Fix T46271: switching between textures in texture buttons not updating preview.

5 years agoFix T46212: blender internal lights in exclusive light group wrong in viewport.
Brecht Van Lommel [Sun, 27 Sep 2015 00:17:12 +0000 (02:17 +0200)]
Fix T46212: blender internal lights in exclusive light group wrong in viewport.

5 years agoFix crash reporting render errors during baking.
Brecht Van Lommel [Tue, 22 Sep 2015 22:28:53 +0000 (00:28 +0200)]
Fix crash reporting render errors during baking.

5 years agoFix file browser not sorting file list when opened from editor menu
Julian Eisel [Sat, 26 Sep 2015 11:37:46 +0000 (13:37 +0200)]
Fix file browser not sorting file list when opened from editor menu

5 years agoUse PyThreadState_GetDict, avoid Python internals
Campbell Barton [Sat, 26 Sep 2015 01:58:31 +0000 (11:58 +1000)]
Use PyThreadState_GetDict, avoid Python internals

Works around problems caused by exposing Py internals (Py_BUILD_CORE).

- Build error with GCC, Py3.6 & OpenMP
- Linking error on MSVC

5 years agoFix T46260: Shadeless option ignores Object-Color
Campbell Barton [Fri, 25 Sep 2015 15:36:27 +0000 (01:36 +1000)]
Fix T46260: Shadeless option ignores Object-Color

5 years agoFix node auto-offset to left broken
Julian Eisel [Fri, 25 Sep 2015 15:08:33 +0000 (17:08 +0200)]
Fix node auto-offset to left broken

Own, really stupid mistake in rBc653077bf56 :| Kids, don't commit at night!

5 years agoFix T46249: Boid goal object that has a force field set to 'Every Point' shape causes...
Bastien Montagne [Fri, 25 Sep 2015 13:51:33 +0000 (15:51 +0200)]
Fix T46249: Boid goal object that has a force field set to 'Every Point' shape causes crash.

This is a mere bandage, that whole area is known broken anyway, but at least it should prevent the crash.

Note that that kind of stuff (the efd->index being a pointer) is really bad practice imho...

Should be backported to final 2.76.

5 years agoFix T46239: Cross effect strip input fields can't be changed (in its properties panel).
Bastien Montagne [Fri, 25 Sep 2015 08:54:38 +0000 (10:54 +0200)]
Fix T46239: Cross effect strip input fields can't be changed (in its properties panel).

Those shall not be editable in UI...

5 years agoFix T46263: bpy api - assigning to object.matrix_basis with AXIS_ANGLE rotation mode...
Bastien Montagne [Fri, 25 Sep 2015 07:03:30 +0000 (09:03 +0200)]
Fix T46263: bpy api - assigning to object.matrix_basis with AXIS_ANGLE rotation mode does not work correctly.

Drot in axis angle does not make that much sense anyway (it's even disabled in UI), but let's apply
it correctly at least!

5 years agoFix T46247: Side-reported, bbox for zero-verts object with OSD subsurf and GPU comput...
Bastien Montagne [Fri, 25 Sep 2015 06:38:45 +0000 (08:38 +0200)]
Fix T46247: Side-reported, bbox for zero-verts object with OSD subsurf and GPU compute would be -INF.

Trivial fix, to be backported to final 2.76 if possible.

5 years agoCleanup: And one more commit... (BVH Cache).
Thomas Dinges [Thu, 24 Sep 2015 15:01:58 +0000 (17:01 +0200)]
Cleanup: And one more commit... (BVH Cache).

5 years agoCleanup: Remove some more BVH cache code, for reading/writing the cache.
Thomas Dinges [Thu, 24 Sep 2015 14:49:10 +0000 (16:49 +0200)]
Cleanup: Remove some more BVH cache code, for reading/writing the cache.

5 years agoCleanup: Remove some underlying code for the BVH disk cache.
Thomas Dinges [Thu, 24 Sep 2015 13:47:27 +0000 (15:47 +0200)]
Cleanup: Remove some underlying code for the BVH disk cache.

- There is still some bvh cache code, but that is from the engines initial commit, we might clean this up further or keep it.
- Changes in util_cache.h/.c are kept, this might be re-used in the future.

5 years agoCleanup: Typo fixes in OpenCL log messages.
Thomas Dinges [Thu, 24 Sep 2015 13:34:41 +0000 (15:34 +0200)]
Cleanup: Typo fixes in OpenCL log messages.

5 years agoCycles: Remove the BVH cache feature
Thomas Dinges [Thu, 24 Sep 2015 13:30:15 +0000 (15:30 +0200)]
Cycles: Remove the BVH cache feature

This removes the BVH cache feature from the UI, underlying code will be removed in a separate commit.

The BVH cache was added before we had a multi-threaded BVH build, and a lot of other optimizations were done since then, which makes this not useful anymore.

Fix T46162.

5 years agoMultiview: fix Image Editor not showing Views menu when rendering
Dalai Felinto [Thu, 24 Sep 2015 11:34:54 +0000 (08:34 -0300)]
Multiview: fix Image Editor not showing Views menu when rendering
non-stereo Multi-View camera rigs (unreported)

5 years agoAdd test scripts to ctest & rename
Campbell Barton [Thu, 24 Sep 2015 10:49:44 +0000 (20:49 +1000)]
Add test scripts to ctest & rename

5 years agoFix T46226: Bake normals multi-res crash
Campbell Barton [Thu, 24 Sep 2015 10:14:51 +0000 (20:14 +1000)]
Fix T46226: Bake normals multi-res crash

5 years agoFix T45865: NLA: Auto Blend is not recalculated when adjusting repeat.
Bastien Montagne [Thu, 24 Sep 2015 08:53:09 +0000 (10:53 +0200)]
Fix T45865: NLA: Auto Blend is not recalculated when adjusting repeat.

5 years agoFix T46227: ShapeKeys Lattice by the driver, problem updates in new depsgraph
Sergey Sharybin [Thu, 24 Sep 2015 08:13:00 +0000 (13:13 +0500)]
Fix T46227: ShapeKeys Lattice by the driver, problem updates in new depsgraph

The issue was caused by driver referencing path outside of the key datablock.

5 years agoFix T46232: Boids crash w/ random rule selection
Campbell Barton [Thu, 24 Sep 2015 06:07:30 +0000 (16:07 +1000)]
Fix T46232: Boids crash w/ random rule selection

5 years agoQuiet warning
Campbell Barton [Thu, 24 Sep 2015 05:17:02 +0000 (15:17 +1000)]
Quiet warning

5 years agoKnife: Improve clamping extents in ortho view
Campbell Barton [Thu, 24 Sep 2015 03:34:26 +0000 (13:34 +1000)]
Knife: Improve clamping extents in ortho view

- measure extents from mesh center instead of origin.
- use clamping method, guaranteed not to flip the input vectors direction.
- use cage coords when available (since knife operates on the cage).

5 years agoFix T46219: Knife cuts fail away from center
Campbell Barton [Wed, 23 Sep 2015 16:58:08 +0000 (02:58 +1000)]
Fix T46219: Knife cuts fail away from center