blender.git
4 years agoCMake: rename LLVM_DIRECTORY -> LLVM_ROOT_DIR
Campbell Barton [Thu, 5 Mar 2015 04:36:22 +0000 (15:36 +1100)]
CMake: rename LLVM_DIRECTORY -> LLVM_ROOT_DIR

Matching convention with all other libs

4 years agoCMake: was defaulting to an old LLVM version
Campbell Barton [Thu, 5 Mar 2015 04:33:57 +0000 (15:33 +1100)]
CMake: was defaulting to an old LLVM version

Made finding LLVM fail.

only use LLVM_VERSION if set, else set to installed version

4 years agoCMake: mark lib/debug options advanced
Campbell Barton [Thu, 5 Mar 2015 04:23:22 +0000 (15:23 +1100)]
CMake: mark lib/debug options advanced

4 years agoFix T43890: Crash, Alt-D over operator redo button
Campbell Barton [Wed, 4 Mar 2015 22:10:16 +0000 (09:10 +1100)]
Fix T43890: Crash, Alt-D over operator redo button

4 years agoBGE: Fix crash when a constraint misses its reference object
Sybren A. Stüvel [Wed, 4 Mar 2015 12:21:38 +0000 (13:21 +0100)]
BGE: Fix crash when a constraint misses its reference object

Blender allows you to create a constraint without specifying its reference
object, even when the constraint requires such a reference. The BGE would
crash on this. This change simply ignores such a constraint.

4 years agoMath Lib: redundant axis flip decomposing a plane
Campbell Barton [Wed, 4 Mar 2015 09:08:16 +0000 (20:08 +1100)]
Math Lib: redundant axis flip decomposing a plane

Also add a faster, non-normalized version of the function.

(Neither are used currently used).

4 years agoFix T43879: Autokey ignore pref /w viewlock-camera
Campbell Barton [Wed, 4 Mar 2015 06:15:11 +0000 (17:15 +1100)]
Fix T43879: Autokey ignore pref /w viewlock-camera

4 years agoFix for snap to cursor /w parents (object/pose)
Campbell Barton [Wed, 4 Mar 2015 03:38:16 +0000 (14:38 +1100)]
Fix for snap to cursor /w parents (object/pose)

Also don't use pose-bone transform unless the user is in pose-mode.

4 years agoSnap: ignore unselected items, /w snap from active
Campbell Barton [Wed, 4 Mar 2015 04:10:48 +0000 (15:10 +1100)]
Snap: ignore unselected items, /w snap from active

4 years agoOwn error in recent commit (Snap active)
Campbell Barton [Wed, 4 Mar 2015 02:28:45 +0000 (13:28 +1100)]
Own error in recent commit (Snap active)

4 years agoRNA: rename mesh validate argument
Campbell Barton [Wed, 4 Mar 2015 01:58:14 +0000 (12:58 +1100)]
RNA: rename mesh validate argument

cleanup_cddata -> clean_customdata

4 years agoFixed wrong label and hint text in Collada exporter
Gaia Clary [Tue, 3 Mar 2015 22:42:17 +0000 (23:42 +0100)]
Fixed wrong label and hint text in Collada exporter

4 years agofix T43094 Added check for out of bounds in vertex color array
Gaia Clary [Fri, 27 Feb 2015 20:56:14 +0000 (21:56 +0100)]
fix T43094 Added check for out of bounds in vertex color array

4 years agoCycles: Fix embarrassing type remained after getting rid of utility SWAP()
Sergey Sharybin [Tue, 3 Mar 2015 19:16:21 +0000 (00:16 +0500)]
Cycles: Fix embarrassing type remained after getting rid of utility SWAP()

4 years agoCycles: Fix/workaround for toggling world MIS causing CUDA to fail
Sergey Sharybin [Tue, 3 Mar 2015 13:48:37 +0000 (18:48 +0500)]
Cycles: Fix/workaround for toggling world MIS causing CUDA to fail

Seems it's just another issue with the compiler, worked around by explicitly
telling not to inline some function.

In theory we can unify this with CPU, but we're quite close to the release
so better be safe than sorry.

