5 years agoCheck for no-op edge separates to quiet asserts when inset individual.
Howard Trickey [Thu, 3 Sep 2015 14:37:42 +0000 (10:37 -0400)]
Check for no-op edge separates to quiet asserts when inset individual.

This causes no change in behavior, since code was alreadying doing
a no-op in bmesh_edge_separate if the edge is a boundary.
But it tripped an assert, annoying in debug builds.
We want to leave assert in bmesh_edge_separate in case callers
expect there to be separate loops after this always.
So putting test in caller.
(Same worry about bmesh_urmv_loop? I checked callers and they
appear OK to me - they deal with the no-op return.)

5 years agoFix T45937: Cycles hair not rendered if children count set to zero
Sergey Sharybin [Thu, 3 Sep 2015 13:54:50 +0000 (18:54 +0500)]
Fix T45937: Cycles hair not rendered if children count set to zero

5 years agoCycles: Fix missing packed images with newer versions of OSL
Sergey Sharybin [Thu, 3 Sep 2015 12:46:18 +0000 (17:46 +0500)]
Cycles: Fix missing packed images with newer versions of OSL

This isn't really complete fix, complete fix would require calculating
derivatives via OIIO API, but supporting this will either end up with
some code duplication or will require some non really safe changes at
this release cycle.

5 years agoFix T45946: Cycles texture interpolation bug
Sergey Sharybin [Thu, 3 Sep 2015 12:14:35 +0000 (17:14 +0500)]
Fix T45946: Cycles texture interpolation bug

Coordinate clamping was done in the wrong order.

5 years agoBGE docs: resolution & fullscreen changes don't work in the embedded player
Sybren A. Stüvel [Thu, 3 Sep 2015 13:05:36 +0000 (15:05 +0200)]
BGE docs: resolution & fullscreen changes don't work in the embedded player

The documentation for bge.render.{setWindowSize,setFullScreen,getFullScreen}
did not mention that those functions are no-ops when using the Blender-
embedded player.

5 years agoPyAPI: tweak to ensure_ext don't lower entire path
Campbell Barton [Thu, 3 Sep 2015 11:58:11 +0000 (21:58 +1000)]
PyAPI: tweak to ensure_ext don't lower entire path

5 years agoFix: Made bpy.path.ensure_ext compatible with compound extensions.
Sybren A. Stüvel [Thu, 3 Sep 2015 11:09:16 +0000 (13:09 +0200)]
Fix: Made bpy.path.ensure_ext compatible with compound extensions.

Extensions such as ".tar.gz" are now also supported. Before this patch,
ensure_ext('demo.tar.gz', '.tar.gz') would return 'demo.tar.tar.gz'.

This results in issues with the `ExportHelper` mix-in class; clicking
an existing file in the file dialogue warns about overwriting it
(highlighting the input box in red), but then saves to a different

Also added a unit test for the new behaviour.

Reviewers: mont29, campbellbarton

Reviewed By: campbellbarton

Differential Revision:

5 years agoFix T45984: Setting custom normals properly requires multiple calls to normals_split_...
Bastien Montagne [Thu, 3 Sep 2015 10:20:50 +0000 (12:20 +0200)]
Fix T45984: Setting custom normals properly requires multiple calls to normals_split_custom_set()

The detection of needed sharp edges (based on given loop normals) would not fully work
on first run in case we started with a complete smooth cyclic loop fan (edge between
first and last loop of the fan would not get checked).

5 years agoCycles: Fix nondeterministic pass ordering when using baker
Sergey Sharybin [Thu, 3 Sep 2015 08:52:56 +0000 (13:52 +0500)]
Cycles: Fix nondeterministic pass ordering when using baker

5 years agoCycles: Fix for uninitialized closure data
Sergey Sharybin [Thu, 3 Sep 2015 08:48:43 +0000 (13:48 +0500)]
Cycles: Fix for uninitialized closure data

This might confuse closure merger.

Spotted by Campbell Barton, thanks!

5 years agoImBuf: Fix crash generating preview for really huge image
Sergey Sharybin [Thu, 3 Sep 2015 07:48:17 +0000 (12:48 +0500)]
ImBuf: Fix crash generating preview for really huge image

In fact, any user of IMB_scalefastImBuf() is now robust against working
with really hires images.

