blender.git
6 years agoFix T43905: Crash happens when press Create Plane Track
Sergey Sharybin [Fri, 6 Mar 2015 09:58:16 +0000 (14:58 +0500)]
Fix T43905: Crash happens when press Create Plane Track

It was only happening on 32bit platforms because of alignment
differences when allocating class.

Now got rid of copy of eigen matricies stored by value in the
residual block which solves aligment issues and should also
give some unmeasurable speedup.

6 years agoPyAPI: clarify fallback docstring
Campbell Barton [Fri, 6 Mar 2015 07:50:58 +0000 (18:50 +1100)]
PyAPI: clarify fallback docstring

6 years agoFix T43904: calc_vert_angle returns wrong value
Campbell Barton [Fri, 6 Mar 2015 07:48:26 +0000 (18:48 +1100)]
Fix T43904: calc_vert_angle returns wrong value

This was mis-named, rename to `calc_edge_angle`
and allow a fallback value in the case when the vert doesn't have 2-edges.

6 years agoBMesh: Add extended BM_vert_calc_edge_angle that takes a fallback value
Campbell Barton [Fri, 6 Mar 2015 07:45:00 +0000 (18:45 +1100)]
BMesh: Add extended BM_vert_calc_edge_angle that takes a fallback value

6 years agoCleanup: quiet minilzo warnings
Campbell Barton [Fri, 6 Mar 2015 06:47:23 +0000 (17:47 +1100)]
Cleanup: quiet minilzo warnings

6 years agoCleanup: unused warnings
Campbell Barton [Fri, 6 Mar 2015 06:30:05 +0000 (17:30 +1100)]
Cleanup: unused warnings

6 years agoCleanup: unused macro warning
Campbell Barton [Thu, 5 Mar 2015 15:18:40 +0000 (02:18 +1100)]
Cleanup: unused macro warning

6 years agoFix typo in "Add" and "Subtract" mode of Vector Math node.
Kevin Dietrich [Fri, 6 Mar 2015 01:30:17 +0000 (02:30 +0100)]
Fix typo in "Add" and "Subtract" mode of Vector Math node.

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

6 years agoCorrection to previous commit
Julian Eisel [Thu, 5 Mar 2015 19:36:58 +0000 (20:36 +0100)]
Correction to previous commit

Calling ensure_lookup_table for each face is stupid! :/
(Noted by Sergey - thx)

6 years agoFix T43900: "Operator Mesh Add" template fails
Julian Eisel [Thu, 5 Mar 2015 19:22:34 +0000 (20:22 +0100)]
Fix T43900: "Operator Mesh Add" template fails
Another script that was missing the lookup_table call.

6 years agoRevert "COLLADA - support for shadeless material (SHADER_CONSTANT)"
Gaia Clary [Thu, 5 Mar 2015 18:33:59 +0000 (19:33 +0100)]
Revert "COLLADA - support for shadeless material (SHADER_CONSTANT)"

This reverts commit 04b0a9f4b885e8e3b0b3207f3b3cda74b936df3e.

6 years agoFix T43880 really stupid mistake from fixing stick mode selection
Antony Riakiotakis [Thu, 5 Mar 2015 18:14:38 +0000 (19:14 +0100)]
Fix T43880 really stupid mistake from fixing stick mode selection

6 years agoMake limits of sequencer scaling a bit more sane
Antony Riakiotakis [Thu, 5 Mar 2015 18:05:39 +0000 (19:05 +0100)]
Make limits of sequencer scaling a bit more sane

6 years agoAudio library, early exit when animation is found
Antony Riakiotakis [Thu, 5 Mar 2015 17:49:59 +0000 (18:49 +0100)]
Audio library, early exit when animation is found

6 years agoFix T43898, correct all uv layers in bevel, not only the active one
Antony Riakiotakis [Thu, 5 Mar 2015 17:48:09 +0000 (18:48 +0100)]
Fix T43898, correct all uv layers in bevel, not only the active one