4 years agoStyle cleanup
Antony Riakiotakis [Tue, 3 Mar 2015 12:43:47 +0000 (13:43 +0100)]
Style cleanup

4 years agoWindows: Add stacktrace support when unhandled exception occurs.
Antony Riakiotakis [Tue, 3 Mar 2015 12:39:15 +0000 (13:39 +0100)]
Windows: Add stacktrace support when unhandled exception occurs.

We need to register the exception handler slightly differently here, as
well as adding DbgHelp as a library, but according to docs it should be
supported in recent Windows editions (Win XP included even).

We can try it first and revert if there are issues.

4 years agoAnother stability commit for legacy users - don't crash when toggling
Antony Riakiotakis [Tue, 3 Mar 2015 10:34:23 +0000 (11:34 +0100)]
Another stability commit for legacy users - don't crash when toggling
dyntopo just notify user that their system doesn't support it.

4 years agoGrrr, missed those ones in previous commit!
Bastien Montagne [Tue, 3 Mar 2015 09:44:14 +0000 (10:44 +0100)]
Grrr, missed those ones in previous commit!

4 years agoUI messages fixes...
Bastien Montagne [Tue, 3 Mar 2015 09:40:52 +0000 (10:40 +0100)]
UI messages fixes...

4 years agoCleanup: remove unused collada conversion
Campbell Barton [Tue, 3 Mar 2015 04:40:34 +0000 (15:40 +1100)]
Cleanup: remove unused collada conversion

4 years agoFix mesh-validate for polys using successive verts
Campbell Barton [Tue, 3 Mar 2015 04:32:35 +0000 (15:32 +1100)]
Fix mesh-validate for polys using successive verts

4 years agoFix T43151: Collada meshes crash Blender
Campbell Barton [Tue, 3 Mar 2015 04:30:45 +0000 (15:30 +1100)]
Fix T43151: Collada meshes crash Blender

We have multiple reports of collada files crashing, run all meshes through validate.

4 years agoCleanup: collada had own defined Global (why?)
Campbell Barton [Tue, 3 Mar 2015 03:49:43 +0000 (14:49 +1100)]
Cleanup: collada had own defined Global (why?)

Wasn't needed and made linking fail here

4 years agoBugfix T43866: 'Purge all' button in the outliner
Joshua Leung [Mon, 2 Mar 2015 23:51:50 +0000 (12:51 +1300)]
Bugfix T43866: 'Purge all' button in the outliner

The cleanups in 08a2101 forgot to modify the UI code which was using these values.

4 years agoKnife: fix glitch dragging mouse outside the face
Campbell Barton [Mon, 2 Mar 2015 22:27:38 +0000 (09:27 +1100)]
Knife: fix glitch dragging mouse outside the face

Had a small gap between the last-vertex & new-cut

4 years agoFix T43864: Saving from top area in fullscreen changes wrong area into File Browser
Julian Eisel [Mon, 2 Mar 2015 21:35:57 +0000 (22:35 +0100)]
Fix T43864: Saving from top area in fullscreen changes wrong area into File Browser

We now always use the actual fullscreen area.

4 years agoFix T43862: Knife fails with concave ngon
Campbell Barton [Mon, 2 Mar 2015 13:19:26 +0000 (00:19 +1100)]
Fix T43862: Knife fails with concave ngon

4 years agoBMesh: BM_loop/edge_point_side_of_loop_test
Campbell Barton [Mon, 2 Mar 2015 12:50:52 +0000 (23:50 +1100)]
BMesh: BM_loop/edge_point_side_of_loop_test

change behavior to use a negative number when outside,
and return the signed, squared distance.

4 years agoFix dist_signed_squared_to_corner_v3v3v3 with concave corners
Campbell Barton [Mon, 2 Mar 2015 12:49:52 +0000 (23:49 +1100)]
Fix dist_signed_squared_to_corner_v3v3v3 with concave corners

4 years agoRevert "Reshuffle applying of solver results a bit to ensure it works exactly"
Lukas Tönne [Mon, 2 Mar 2015 11:18:57 +0000 (12:18 +0100)]
Revert "Reshuffle applying of solver results a bit to ensure it works exactly"