5 years agoCompositor: Support changing distortion models in movie distortion node
Sergey Sharybin [Thu, 3 Sep 2015 07:10:19 +0000 (12:10 +0500)]
Compositor: Support changing distortion models in movie distortion node

Previously only polynomial model worked correct. now changing it to divisions
will work nicely as well.

5 years agoFix T45959: DistanceKey preview used wrong colors
Campbell Barton [Thu, 3 Sep 2015 02:23:23 +0000 (12:23 +1000)]
Fix T45959: DistanceKey preview used wrong colors

Same issue as recent fix in ChannelMatte

5 years agoAnimplayer passed -a, then warned its unknown
Campbell Barton [Wed, 2 Sep 2015 18:25:00 +0000 (04:25 +1000)]
Animplayer passed -a, then warned its unknown

Also modify a copy of argv

5 years agoFix T45979: animplayer crashes w/ DND and audio
Campbell Barton [Wed, 2 Sep 2015 18:12:03 +0000 (04:12 +1000)]
Fix T45979: animplayer crashes w/ DND and audio

Issues re-initializing audaspace

5 years agoFix second part of T45987: Node preview was still using wrong color space
Sergey Sharybin [Wed, 2 Sep 2015 17:45:39 +0000 (22:45 +0500)]
Fix second part of T45987: Node preview was still using wrong color space

5 years agoFix T45995: Auto-set preview range sets superfluous end key.
Bastien Montagne [Wed, 2 Sep 2015 15:48:05 +0000 (17:48 +0200)]
Fix T45995: Auto-set preview range sets superfluous end key.

get_keyframe_extents() would add an extra frame in case of mono-key fcurves in selected set...

Now do the 'not same start/end frames' check later, and also use floor/ceil instead of round
(we want to start at frame 3 if first key is at frame 3.8, reversed-same goes for end frame).

5 years agoCMake: use generator expressions
Campbell Barton [Wed, 2 Sep 2015 15:11:38 +0000 (01:11 +1000)]
CMake: use generator expressions

5 years agoCMake: Fix building w/o FindGit
Campbell Barton [Wed, 2 Sep 2015 14:41:07 +0000 (00:41 +1000)]
CMake: Fix building w/o FindGit

5 years agoAdd missing spin-lock to IMB_makeSingleUser
Campbell Barton [Wed, 2 Sep 2015 13:23:44 +0000 (23:23 +1000)]
Add missing spin-lock to IMB_makeSingleUser

5 years agoFix T45991: Transfer Weight tool UI is inconsistent and crashes blender.
Bastien Montagne [Wed, 2 Sep 2015 11:02:06 +0000 (13:02 +0200)]
Fix T45991: Transfer Weight tool UI is inconsistent and crashes blender.

Since data transfer when called from this tool has reversed behavior (it transfers **towards**
active object, as previous tool), we have to also reverse source/destination layers selection options.

Also fix 'reverse' option being saved, otherwise calling regular operator after 'transfer weights'
would stay in reverse mode, ugly!

5 years agoCleanup: style
Campbell Barton [Wed, 2 Sep 2015 08:39:19 +0000 (18:39 +1000)]
Cleanup: style

5 years agob5287b1 removed important CCG_key_top_level call
Campbell Barton [Wed, 2 Sep 2015 05:39:17 +0000 (15:39 +1000)]
b5287b1 removed important CCG_key_top_level call

Caused subsurf to crash w/o OSD

5 years agoEnable guarded-alloc when --debug-all is passed
Campbell Barton [Wed, 2 Sep 2015 03:39:55 +0000 (13:39 +1000)]
Enable guarded-alloc when --debug-all is passed

5 years agoCorrect help message for debug options
Campbell Barton [Wed, 2 Sep 2015 03:38:55 +0000 (13:38 +1000)]
Correct help message for debug options

5 years agoFix snapping edit-gpencil to edit-mesh
Campbell Barton [Wed, 2 Sep 2015 01:22:28 +0000 (11:22 +1000)]
Fix snapping edit-gpencil to edit-mesh

Reported in T45978

Was checking mesh selection state.

5 years agoFix T45931: Blender Fails to generate previews.
Bastien Montagne [Tue, 1 Sep 2015 15:45:16 +0000 (17:45 +0200)]
Fix T45931: Blender Fails to generate previews.