6 years agoCOLLADA - support for shadeless material (SHADER_CONSTANT)
Gaia Clary [Thu, 5 Mar 2015 17:44:04 +0000 (18:44 +0100)]
COLLADA - support for shadeless material (SHADER_CONSTANT)

This patch make it possible to export and import shadeless material.

Reviewers: sergey, sauraedron

Subscribers: sergey

Projects: #collada

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

6 years agoCompositor: Add sanity check around pass element size and compositor data type
Sergey Sharybin [Thu, 5 Mar 2015 15:24:41 +0000 (20:24 +0500)]
Compositor: Add sanity check around pass element size and compositor data type

Only happening in the debug builds, avoids issues like recent AO one from happening.

6 years agoFix T43894: Wrong alpha with bilateral blur node
Sergey Sharybin [Thu, 5 Mar 2015 15:21:55 +0000 (20:21 +0500)]
Fix T43894: Wrong alpha with bilateral blur node

The issue was caused by AO operation reporting it's a color operation
(which means it's expected to output RGBA) but internally it's RGB
only in the render engine, which caused some memory to be uninitialized.

6 years agoCompositor: Fix compilation error with COM_DEBUG enabled
Sergey Sharybin [Thu, 5 Mar 2015 15:12:28 +0000 (20:12 +0500)]
Compositor: Fix compilation error with COM_DEBUG enabled

6 years agoFix T43865: Cycles: Watertight rendering produces artifacts on a huge plane
Sergey Sharybin [Thu, 5 Mar 2015 13:55:30 +0000 (18:55 +0500)]
Fix T43865: Cycles: Watertight rendering produces artifacts on a huge plane

The issue was caused by numerical instability whrn having ray origin close to a huge
triangle, which could have aused bad ray distance check.

Watertight Woop intersection isn't really addressing such cases, it's dealing with
small triangles far away from the ray origin instead, so it's a bit tricky yo make
it working reliably.

While we're quite close to the release it's safer to do check in Pleaucker coordinates
if ray close to a huge triangle. Likely this additional check combined with some other
tweaks to the code doesn't cause measurable slowdown in the scenes tested here.

After the release we can play a bit more with this code in order to make it more
stable without Pleucker fallback.

6 years agoCMake: Need to find pugixml.hpp instead of pugixml.h
Sergey Sharybin [Thu, 5 Mar 2015 12:20:40 +0000 (17:20 +0500)]
CMake: Need to find pugixml.hpp instead of pugixml.h

That's how file is actually called in the upstream.

6 years agoRecent changes broke SDL/GHOST
Campbell Barton [Thu, 5 Mar 2015 10:01:48 +0000 (21:01 +1100)]
Recent changes broke SDL/GHOST

6 years agoCleanup: unused var
Campbell Barton [Thu, 5 Mar 2015 06:58:22 +0000 (17:58 +1100)]
Cleanup: unused var

6 years agoUpdate install_deps for recent CMake change
Campbell Barton [Thu, 5 Mar 2015 06:45:21 +0000 (17:45 +1100)]
Update install_deps for recent CMake change

6 years agoFix T43672: Cycles preview stalls when out of view
Campbell Barton [Thu, 5 Mar 2015 04:07:21 +0000 (15:07 +1100)]
Fix T43672: Cycles preview stalls when out of view

6 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

6 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

6 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

6 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

6 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.

6 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).

6 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

6 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.

6 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

6 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)

6 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

6 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

6 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

6 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()

6 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.

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

6 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.

6 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.

6 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!

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

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

6 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

6 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.

6 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

6 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.

6 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

6 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.

6 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

6 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.

6 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

6 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.

6 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.

6 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.

6 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

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

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

6 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.

6 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.

6 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

6 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

6 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.

6 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.

6 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.

6 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?

6 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.

6 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.

6 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.

6 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

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

6 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

6 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

6 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...

6 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

6 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.

6 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.

6 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.

6 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

6 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)...

6 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())

6 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

6 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

6 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".

6 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

6 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.

6 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!

6 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.

6 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)

6 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!

6 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.

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

6 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.

6 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.

6 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

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

6 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