This reverts commit 4c723eb80e299eb6ca11ad72b5fcbe8746c4a854.

4 years agoFix T43859: Texture baking crashes blender
Sergey Sharybin [Mon, 2 Mar 2015 11:06:42 +0000 (16:06 +0500)]
Fix T43859: Texture baking crashes blender

The issue was caused by particles using billboard distribution, which
requires either object to be specified or camera in the scene to be
existing.

This commit prevents backing from crash, but bake result might not be
totally expected because of the thing mentioned above.

4 years agoReshuffle applying of solver results a bit to ensure it works exactly
Lukas Tönne [Mon, 2 Mar 2015 10:46:10 +0000 (11:46 +0100)]
Reshuffle applying of solver results a bit to ensure it works exactly
as complicated as before cloth solver changes.

Still doesn't solve the collapsing cloth cube issue mentioned in T43406,
probably the bending springs work somewhat differently now.

4 years agoFix missing newline in the button cycle error print
Sergey Sharybin [Mon, 2 Mar 2015 09:26:52 +0000 (14:26 +0500)]
Fix missing newline in the button cycle error print

4 years agocleanup: whitespace
Campbell Barton [Mon, 2 Mar 2015 05:43:14 +0000 (16:43 +1100)]
cleanup: whitespace

4 years agoerror in last commit
Campbell Barton [Mon, 2 Mar 2015 05:44:10 +0000 (16:44 +1100)]
error in last commit

4 years agoFix T43848: Wrong direction recalculating normals
Campbell Barton [Mon, 2 Mar 2015 02:08:26 +0000 (13:08 +1100)]
Fix T43848: Wrong direction recalculating normals

Face islands furthest faces could face towards the center point when connected to sharp edges.

Now check the furthest edge of the furthest face, to test for face winding.

4 years agoBMesh: calc normals, use area weighted center
Campbell Barton [Mon, 2 Mar 2015 02:04:46 +0000 (13:04 +1100)]
BMesh: calc normals, use area weighted center

Prevents many small faces skewing center calculation.

4 years agocleanup: float/double promotion, redundant casts
Campbell Barton [Mon, 2 Mar 2015 00:00:22 +0000 (11:00 +1100)]
cleanup: float/double promotion, redundant casts

4 years agoBugfix T43851: Creating a new action after stashing crashes blender
Joshua Leung [Sun, 1 Mar 2015 16:04:38 +0000 (05:04 +1300)]
Bugfix T43851: Creating a new action after stashing crashes blender

4 years agoUse the old double-step collision method only for cloth.
Lukas Tönne [Sun, 1 Mar 2015 14:37:55 +0000 (15:37 +0100)]
Use the old double-step collision method only for cloth.

This method does not work for hair anyway. Even though hair collision
needs work at this point, it's still better than nothing.

4 years agoFix T43406: Bring back cloth collisions.
Lukas Tönne [Sun, 1 Mar 2015 11:33:30 +0000 (12:33 +0100)]
Fix T43406: Bring back cloth collisions.

This was disabled during the course of hair dynamics work. The cloth
collision solution is based on a secondary velocity-only solver step.

While this approach is usable in general, the collision response
calculation still does not work well for hair meshes. Better contact
point generation is needed here (Bullet) and preferably an improved
solver for unilateral constraints.

4 years agoI18n: Do not skip Polish anymore, translation work has started on it.
Bastien Montagne [Sat, 28 Feb 2015 20:51:17 +0000 (21:51 +0100)]
I18n: Do not skip Polish anymore, translation work has started on it.

4 years agoNLA Drawing Tweaks
Joshua Leung [Sat, 28 Feb 2015 13:15:25 +0000 (02:15 +1300)]
NLA Drawing Tweaks

* Strips in muted tracks are also drawn with dotted borders now to make it clearer
  that they are not contributing.

TODO:
* Perhaps dotted should be used for protected, and opacity for muted instead?

4 years agoTweaks for NLA and newly added Action Stash Tracks
Joshua Leung [Sat, 28 Feb 2015 12:48:38 +0000 (01:48 +1300)]
Tweaks for NLA and newly added Action Stash Tracks