Root of the issue was, preview generator was filling ID preview with unsigned int,
when RNA only knows of signed integers (and thus generates a python exception
when converting uint outside of int range)...

Using the brand new and much simple float pixels accessor to PreviewImage now.

Why this was working perfectly OK (it seems...) under Linux, and why error (py exception)
was so badly and misleadingly reported on Windows, remains pitch black mystery to me.

5 years agoRNA PreviewImage: add float pixels accessors.
Bastien Montagne [Tue, 1 Sep 2015 15:42:12 +0000 (17:42 +0200)]
RNA PreviewImage: add float pixels accessors.

Raw int pixels can be nice in some cases (much less memory used), but converting to/from float values
(as e.g. expected by/from Image) is not simple in py, error prone and rather slow.

5 years agoAvoid reupdating pbvh data in upload functions, these should have been
Antony Riakiotakis [Tue, 1 Sep 2015 16:56:23 +0000 (19:56 +0300)]
Avoid reupdating pbvh data in upload functions, these should have been
taken care of in draw functions.

Those iterate the whole PBVH tree so better avoid doing them, twice or

5 years agoFix T45978: Ruler ignores new edit-mesh data
Campbell Barton [Tue, 1 Sep 2015 16:28:16 +0000 (02:28 +1000)]
Fix T45978: Ruler ignores new edit-mesh data

5 years agoFix T45974: Bones fail to snap to verts
Campbell Barton [Tue, 1 Sep 2015 15:34:03 +0000 (01:34 +1000)]
Fix T45974: Bones fail to snap to verts

Was an issue with individual-origins + snap

5 years agoFix uninitialized normal var w/ objects snapping
Campbell Barton [Tue, 1 Sep 2015 15:25:13 +0000 (01:25 +1000)]
Fix uninitialized normal var w/ objects snapping

5 years agoAssert vec_roll_to_mat3_normalized's gets a normalized vector
Campbell Barton [Tue, 1 Sep 2015 14:43:53 +0000 (00:43 +1000)]
Assert vec_roll_to_mat3_normalized's gets a normalized vector

5 years agoFix projection painting normal culling operating on individual
Antony Riakiotakis [Tue, 1 Sep 2015 12:59:48 +0000 (15:59 +0300)]
Fix projection painting normal culling operating on individual

This made the normal-related artifacts of projection painting much more
apparent. Now we do culling based on
whole polygons. Pure backface culling still uses individual

5 years agoDon't use GCC-only pragma for all compilers
Sergey Sharybin [Tue, 1 Sep 2015 12:39:43 +0000 (17:39 +0500)]
Don't use GCC-only pragma for all compilers

5 years agoFix T45976: Crash accessing BMesh customdata
Campbell Barton [Tue, 1 Sep 2015 09:57:48 +0000 (19:57 +1000)]
Fix T45976: Crash accessing BMesh customdata

Layers returned from items() and values() could have an invalid index.

5 years agoDepsgraph: Fix compilation error with legacy depsgraph disabled
Sergey Sharybin [Tue, 1 Sep 2015 09:47:39 +0000 (14:47 +0500)]
Depsgraph: Fix compilation error with legacy depsgraph disabled

Reported by Campbell on IRC, partial patch by him as well.

5 years agoFix T45825: Macro redo disable options incorrectly
Campbell Barton [Tue, 1 Sep 2015 08:41:37 +0000 (18:41 +1000)]
Fix T45825: Macro redo disable options incorrectly

A non repeatable operator would disable editing options for all operators after it.

5 years agoFix T45939: Crash w/ BMesh.*.sort()
Campbell Barton [Tue, 1 Sep 2015 05:39:52 +0000 (15:39 +1000)]
Fix T45939: Crash w/ BMesh.*.sort()

5 years agoBMesh: add asserts for BMesh sort ghash lookups
Campbell Barton [Tue, 1 Sep 2015 05:06:07 +0000 (15:06 +1000)]
BMesh: add asserts for BMesh sort ghash lookups

5 years agoCleanup: redundant cast
Campbell Barton [Tue, 1 Sep 2015 05:01:00 +0000 (15:01 +1000)]
Cleanup: redundant cast