* Do not make Action Stash Tracks or their strips active/selected
* Lock the track to prevent accidental editing/adding of other strips

* Prevent strips from being added into locked tracks by the pushdown operator.
  This is mainly to prevent pushdown actions from getting into the stash tracks.

4 years agoAction Editor: "New Action" operator now stashes old actions, and is used by default...
Joshua Leung [Sat, 28 Feb 2015 12:35:34 +0000 (01:35 +1300)]
Action Editor: "New Action" operator now stashes old actions, and is used by default again

This commit modifies the "New Action" operator to always stash the old action
before it creates a new one. As a result, the old active action will now have
a proper user of sorts after the new one is created, preventing previously
created actions from being lost.

Now that the New operator does this, it can be used for the Action Editor header AND
NLA Editor (Animation Data Panel -> Active Action) again. The "stash and create"
operator is somewhat redundant at this point as a result.

4 years agoAction Editor WIP: Adding new actions in Action Editor now uses the "stash and create...
Joshua Leung [Sat, 28 Feb 2015 11:38:44 +0000 (00:38 +1300)]
Action Editor WIP: Adding new actions in Action Editor now uses the "stash and create new" operator

In constrast to the old "new" operator, this operator will stash the existing action
in the stack to prevent it from being lost. This situation isn't totally ideal yet,
since the NLA Editor still calls the old method.

4 years agoAction Stashing: Don't allow an action to get stashed more than once
Joshua Leung [Fri, 27 Feb 2015 23:57:17 +0000 (12:57 +1300)]
Action Stashing: Don't allow an action to get stashed more than once

4 years agoReshuffle code
Joshua Leung [Fri, 27 Feb 2015 23:49:07 +0000 (12:49 +1300)]
Reshuffle code

4 years agoCode Cleanup: Deduplicate logic for getting AnimData block associated with Action...
Joshua Leung [Fri, 27 Feb 2015 23:42:10 +0000 (12:42 +1300)]
Code Cleanup: Deduplicate logic for getting AnimData block associated with Action Editor modes

4 years agoCode cleanup: Split off the creation and setting logic for new actions into different...
Joshua Leung [Fri, 27 Feb 2015 23:38:02 +0000 (12:38 +1300)]
Code cleanup: Split off the creation and setting logic for new actions into different functions

This is also just as prep for the next step

4 years agoUI Tweak: Display labels for Push Down and Stash
Joshua Leung [Fri, 27 Feb 2015 22:53:17 +0000 (11:53 +1300)]
UI Tweak: Display labels for Push Down and Stash

I'm still not sure which version is better, but I suspect that with the labels,
this might help users figure this out more than if they were just unlabelled
icon buttons...

4 years agoCode Cleanup: Separate out the logic for stashing actions into a separate function
Joshua Leung [Fri, 27 Feb 2015 22:51:50 +0000 (11:51 +1300)]
Code Cleanup: Separate out the logic for stashing actions into a separate function

4 years agoAction Editor: Stash Action Operator
Joshua Leung [Fri, 27 Feb 2015 14:32:13 +0000 (03:32 +1300)]
Action Editor: Stash Action Operator

This operator (the snowflake icon, beside the pushdown button on the Action Editor
header) adds the currently active action to the NLA stack in a muted track, then
creates + loads a new action ready to be populated with new keyframes.
Since the NLA is being used to hang on to all the actions here, no actions are
getting lost.

Usage Notes (there will be some additional tweaks to make this nicer):
* To preview different actions that have been "stashed", simply click the "Solo"
  toggle for the track containing the action in question. Playing back the NLA will
  now show the stashed track
* To edit a previously stashed action - simply enter tweakmode on it in the NLA
  while the "Solo" toggle is enabled.

Todo:
* Add some more operators here to polish up the Action <-> NLA bridge to make the
  layered and stash workflows smoother. Examples include some tools to easily
  switch between the different actions layers in the stack, as well as making it
  easier to get out of tweakmode (and sync up the action lengths)