5 years agoUse qsort_r for BMesh Py API
Campbell Barton [Tue, 1 Sep 2015 03:56:08 +0000 (13:56 +1000)]
Use qsort_r for BMesh Py API

5 years agoCleanup: pep8
Campbell Barton [Mon, 31 Aug 2015 17:51:50 +0000 (03:51 +1000)]
Cleanup: pep8

5 years agoTrade-marked BPlayer Fix (c)
Bastien Montagne [Mon, 31 Aug 2015 20:03:51 +0000 (22:03 +0200)]
Trade-marked BPlayer Fix (c)

5 years agoFix T45258, impossible to select brush when removing it from 2d
Antony Riakiotakis [Mon, 31 Aug 2015 18:37:38 +0000 (21:37 +0300)]
Fix T45258, impossible to select brush when removing it from 2d

Also system added a brush every time it found no paint brush in the
system which is not what we would want.

* Brush panel stays visible always, regardless of whether there is a
brush or not.
* We search for first available brush when we find no brush in paint
struct instead of always generating a new one.
* Generating and searching for a brush take a mode argument now. Needed
some refactoring to users of BKE_paint_init as well.
* Did some style cleanups for paint mode enums.

Patch is big but it's mostly argument refactoring.

5 years agoerror in last commit
Campbell Barton [Mon, 31 Aug 2015 17:02:14 +0000 (03:02 +1000)]
error in last commit

5 years agoFix T45954: Inset w/ interpolated vertex color
Campbell Barton [Mon, 31 Aug 2015 16:48:28 +0000 (02:48 +1000)]
Fix T45954: Inset w/ interpolated vertex color

Accumulating ubyte color was overflowing.

Thanks to @mont29 for suggested fix.

5 years agoCycles: Make the max value for World MIS Map Resolution a power of two.
Thomas Dinges [Mon, 31 Aug 2015 16:17:16 +0000 (18:17 +0200)]
Cycles: Make the max value for World MIS Map Resolution a power of two.

Old value likely was a copy / paste error.

5 years agoCleanup: Fix some typos in volume code comments.
Thomas Dinges [Mon, 31 Aug 2015 16:08:55 +0000 (18:08 +0200)]
Cleanup: Fix some typos in volume code comments.

5 years agoWrite thumbnail directly
Campbell Barton [Mon, 31 Aug 2015 15:52:27 +0000 (01:52 +1000)]
Write thumbnail directly

BlendThumbnail matches the on-disk format, so just write directly.

5 years agoFix T45955: Python's pdb can't show script source
Campbell Barton [Mon, 31 Aug 2015 13:41:13 +0000 (23:41 +1000)]
Fix T45955: Python's pdb can't show script source

5 years agoRevert fix for T45849 (part 2, tsk!)
Campbell Barton [Mon, 31 Aug 2015 12:45:04 +0000 (22:45 +1000)]
Revert fix for T45849 (part 2, tsk!)

5 years agoerror in comments
Campbell Barton [Mon, 31 Aug 2015 12:24:34 +0000 (22:24 +1000)]
error in comments

5 years agoAlternate fix for T45849: tri-tri intersect error
Campbell Barton [Mon, 31 Aug 2015 12:15:27 +0000 (22:15 +1000)]
Alternate fix for T45849: tri-tri intersect error

Project both triangles onto the same plane to simplify calculations.

5 years agoRevert fix for T45849, alternate fix coming up
Campbell Barton [Mon, 31 Aug 2015 12:12:19 +0000 (22:12 +1000)]
Revert fix for T45849, alternate fix coming up

epsilon check here didn't account for scale, causing T45919

5 years agoMath Lib: Add closest_to_plane helper functions
Campbell Barton [Mon, 31 Aug 2015 10:05:49 +0000 (20:05 +1000)]
Math Lib: Add closest_to_plane helper functions

- closest_to_plane3 (for float3 planes)
- closest_to_plane*_normalized_v3 (for unit length planes)

Use when the plane is known to be unit length

5 years agoFix T45959: DistanceKey output incorrect
Campbell Barton [Mon, 31 Aug 2015 06:20:21 +0000 (16:20 +1000)]
Fix T45959: DistanceKey output incorrect

5 years agoFix uninitialized vars in DistanceKey node
Campbell Barton [Mon, 31 Aug 2015 06:12:14 +0000 (16:12 +1000)]
Fix uninitialized vars in DistanceKey node