* Review and cleanup the behaviour of the "new" operator here to avoid the old
  problems that users were running into

* After the next release - Implement the full Action Libraries functionality, with
  ways to bridge the stashed strips over to a full-blown library.

4 years agoNLA: Auto-Blends option is no longer enabled on all newly added strips
Joshua Leung [Fri, 27 Feb 2015 13:43:44 +0000 (02:43 +1300)]
NLA: Auto-Blends option is no longer enabled on all newly added strips

This may be put back again later, but currently, this is a bit too trigger-happy
to have it on. It tends to mess up results more than it helps.

4 years agoFix for NLA Solo/Mute behaviour
Joshua Leung [Fri, 27 Feb 2015 06:36:13 +0000 (19:36 +1300)]
Fix for NLA Solo/Mute behaviour

The Solo and Mute functionality for the NLA system should really be mutually
exclusive features. They both affect whether a given track applies or not.
The only difference is that the Solo option mutes all the others, while the Mute
only does this on a per track basis.

Before this fix, muting a strip and then making it solo meant that the solo'd
track would not play at all, which isn't really what we want.

4 years agoFix for previous commit: Pop up a warning in cases where the operator will refuse...
Joshua Leung [Fri, 27 Feb 2015 05:29:53 +0000 (18:29 +1300)]
Fix for previous commit: Pop up a warning in cases where the operator will refuse to do anything

4 years agoAction Editor: Added "Push Down" operator to send the current action on to the NLA...
Joshua Leung [Fri, 27 Feb 2015 04:06:44 +0000 (17:06 +1300)]
Action Editor: Added "Push Down" operator to send the current action on to the NLA Stack

This commit exposes the "Push Down" button/functionality found in the NLA Editor
to the Action Editor, so that actions can be added NLA Stack from here too. The
main point of this for now is to make the whole layered-animation workflow nicer
more efficient, but not requiring the second editor be visible in common cases.
It also conveniently sets things up for the next few changes (already hinted at
here)...

4 years agoCode Cleanup: Clarify some comments regarding usercount management
Joshua Leung [Fri, 27 Feb 2015 04:03:10 +0000 (17:03 +1300)]
Code Cleanup: Clarify some comments regarding usercount management

(Note for the uninitiated looking at the diffs: this is very much *not* what
 you're probably thinking right now, if you're looking at the line in
 act_new_exec())

4 years agogameengine physics: moving collision filtering inside the collision panel and relabel...
Ines Almeida [Fri, 27 Feb 2015 11:11:49 +0000 (11:11 +0000)]
gameengine physics: moving collision filtering inside the collision panel and relabeling some parts

4 years agoUI: place camera DOF buttons to be more compact
Campbell Barton [Sat, 28 Feb 2015 06:26:05 +0000 (17:26 +1100)]
UI: place camera DOF buttons to be more compact

4 years agoOutliner: rename "Orphaned Datablocks" menu item
Campbell Barton [Sat, 28 Feb 2015 05:24:54 +0000 (16:24 +1100)]
Outliner: rename "Orphaned Datablocks" menu item

Makes the drop-down push searchbox out of the view (which is already quite cramped)
change to "Orphan Data".

4 years agoBGE: Fix ShowDeprecationWarning macro.
Thomas Szepe [Fri, 27 Feb 2015 22:05:06 +0000 (23:05 +0100)]
BGE: Fix ShowDeprecationWarning macro.

Reviewers: lordloki, brita_, sybren, moguri

Reviewed By: moguri

Differential Revision: https://developer.blender.org/D1144

4 years agoPy Enum props definition: 'default' parameter cleanup/fix.
Bastien Montagne [Fri, 27 Feb 2015 22:02:13 +0000 (23:02 +0100)]
Py Enum props definition: 'default' parameter cleanup/fix.

* There was no real default value for this parameter (neither "" nor None would work the same as
  not specifying that parameter). Now, 'None' is considered as default value, and you get
  exact same behavior with this value and if not specifying it. This is important at least for
  consistency, and potentially too in some esoteric cases (like generated code or so).
* Add a warning about the fact that 'default' parameter shall not be psecified when items
  are given a callback function.

4 years agoFix T43834: Text object looses one char after another by entering/leaving edit mode.
Bastien Montagne [Fri, 27 Feb 2015 20:31:54 +0000 (21:31 +0100)]
Fix T43834: Text object looses one char after another by entering/leaving edit mode.

Own mistake in refactoring of `BLI_strncpy_wchar_as_utf8()`, if given size was exactly
the one needed, we'd lost last char (off-by-one error).

Many thanks to plasmasolutions (Thomas Beck) who found the issue and did
all the investigation work here!

4 years agoGet rid of gluScaleImage in our game engine as well.
Antony Riakiotakis [Fri, 27 Feb 2015 13:47:39 +0000 (14:47 +0100)]
Get rid of gluScaleImage in our game engine as well.

4 years agoMake some adjustments to the units for viewport camera dof.
Antony Riakiotakis [Fri, 27 Feb 2015 13:05:12 +0000 (14:05 +0100)]
Make some adjustments to the units for viewport camera dof.

This is still not so correct, to make it work we really have to do a
blurring pass based on the real coc (currently we are just blending 3
levels of blur)

4 years agoFix WPaint inactive when painting on a vgroup and the only other vgroup is locked.
Bastien Montagne [Fri, 27 Feb 2015 10:43:10 +0000 (11:43 +0100)]
Fix WPaint inactive when painting on a vgroup and the only other vgroup is locked.

`enforce_locks()` would reset weights of non-locked modified vgroups if it could not
find any other non-modified non-locked vgroup to 'distribute' weights into.
Sounds rather stupid, yet I hope I did not break something else, this code
is rather convoluted to say the least.

Side-reported by zeauro (ronan ducluzeau) in T43814, thanks!

4 years agoFix T43814: Skinning : set parent with automatic weights doesn't take into account...
Bastien Montagne [Fri, 27 Feb 2015 10:39:03 +0000 (11:39 +0100)]
Fix T43814: Skinning : set parent with automatic weights doesn't take into account locked vertex groups.

Simply skip a bone's vgroup when it already exists and is locked.

4 years agoerror in last commit
Campbell Barton [Fri, 27 Feb 2015 09:58:32 +0000 (20:58 +1100)]
error in last commit

4 years agoFix T43605: Spot Cone+Curve creates odd shadow
Campbell Barton [Fri, 27 Feb 2015 09:54:57 +0000 (20:54 +1100)]
Fix T43605: Spot Cone+Curve creates odd shadow

Curves could leave glFrontFace in an unknown state.

4 years agoFix T42833: Kink on nurbs curve
Campbell Barton [Fri, 27 Feb 2015 09:14:15 +0000 (20:14 +1100)]
Fix T42833: Kink on nurbs curve

Threshold for normalizing was too big.

4 years agoFix T43807: invalid mesh from 2-sided cyclic curve
Campbell Barton [Fri, 27 Feb 2015 06:43:10 +0000 (17:43 +1100)]
Fix T43807: invalid mesh from 2-sided cyclic curve

4 years agocleanup: typos
Campbell Barton [Fri, 27 Feb 2015 04:41:50 +0000 (15:41 +1100)]
cleanup: typos

4 years agoMEM_SAFE_FREE caused issues /w const & GCC5
Campbell Barton [Fri, 27 Feb 2015 04:26:22 +0000 (15:26 +1100)]
MEM_SAFE_FREE caused issues /w const & GCC5

4 years agocleanup: double promotion
Campbell Barton [Fri, 27 Feb 2015 03:26:34 +0000 (14:26 +1100)]
cleanup: double promotion

4 years agocleanup: use GHOST_PRINT instead of stdio
Mike Erwin [Fri, 27 Feb 2015 02:21:11 +0000 (21:21 -0500)]
cleanup: use GHOST_PRINT instead of stdio

Mostly from my own NDoF stuff.

4 years agocleanup: ghost Win32 event processing functions
Mike Erwin [Fri, 27 Feb 2015 00:53:55 +0000 (19:53 -0500)]
cleanup: ghost Win32 event processing functions

Removed window arg from key conversion functions.