5 years agoFix incorrect cast
Campbell Barton [Mon, 31 Aug 2015 03:47:32 +0000 (13:47 +1000)]
Fix incorrect cast

5 years agoCycles: Avoid copying objects in some places of BVH build
Sergey Sharybin [Sun, 30 Aug 2015 14:47:45 +0000 (16:47 +0200)]
Cycles: Avoid copying objects in some places of BVH build

Gives barely measurable speedup of Spatial Split BVH build.

5 years agoPreview generation module: explicitly exclude any lib item.
Bastien Montagne [Sun, 30 Aug 2015 13:48:40 +0000 (15:48 +0200)]
Preview generation module: explicitly exclude any lib item.

Thanks to campbell for raising that point!

5 years agomissing NULL pointer check
Campbell Barton [Sun, 30 Aug 2015 10:11:10 +0000 (20:11 +1000)]
missing NULL pointer check

5 years agoAudaspace: fix for building with scons.
Jörg Müller [Sat, 29 Aug 2015 20:42:20 +0000 (22:42 +0200)]
Audaspace: fix for building with scons.

Removed duplicated code.
CMake so far built only the now removed version and scons tried to build both.

5 years agoCleanup: set `fd->mainlist` to NULL at the end of `blo_read_file_internal()`.
Bastien Montagne [Sat, 29 Aug 2015 14:47:32 +0000 (16:47 +0200)]
Cleanup: set `fd->mainlist` to NULL at the end of `blo_read_file_internal()`.

This is a local var, do not try to use it later!

5 years agoAdd some more missing ID types to TREESTORE_ID_TYPE...
Bastien Montagne [Sat, 29 Aug 2015 13:51:11 +0000 (15:51 +0200)]
Add some more missing ID types to TREESTORE_ID_TYPE...

5 years agoFix missing 'case idx' line in (debug-only & disabled) valgrind-friendly BKE_main_fre...
Bastien Montagne [Sat, 29 Aug 2015 13:07:09 +0000 (15:07 +0200)]
Fix missing 'case idx' line in (debug-only & disabled) valgrind-friendly BKE_main_free() code.

5 years agoFix T45736: Channel key error: color spaces modes
Sergey Sharybin [Fri, 28 Aug 2015 16:44:27 +0000 (18:44 +0200)]
Fix T45736: Channel key error: color spaces modes

Was missing conversion back to RGB space.

5 years agoFix remaining parts of T44881, missing update on loading file
Sergey Sharybin [Fri, 28 Aug 2015 16:28:48 +0000 (18:28 +0200)]
Fix remaining parts of T44881, missing update on loading file

5 years agoFix UI font drawing getting width w/o kerning
Campbell Barton [Fri, 28 Aug 2015 16:09:12 +0000 (02:09 +1000)]
Fix UI font drawing getting width w/o kerning

5 years agoPartial fix of T44881: Fix for missing particles update when changing seed
Sergey Sharybin [Fri, 28 Aug 2015 15:16:50 +0000 (17:16 +0200)]
Partial fix of T44881: Fix for missing particles update when changing seed

Was only visible with new dependency graph.

Changing emit_from still doesn't behave fully reliably tho, that needs some
closer investigation.

5 years agoFix assigning flag to bool
Campbell Barton [Fri, 28 Aug 2015 14:21:18 +0000 (00:21 +1000)]
Fix assigning flag to bool

5 years agoRevert "Blind attempt to fix T45931: Blender Fails to generate previews."
Bastien Montagne [Fri, 28 Aug 2015 15:01:09 +0000 (17:01 +0200)]
Revert "Blind attempt to fix T45931: Blender Fails to generate previews."

This reverts commit c4ab521e2609be02ab9680fc4eb7726a2af400ed, since it does not actually fix the issue...

5 years agoFix T45929: OpenSubdiv was doing extra object recalc tags
Sergey Sharybin [Fri, 28 Aug 2015 12:54:27 +0000 (14:54 +0200)]
Fix T45929: OpenSubdiv was doing extra object recalc tags