Removed processModifierKeys declaration since that function was
apparently never implemented.

Using Win32-specific classes instead of their generic superclass -- this
helps in a few cases like WinTab.

4 years agoCompile fixes for mingw64
Joshua Leung [Fri, 27 Feb 2015 00:12:21 +0000 (13:12 +1300)]
Compile fixes for mingw64

* m_hDC was always included after m_hWnd in all the constructors and other functions,
  but the order was reversed in the struct, meaning that they would not get initialised
  correctly

* Got rid of the gotos for the error handling case in initializeDrawingContext()
  This was causing "jump to label ... crosses initialisation" errors for the calls
  to get GL version string info (i.e. const char *vendor = ...;  etc.)  I wasn't sure
  if those glGetString calls needed the rest of the context to be defined first, so
  I decided to leave them where they are now, and got rid of the gotos (which were
  making this particular piece of code a bit confusing) instead.

TODO:
There are still a bunch of warnings about around 660, which I haven't managed to solve
(but at least they won't prevent Blender from compiling)

  narrowing conversion of '(stereoVisual ? 1063 : 1061)' from 'int' to
  'DWORD {aka long unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]

4 years agocleanup: ghost Win32 IME
Mike Erwin [Thu, 26 Feb 2015 23:40:09 +0000 (18:40 -0500)]
cleanup: ghost Win32 IME

Took out lots of redundant function calls (getters). Also wrapped more
code in WITH_INPUT_IME guards.

4 years agoFix T43806: Knife project crashes
Campbell Barton [Thu, 26 Feb 2015 22:46:56 +0000 (09:46 +1100)]
Fix T43806: Knife project crashes

Need to re-create the bmbvh after executing the cut.

4 years agocleanup: spelling & typos
Mike Erwin [Thu, 26 Feb 2015 19:11:39 +0000 (14:11 -0500)]
cleanup: spelling & typos

Comments only, no functional change.

4 years agoBGE: Fix for CreateConstraint API
Thomas Szepe [Thu, 26 Feb 2015 19:08:22 +0000 (20:08 +0100)]
BGE: Fix for CreateConstraint API

This patch fix two bugs related to CreateConstraint().
1. Disable linked collision only working with 6DoF constraints.
2. If all pivot axis rotations setted to zero the linked object disappears.

{F101374}

Reviewers: moguri, sybren, brita_, lordloki

Reviewed By: lordloki

Subscribers: p9ablo

Differential Revision: https://developer.blender.org/D704

4 years agoFix T43303 impossible to select a joint in stick bone edit mode.
Antony Riakiotakis [Thu, 26 Feb 2015 14:44:06 +0000 (15:44 +0100)]
Fix T43303 impossible to select a joint in stick bone edit mode.

Things here are simple, selected bone joint could have same priority as
unselected bone, so bone would always win. Gave joints a little more
priority than bones, usually user will be more precise just to select
the joint anyway.

4 years agoRemove redundant glInitNames calls (shouod be handled in selection code
Antony Riakiotakis [Thu, 26 Feb 2015 14:20:30 +0000 (15:20 +0100)]
Remove redundant glInitNames calls (shouod be handled in selection code
now.)

4 years agoFix T43479 animated textures lost after going to a frame before animated
Antony Riakiotakis [Thu, 26 Feb 2015 14:10:19 +0000 (15:10 +0100)]
Fix T43479 animated textures lost after going to a frame before animated
frame start.

Issue here is that if we failed to get an image from the cache, we would
try to load from file. This would fail when the queried frame was less
than the animated sequence start frame, and invalidate the OK state of
the image.

Solution is that when loading from cache succeeds, we also reset the OK
state of the image for animated textures.

The fix might be relevant elsewhere too, but kept it isolated just in
case.

4 years agoFix T42506 sequencer not limiting zoom.
Antony Riakiotakis [Thu, 26 Feb 2015 13:26:42 +0000 (14:26 +0100)]
Fix T42506 sequencer not limiting zoom.

Fix by Campbell thanks!

4 years agoRevert "Cleanup: Simplify camera sample motion blur code."
Thomas Dinges [Thu, 26 Feb 2015 12:27:02 +0000 (13:27 +0100)]
Revert "Cleanup: Simplify camera sample motion blur code."

This reverts commit 8197f0bb645f73f41071daaccf205a7583e695f5.

4 years agoWorkaround T43491: Python readline causes crash
Campbell Barton [Thu, 26 Feb 2015 11:50:29 +0000 (22:50 +1100)]
Workaround T43491: Python readline causes crash

loading 'readline' module could crash blender if 'libedit' was already linked (via LLVM).

Workaround the problem for now since we don't even need readline,
a _real_ fix likely involves changing how LLVM or Python are built.

4 years agoGrmll, sorry for the noise, fix stupi cpoypaste typo in previous commit.
Bastien Montagne [Thu, 26 Feb 2015 10:46:05 +0000 (11:46 +0100)]
Grmll, sorry for the noise, fix stupi cpoypaste typo in previous commit.

4 years agoAttempt to fix BGE build on windows.
Bastien Montagne [Thu, 26 Feb 2015 10:42:22 +0000 (11:42 +0100)]
Attempt to fix BGE build on windows.

Caused by rBb5b359b48f7f35a79b3eec, better to try a full build before pushing that type of commit. :/

4 years agoFix T43817: issue with non-utf8 encodings in Windows paths, again...
Bastien Montagne [Thu, 26 Feb 2015 10:21:21 +0000 (11:21 +0100)]
Fix T43817: issue with non-utf8 encodings in Windows paths, again...

We need to use 'W' widechar variants of win funcs and convert wchar to utf8-encoded bytes
in those cases, sigh...

Note: theoritical fix only, need org reporter to test it...

4 years agoFix potential buffer overflow in `BLI_strncpy_wchar_as_utf8()`.
Bastien Montagne [Thu, 26 Feb 2015 10:20:47 +0000 (11:20 +0100)]
Fix potential buffer overflow in `BLI_strncpy_wchar_as_utf8()`.

4 years agoCleanup: Simplify camera sample motion blur code.
Thomas Dinges [Thu, 26 Feb 2015 09:17:59 +0000 (10:17 +0100)]
Cleanup: Simplify camera sample motion blur code.

4 years agoFix T43643: Solidify crashes with 'only-rim'
Campbell Barton [Thu, 26 Feb 2015 07:44:45 +0000 (18:44 +1100)]
Fix T43643: Solidify crashes with 'only-rim'

When verts were shared by 2+ face-islands, the number of allocated edges was wrong.

Cleanup the logic for new verts/edges.

4 years agomesh_validate: don't add invalid edges into the hash
Campbell Barton [Thu, 26 Feb 2015 06:47:41 +0000 (17:47 +1100)]
mesh_validate: don't add invalid edges into the hash

4 years agoChange samples variable for SSAO - now it is actual samples, not squared
Antony Riakiotakis [Wed, 25 Feb 2015 22:30:50 +0000 (23:30 +0100)]
Change samples variable for SSAO - now it is actual samples, not squared
- spiral scheme is much more intuitive here. Also use float number for
spirals to avoid having samples on the same radial direction when sample
number is divisible by spiral number.

4 years agoUse spiral mapping for SSAO - it reduces banding a lot, especially in
Antony Riakiotakis [Wed, 25 Feb 2015 22:10:01 +0000 (23:10 +0100)]
Use spiral mapping for SSAO - it reduces banding a lot, especially in
higher sample counts. Probably a blurring pass might be a good addition
here as well.

4 years agoSSAO: sampling coordinates go out of screen, reject the sample
Antony Riakiotakis [Wed, 25 Feb 2015 21:05:03 +0000 (22:05 +0100)]
SSAO: sampling coordinates go out of screen, reject the sample

Previous behaviour would get occlusion at borders which could create
over occlusion at edges of the screen.

4 years agoMinor message fixes - thanks to S.J.Bennett for the heads up
Antony Riakiotakis [Wed, 25 Feb 2015 13:41:54 +0000 (14:41 +0100)]
Minor message fixes - thanks to S.J.Bennett for the heads up