5 years agoReadfile: Minor optimization in undo/redo case: do not call `do_versions_userdef...
Bastien Montagne [Fri, 28 Aug 2015 12:06:01 +0000 (14:06 +0200)]
Readfile: Minor optimization in undo/redo case: do not call `do_versions_userdef` either.

5 years agoBlind attempt to fix T45931: Blender Fails to generate previews.
Bastien Montagne [Fri, 28 Aug 2015 11:22:03 +0000 (13:22 +0200)]
Blind attempt to fix T45931: Blender Fails to generate previews.

Cannot reproduce the issue here on linux, but have the feeling windows builds are much
more easily broken with referencing bad data from bpy. So here guessing direct loop
over when you do add and remove stuff from said xxx inside the loop
is not a good idea - which seems logical in the end. :P

5 years agoOpenSubdiv: Remove some dead code
Sergey Sharybin [Fri, 28 Aug 2015 10:46:23 +0000 (12:46 +0200)]
OpenSubdiv: Remove some dead code

5 years agoFix T45930 weights not appearing in editmode when show weights option
Antony Riakiotakis [Fri, 28 Aug 2015 10:40:52 +0000 (13:40 +0300)]
Fix T45930 weights not appearing in editmode when show weights option
was enabled.

Caused by an -unneeded now- fix for opensubdiv. Code caused the vertex
colors to be uninitialized. Thanks to Sergey for confirming that initial
issue is no longer a problem.

5 years agoUI: Panels shared same class-name
Campbell Barton [Fri, 28 Aug 2015 05:33:01 +0000 (15:33 +1000)]
UI: Panels shared same class-name

5 years agoFix T45933: Can't select scaled camera in camera view
Campbell Barton [Fri, 28 Aug 2015 02:10:21 +0000 (12:10 +1000)]
Fix T45933: Can't select scaled camera in camera view

5 years agoSequence/Scene render fixes
Campbell Barton [Fri, 28 Aug 2015 01:07:41 +0000 (11:07 +1000)]
Sequence/Scene render fixes

- wasn't checking subframe to see if the scene needed to be re-evaluated.
- unneeded int/float conversion storing original frame.
- moved cleanup block into one place to avoid confusion.

5 years agoCompositor: Reduce number of divisions in EWA filtering
Sergey Sharybin [Thu, 27 Aug 2015 17:43:33 +0000 (19:43 +0200)]
Compositor: Reduce number of divisions in EWA filtering

5 years agoFix T45617: Map UV node produces image artifacts
Sergey Sharybin [Thu, 27 Aug 2015 16:50:40 +0000 (18:50 +0200)]
Fix T45617: Map UV node produces image artifacts

Basically filtering was happening twice, first time by applying weights of EWA
filter itself and then by applying subpixel offset while reading pixel values.

5 years agoSupport subframe evaluation for scene strips
Campbell Barton [Thu, 27 Aug 2015 15:25:23 +0000 (01:25 +1000)]
Support subframe evaluation for scene strips

Useful when used with the speed effect.

5 years agoUpdate of our *nix .desktop file.
Bastien Montagne [Thu, 27 Aug 2015 14:31:13 +0000 (16:31 +0200)]
Update of our *nix .desktop file.

Based on patch by Alex (AlexL) (T45927), thanks.

5 years agoMake .blend file thumbnail reading simpler and more coherent, read/store them when...
Bastien Montagne [Thu, 27 Aug 2015 13:53:23 +0000 (15:53 +0200)]
Make .blend file thumbnail reading simpler and more coherent, read/store them when reading in background mode.

Primary goal of this commit is to fix an annoying issue - when processing and saving .blend
files in background mode you lose their thumbnails, since it can only be generated with
an OpenGL context.

Solution to that is to read .blend thumbnail while reading .blend file (only done in background
mode currently), and store it in Main struct.

Also, this lead to removing .blend file reading code from thumb_blend (no need to have doublons).
We now have a small interface in regular reading code area, which keeps it reasonbaly light
by only reading/parsing header info, and first few BHead blocks.

This makes code reading .blend thumbnail about 3 to 4 times slower than previous highly specialized
one in blend_thumb.c, but overall thumbnail generation of a big .blend files folder only grows
of about 1%, think we can bare with it.

Finally, since thumbnail is now optionally stored in Main struct, it makes it easy to allow user
to define their own custom one (instead of auto-generated one). RNA API for this was not added though,
accessing that kind of .blend meta-data has to be rethought a bit on a bigger level first.

Reviewers: sergey, campbellbarton

Subscribers: Severin, psy-fi

Differential Revision:

5 years agoMissed version update loading in background mode
Campbell Barton [Thu, 27 Aug 2015 13:11:13 +0000 (23:11 +1000)]
Missed version update loading in background mode

5 years agoFix T45926: Drivers fail in background mode
Campbell Barton [Thu, 27 Aug 2015 13:08:52 +0000 (23:08 +1000)]
Fix T45926: Drivers fail in background mode

Scene evaluation was done before text blocks were registered.

5 years agoBuildbot: Correction to previous commit
Sergey Sharybin [Thu, 27 Aug 2015 10:22:44 +0000 (12:22 +0200)]
Buildbot: Correction to previous commit

Previous commit didn't really disable cuda binaries for some reason.

5 years agoFix T45702: Editing smoke while viewport render and blender bug
Sergey Sharybin [Thu, 27 Aug 2015 10:10:01 +0000 (12:10 +0200)]
Fix T45702: Editing smoke while viewport render and blender bug

Issue was caused by blender internal accessing data from DNA during rendering.

There's no simple solution to make stuff thread safe, so for now simply restart
rendering on frame update.

5 years agoOpenSubdiv: Fix crash toggling edit mode with new depsgraph
Sergey Sharybin [Thu, 27 Aug 2015 10:01:20 +0000 (12:01 +0200)]
OpenSubdiv: Fix crash toggling edit mode with new depsgraph

5 years agoOpenSubdiv: Tweaks to detecting whether geometry data is needed on GPU with new DEG
Sergey Sharybin [Thu, 27 Aug 2015 09:47:56 +0000 (11:47 +0200)]
OpenSubdiv: Tweaks to detecting whether geometry data is needed on GPU with new DEG

5 years agoBuildbot: Disable CUDA binaries on win32
Sergey Sharybin [Thu, 27 Aug 2015 09:42:49 +0000 (11:42 +0200)]
Buildbot: Disable CUDA binaries on win32

They started to give issues as well, need some dedicated time to look
into the issues.

5 years agoFix T45921: Screw modifier flips vertex normals
Campbell Barton [Thu, 27 Aug 2015 09:22:16 +0000 (19:22 +1000)]
Fix T45921: Screw modifier flips vertex normals

5 years agoOpenSubdiv: Attempt to solve crash on certain GPUs/drivers
Sergey Sharybin [Thu, 27 Aug 2015 09:04:54 +0000 (11:04 +0200)]
OpenSubdiv: Attempt to solve crash on certain GPUs/drivers

5 years agoFix T45920: Loopcut w/ shrinkwrap crash
Campbell Barton [Thu, 27 Aug 2015 07:36:43 +0000 (17:36 +1000)]
Fix T45920: Loopcut w/ shrinkwrap crash

5 years agoUse correct size for BVH insertion
Campbell Barton [Thu, 27 Aug 2015 06:12:21 +0000 (16:12 +1000)]
Use correct size for BVH insertion

5 years agoOpenSubdiv: Fix error found by PerfectionCat,
Antony Riakiotakis [Thu, 27 Aug 2015 07:05:58 +0000 (10:05 +0300)]
OpenSubdiv: Fix error found by PerfectionCat,

Use glew, not gl constants to detect presence of extensions.
glProgramParameterEXTi is part of GLEW_EXT_geometry_shader4

5 years agoFix T43826: Sculpt grab anchored fails
Campbell Barton [Thu, 27 Aug 2015 05:22:08 +0000 (15:22 +1000)]
Fix T43826: Sculpt grab anchored fails

Regression caused by GSOC2013 merge f745564

5 years agoDNA/IO: struct ghash lookup didn't set 'lastfind'
Campbell Barton [Thu, 27 Aug 2015 03:25:04 +0000 (13:25 +1000)]
DNA/IO: struct ghash lookup didn't set 'lastfind'

Internal inconsistency: lastfind was being checked
on every DNA_struct_find_nr call, but never set.

Gives minor speedup reading files.

5 years agoFix crash switching to rotate from edge-slide
Campbell Barton [Thu, 27 Aug 2015 01:09:52 +0000 (11:09 +1000)]
Fix crash switching to rotate from edge-slide

Caused by own fix for T45458