blender.git
6 years agoknife tool: Clean up line hits when starting a new cut
Sergej Reich [Fri, 8 Nov 2013 18:01:05 +0000 (18:01 +0000)]
knife tool: Clean up line hits when starting a new cut

Fixes intersection points of the previous cut still being drawn when
starting a new cut.

6 years agouse assert to check for incorrect use of BLF_draw_ascii()
Campbell Barton [Fri, 8 Nov 2013 15:01:43 +0000 (15:01 +0000)]
use assert to check for incorrect use of BLF_draw_ascii()

6 years agoOSX/scons: make MACOSX_SDK_CHECK a local var is sconstruct and remove from env, also...
Jens Verwiebe [Fri, 8 Nov 2013 13:44:10 +0000 (13:44 +0000)]
OSX/scons: make MACOSX_SDK_CHECK a local var is sconstruct and remove from env, also fix a longstanding misuse of MACOSX_SDK_CHECK in ceres, use MACOSX_SDK instead

6 years agoOSX/scons: remove never used MAC_PROC and minor cleanups
Jens Verwiebe [Fri, 8 Nov 2013 13:19:51 +0000 (13:19 +0000)]
OSX/scons: remove never used MAC_PROC and minor cleanups

6 years ago[#37327] Inconsistent numeric input conversion.
Bastien Montagne [Fri, 8 Nov 2013 11:25:50 +0000 (11:25 +0000)]
[#37327] Inconsistent numeric input conversion.

Issue was actually that micrometer was not drawing correctly (from r58165), reverted that fix and instead use utf8 drawing for editmode metrics when using a unit system (we already had a similar hack for surfaces and volumes, anyway).

6 years agofix for crash when deleting from an id property, with a non-string key.
Campbell Barton [Fri, 8 Nov 2013 08:46:43 +0000 (08:46 +0000)]
fix for crash when deleting from an id property, with a non-string key.

6 years agoFix for [#37293] Audio does not Scrub, plays fully instead
Joerg Mueller [Thu, 7 Nov 2013 23:40:06 +0000 (23:40 +0000)]
Fix for [#37293] Audio does not Scrub, plays fully instead

6 years agoOSX/buildbot: after scons refactor we only need the vars to change
Jens Verwiebe [Thu, 7 Nov 2013 15:25:11 +0000 (15:25 +0000)]
OSX/buildbot: after scons refactor we only need the vars to change

6 years agoOSX/scons: make gcc version detection more futureproof
Jens Verwiebe [Thu, 7 Nov 2013 15:05:59 +0000 (15:05 +0000)]
OSX/scons: make gcc version detection more futureproof

6 years agoTweak for ui range of track size in 3d viewport
Sergey Sharybin [Thu, 7 Nov 2013 14:07:13 +0000 (14:07 +0000)]
Tweak for ui range of track size in 3d viewport

Patch by Sebastian Koenig, thanks!

6 years agoOSX/scons: some cleanups
Jens Verwiebe [Thu, 7 Nov 2013 14:06:21 +0000 (14:06 +0000)]
OSX/scons: some cleanups

6 years agoOSX/scons: ARCH_FLAGS where not prperly added to CPPFLAGS
Jens Verwiebe [Thu, 7 Nov 2013 13:56:40 +0000 (13:56 +0000)]
OSX/scons: ARCH_FLAGS where not prperly added to CPPFLAGS

6 years ago"Render Audio" cleanup:
Bastien Montagne [Thu, 7 Nov 2013 13:32:32 +0000 (13:32 +0000)]
"Render Audio" cleanup:
* Removed audio-only options from ffmpeg render settings (added some versionning code too)!
* Moved the Mixdon button from the Scene->Audio pannel to the Render->Render panel.

6 years agoFix the small mess in read versionning code (we had two "pending versioning" blocks...
Bastien Montagne [Thu, 7 Nov 2013 13:14:33 +0000 (13:14 +0000)]
Fix the small mess in read versionning code (we had two "pending versioning" blocks, and a triangulate one that was outside of any block, plus I think existing "pending versionning" code was not added when 2.69.2 sub-version was created...).

Moved all non-yet-versioned stuff back into a single block at the end, let’s try not to forget to integrate it for 2.69.3! ;)

6 years agoFix for [#36819] *AFTER 2.69* Audio Only Sequencer wont render
Joerg Mueller [Thu, 7 Nov 2013 12:33:35 +0000 (12:33 +0000)]
Fix for [#36819] *AFTER 2.69* Audio Only Sequencer wont render

The original description is not a bug, but the mixdown options were missing as scons was lacking the required defines during compile time.

6 years agoFix for node transform offsets when adding new nodes: The transform operator was...
Lukas Toenne [Thu, 7 Nov 2013 09:15:29 +0000 (09:15 +0000)]
Fix for node transform offsets when adding new nodes: The transform operator was using the node->totr rect for defining the initial location of the node - but this is only defined after the node has been
drawn at least once, so nodes would jump to (0,0) after adding ... Use the locx/locy instead (including DPI factor), which is more reliable.

6 years agoFix for node link highlighting not getting reset if a transform operator is cancelled...
Lukas Toenne [Thu, 7 Nov 2013 09:02:30 +0000 (09:02 +0000)]
Fix for node link highlighting not getting reset if a transform operator is cancelled and the node removed. Pass the 'test' option in node link insert testing on to the conditions function, so that at least the highlight flags get cleared before exiting the link insert function, even if there is no actual selected node to insert.

6 years agoCleanup: nice bool return value from ed_node_link_conditions function instead of...
Lukas Toenne [Thu, 7 Nov 2013 09:02:29 +0000 (09:02 +0000)]
Cleanup: nice bool return value from ed_node_link_conditions function instead of using the space pointer for this.

6 years agoFix #37338: Add objects from addon work in a Linked Scene
Sergey Sharybin [Thu, 7 Nov 2013 08:40:47 +0000 (08:40 +0000)]
Fix #37338: Add objects from addon work in a Linked Scene

Added a poll function to add object helper which checks
whether scene is linked or not.

All the primitives which are delivered from this helper
will work properly for linked scenes. If there're still
primitives which are not delivered from this class, well
nothing i can do now.

6 years agoFix #37348, Different behaviour in Node editor. Adding nodes from the search operator...
Lukas Toenne [Thu, 7 Nov 2013 08:33:09 +0000 (08:33 +0000)]
Fix #37348, Different behaviour in Node editor. Adding nodes from the search operator now also removes them again if the subsequent transform is cancelled, like with the regular node shift+A menu
operators.

6 years agoOSX/scons: for completeness, added WITH_BF_OPENMP switch
Jens Verwiebe [Wed, 6 Nov 2013 23:19:01 +0000 (23:19 +0000)]
OSX/scons: for completeness, added WITH_BF_OPENMP switch

6 years agoRemoved the automatic "link swapping" feature from the node link operator: When a...
Lukas Toenne [Wed, 6 Nov 2013 21:21:37 +0000 (21:21 +0000)]
Removed the automatic "link swapping" feature from the node link operator: When a link was being dragged to an already connected input, the existing links were shifted to the next free socket. This was
originally intended as a way to speed up workflow for math and mix nodes, but more often than not it just gets in the way. Most binary (or n-ary) functions are not even commutative, i.e. changing the
order of sockets does not usually produce the correct result. Also this includes the more common case where one actually wants to replace a socket, which then requires a second click to remove the
shifted connection. All in all this is not a helpful feature.

6 years agoFix for error in r61159: the new gpencil_new_layer_col in UserDef is supposed to...
Lukas Toenne [Wed, 6 Nov 2013 21:08:16 +0000 (21:08 +0000)]
Fix for error in r61159: the new gpencil_new_layer_col in UserDef is supposed to be a 4 float RGBA color, but has only 3 floats. This was overwriting tweak_threshold in UserDef and breaking transform
operators ...

6 years agoOSX/scons: huge change, now you can set a user-config.py just with the desired variab...
Jens Verwiebe [Wed, 6 Nov 2013 20:59:04 +0000 (20:59 +0000)]
OSX/scons: huge change, now you can set a user-config.py just with the desired variables changed

6 years agoFix [#34675] *AFTER 2.69* Info view shows duplicate operators with incorrect values...
Bastien Montagne [Wed, 6 Nov 2013 20:56:18 +0000 (20:56 +0000)]
Fix [#34675] *AFTER 2.69* Info view shows duplicate operators with incorrect values of args

Refactored a bit WM api to generate operator's pystring, now it can also handle correctly macro operators. Thanks to Campbell for the review!

6 years agoBGE: Fix for #37335 "Moving the camera with a key (after the recent BGE cleanup commi...
Mitchell Stokes [Wed, 6 Nov 2013 19:40:37 +0000 (19:40 +0000)]
BGE: Fix for #37335 "Moving the camera with a key (after the recent BGE cleanup commits) now crashes the game" reported by Ace Dragon.

CcdPhysicsEnvironment->GetCharacterController(); was missing a NULL check.

6 years agoPatch #37274: Circle select for node editor, by Henrik Aarnio (hjaarnio).
Lukas Toenne [Wed, 6 Nov 2013 19:21:42 +0000 (19:21 +0000)]
Patch #37274: Circle select for node editor, by Henrik Aarnio (hjaarnio).

Circle select was missing from node editor, and C key was assigned to now defunct "show cyclic dependencies". This patch remaps the key and adds circle select operator.
Functions to check intersection between rctf/rcti and a circle were also added to rct.c for code cleanliness and consistency.

6 years agoRemoved the "Show Cyclic Dependencies" operator for nodes. This operator is an old...
Lukas Toenne [Wed, 6 Nov 2013 18:56:51 +0000 (18:56 +0000)]
Removed the "Show Cyclic Dependencies" operator for nodes. This operator is an old relic implemented for showing cyclic node connections as red links. This is not necessary any more, the operator simply
called the generic node tree update function, which is happening anyway after all relevant node operators (if it doesn't that has to be considered a bug).

It has been suggested to better use the C key for circle select, this remains to be discussed.

6 years agoTrue grid snapping for nodes: This snaps nodes to the actual background grid instead...
Lukas Toenne [Wed, 6 Nov 2013 17:46:32 +0000 (17:46 +0000)]
True grid snapping for nodes: This snaps nodes to the actual background grid instead of using incremental offset (which is not useful for nodes). Increment snapping has been disabled for nodes to avoid
confusion, grid snap is now the default as it seems to be the most wanted and easy to use mode.

Absolute grid snapping happens in a somewhat generic function 'applyGridAbsolute', which could also be used for objects and other transforms later on. It is conceptually similar to the 'project' snapping
option, in that it calculates a delta vector for each element on top of the overall transform, which places each node on the grid.

Node transform now uses the top-left node corner for TransformData->loc. The transform center is still the average of node centers, so that scaling and rotation works nicely.

snapGrid*** functions have been renamed to snapGridIncrement*** to distinguish better between incremental and absolute grid snapping.

6 years agoOSX/scons: remove obsolete compile flag
Jens Verwiebe [Wed, 6 Nov 2013 15:46:57 +0000 (15:46 +0000)]
OSX/scons: remove obsolete compile flag

6 years agoOSX/scons: remove obsolete compile flags and silence warnings same time
Jens Verwiebe [Wed, 6 Nov 2013 15:42:01 +0000 (15:42 +0000)]
OSX/scons: remove obsolete compile flags and silence warnings same time

6 years agoOSX/scons: remove another outdated conditional
Jens Verwiebe [Wed, 6 Nov 2013 15:37:14 +0000 (15:37 +0000)]
OSX/scons: remove another outdated conditional

6 years agoFix knife bug exposed by valgrind.
Howard Trickey [Wed, 6 Nov 2013 15:27:19 +0000 (15:27 +0000)]
Fix knife bug exposed by valgrind.
Was reading cage coordinate from those of existing
BMVerts even for newly created verts that don't
have cage coordinates there.

6 years agoOSX/scons: remove local MAC_MIN_VERS var and use the always identical MACOSX_DEPLOYME...
Jens Verwiebe [Wed, 6 Nov 2013 14:03:51 +0000 (14:03 +0000)]
OSX/scons: remove local MAC_MIN_VERS var and use the always identical MACOSX_DEPLOYMENT_TARGET instead

6 years agoOSX/scons: more cleanup of redundant vars, preparation to remove local vars to not...
Jens Verwiebe [Wed, 6 Nov 2013 13:56:11 +0000 (13:56 +0000)]
OSX/scons: more cleanup of redundant vars, preparation to remove local vars to not need to cp whole config as user-config later

6 years agoOSX/scons: simplification for getting the system version ( major, minor ), use sw_ver...
Jens Verwiebe [Wed, 6 Nov 2013 12:52:09 +0000 (12:52 +0000)]
OSX/scons: simplification for getting the system version ( major, minor ), use sw_vers -productVersion instead of uname -r, we must not redine it then from darwin version -> osx version

6 years agoSyncing methods for Color Balance node LGG and ASC-CDL modes. The settings for either...
Lukas Toenne [Wed, 6 Nov 2013 12:44:54 +0000 (12:44 +0000)]
Syncing methods for Color Balance node LGG and ASC-CDL modes. The settings for either mode are converted into equivalent settings of the other. This keeps the result of both modes roughly the same and
mimics the previous behavior when settings were shared by both modes (but not equivalent).
NOTE: Due to the use of additional sRGB conversion in the LGG mode the result is not entirely accurate, this should perhaps be fixed.

Settings for each mode are kept in their own color values nevertheless, this avoids potential problems with float precision.

6 years agoFix #37333: Bad default value in Color Balance. Use independent offset/power/slope...
Lukas Toenne [Wed, 6 Nov 2013 12:44:51 +0000 (12:44 +0000)]
Fix #37333: Bad default value in Color Balance. Use independent offset/power/slope variables for the CDL mode in color balance node. This avoids stupid default values in particular for offset, which would be 1 when just using the lift value for it.

6 years agoRemoved the DNA storage for LGG lift and inverse gamma in the color balance node...
Lukas Toenne [Wed, 6 Nov 2013 12:44:49 +0000 (12:44 +0000)]
Removed the DNA storage for LGG lift and inverse gamma in the color balance node. These values were always calculated at execution time, so there is no need to keep them around in DNA data and no forward compatibility break either. Only reason they were stored in DNA before is that the old compositor had no other means of keeping precomputed values around for every pixel than storing the DNA node data, with new compositor this is no longer necessary (values are stored in operations).

6 years agoGrease Pencil: User-Pref for setting the default colour of newly created layers
Joshua Leung [Wed, 6 Nov 2013 10:59:05 +0000 (10:59 +0000)]
Grease Pencil: User-Pref for setting the default colour of newly created layers

6 years agoFix #37251: Snap not working correctly in metaball edit mode.
Sergey Sharybin [Wed, 6 Nov 2013 08:27:18 +0000 (08:27 +0000)]
Fix #37251: Snap not working correctly in metaball edit mode.

It wasn't enabled in snapping code from the beginning it seems,
but from quick tests snapping for mballs works just fine.

Maybe we could drop out check for edit object type now?

6 years agoQuicktime: remove backend with the old quicktime API, and keep the QTKit backend.
Brecht Van Lommel [Wed, 6 Nov 2013 01:45:15 +0000 (01:45 +0000)]
Quicktime: remove backend with the old quicktime API, and keep the QTKit backend.

This means that if you have WITH_BF_QUICKTIME or WITH_CODEC_QUICKTIME enabled,
it will always use QTKit.

The old backend was only used on 32 bit OS X builds, now 32 and 64 bit builds will
give consistent input/output. On Windows or Linux quicktime isn't being used.

6 years agoMade active point and active spline behaviour more predictable on curves/surfaces:
Kevin Mackay [Tue, 5 Nov 2013 23:37:09 +0000 (23:37 +0000)]
Made active point and active spline behaviour more predictable on curves/surfaces:
* deselect all no longer leaves an active point
* the most recently added spline becomes the active one
* on successful duplicate/delete the active point and active spline are reset

6 years agocode cleanup: typo and warning when openmp's disabled.
Campbell Barton [Tue, 5 Nov 2013 21:59:30 +0000 (21:59 +0000)]
code cleanup: typo and warning when openmp's disabled.

6 years agopatch [#37305] Quick Hack: Armature Mirror Select
Campbell Barton [Tue, 5 Nov 2013 21:47:35 +0000 (21:47 +0000)]
patch [#37305] Quick Hack: Armature Mirror Select
from Terry Struven (tlstruven), with some modifications.

6 years agoOSX/player: Remove some very old code ( 11 years+ ), was commented anyway
Jens Verwiebe [Tue, 5 Nov 2013 20:30:09 +0000 (20:30 +0000)]
OSX/player: Remove some very old code ( 11 years+ ), was commented anyway

6 years agoFix cmake/player compile by adding the xtra osx lib, check if this breaks other OS
Jens Verwiebe [Tue, 5 Nov 2013 18:57:45 +0000 (18:57 +0000)]
Fix cmake/player compile by adding the xtra osx lib, check if this breaks other OS

6 years agoFix #37312, Backdrop value offset is not refreshed. Backdrop operators need to push...
Lukas Toenne [Tue, 5 Nov 2013 18:28:43 +0000 (18:28 +0000)]
Fix #37312, Backdrop value offset is not refreshed. Backdrop operators need to push notifiers to redraw the node editor buttons.

6 years agoOSX/scons: buildbot cleanup following darwin-config
Jens Verwiebe [Tue, 5 Nov 2013 18:25:43 +0000 (18:25 +0000)]
OSX/scons: buildbot cleanup following darwin-config

6 years agoOSX/scons: make 10.5 our lowest env and remove older conditionals
Jens Verwiebe [Tue, 5 Nov 2013 18:17:02 +0000 (18:17 +0000)]
OSX/scons: make 10.5 our lowest env and remove older conditionals

6 years agoOSX/GHOST: starting file by file removal of outdated code, such as VERSION_MIN_REQUIR...
Jens Verwiebe [Tue, 5 Nov 2013 17:49:27 +0000 (17:49 +0000)]
OSX/GHOST: starting file by file removal of outdated code, such as VERSION_MIN_REQUIRED <= 1040

6 years agoSince we dropped carbon api, this workaround seems not longer to be necessary, pls...
Jens Verwiebe [Tue, 5 Nov 2013 17:35:47 +0000 (17:35 +0000)]
Since we dropped carbon api, this workaround seems not longer to be necessary, pls. keep an eye

6 years agoRewrote a lot of knife tool. Now allows cut-through
Howard Trickey [Tue, 5 Nov 2013 16:24:00 +0000 (16:24 +0000)]
Rewrote a lot of knife tool.  Now allows cut-through
to make new vertices in the middle of faces.
This also fixes knife bugs:
#36678, #35945, #35943, #35387, #35045, #35002.

6 years agoFix [#37324] Crash, calling Warp operator in Outliner
Bastien Montagne [Tue, 5 Nov 2013 16:20:06 +0000 (16:20 +0000)]
Fix [#37324] Crash, calling Warp operator in Outliner

Warp needs a valid 3DView region...

6 years agoOSX: also remove USE_QTKIT option from configs, leave env var for later use ( always...
Jens Verwiebe [Tue, 5 Nov 2013 16:04:32 +0000 (16:04 +0000)]
OSX: also remove USE_QTKIT option from configs, leave env var for later use ( always True )

6 years agoOSX: buildbot cleanups after carbon removal
Jens Verwiebe [Tue, 5 Nov 2013 16:00:23 +0000 (16:00 +0000)]
OSX: buildbot cleanups after carbon removal

6 years agoFix [#37319] Forcefield on translated, unselected lamp draws in origin.
Bastien Montagne [Tue, 5 Nov 2013 15:53:55 +0000 (15:53 +0000)]
Fix [#37319] Forcefield on translated, unselected lamp draws in origin.

drawlamp() was not resetting OGL matrix to its org value!

Thanks to Philipp Oeser for initial investigation, and Brecht for review. :)

6 years agoFix linking for non-apple ndof
Jens Verwiebe [Tue, 5 Nov 2013 15:48:26 +0000 (15:48 +0000)]
Fix linking for non-apple ndof

6 years agoOSX: complety remove the cocoa options, definitions and conditionals now
Jens Verwiebe [Tue, 5 Nov 2013 15:37:59 +0000 (15:37 +0000)]
OSX: complety remove the cocoa options, definitions and conditionals now

6 years agoCode cleanup:
Thomas Dinges [Tue, 5 Nov 2013 15:37:11 +0000 (15:37 +0000)]
Code cleanup:
* Remove unused UI code for Info Space items. Was lying around here for some months already.

Probably we have to re-think the whole placement of the operator history thing, but thats for later. In the current config there is no room for these buttons though.

6 years agoOSX/scons: remove obsolete cocoa conditionals from config
Jens Verwiebe [Tue, 5 Nov 2013 14:38:18 +0000 (14:38 +0000)]
OSX/scons: remove obsolete cocoa conditionals from config

6 years agoOSX: removing useless cocoa conditionals as it's solely api now
Jens Verwiebe [Tue, 5 Nov 2013 14:35:09 +0000 (14:35 +0000)]
OSX: removing useless cocoa conditionals as it's solely api now

6 years agoOSX/cmake: ghost carbon removal
Jens Verwiebe [Tue, 5 Nov 2013 14:09:17 +0000 (14:09 +0000)]
OSX/cmake: ghost carbon removal

6 years agoOSX/cmake: carbon cleanout
Jens Verwiebe [Tue, 5 Nov 2013 14:05:37 +0000 (14:05 +0000)]
OSX/cmake: carbon cleanout

6 years agoOSX: remove obsolete file and adapt scons
Jens Verwiebe [Tue, 5 Nov 2013 14:02:33 +0000 (14:02 +0000)]
OSX: remove obsolete file and adapt scons

6 years agoOSX: more carbon removal cleanups
Jens Verwiebe [Tue, 5 Nov 2013 13:50:53 +0000 (13:50 +0000)]
OSX: more carbon removal cleanups

6 years agoOSX: remove Ghost carbon files finally
Jens Verwiebe [Tue, 5 Nov 2013 13:35:49 +0000 (13:35 +0000)]
OSX: remove Ghost carbon files finally

6 years agoOSX: remove Ghost carbon files and adapt scons
Jens Verwiebe [Tue, 5 Nov 2013 13:34:05 +0000 (13:34 +0000)]
OSX: remove Ghost carbon files and adapt scons

6 years agoOSX: preparing carbon and quicktime dropping, make QTKit also default for i386
Jens Verwiebe [Tue, 5 Nov 2013 12:52:51 +0000 (12:52 +0000)]
OSX: preparing carbon and quicktime dropping, make QTKit also default for i386

6 years agoOSX: preparing carbon and quicktime dropping, make 64bit and QTKit default, make...
Jens Verwiebe [Tue, 5 Nov 2013 12:48:32 +0000 (12:48 +0000)]
OSX: preparing carbon and quicktime dropping, make 64bit and QTKit default, make 10.8sdk default for xcode >= 4.4

6 years agoCorrecting a few typos
Joshua Leung [Tue, 5 Nov 2013 10:57:52 +0000 (10:57 +0000)]
Correcting a few typos

6 years agoScons: Fix BGE compile after cleanup
Jens Verwiebe [Tue, 5 Nov 2013 10:56:52 +0000 (10:56 +0000)]
Scons: Fix BGE compile after cleanup

6 years agoCode cleanup:
Thomas Dinges [Tue, 5 Nov 2013 08:52:12 +0000 (08:52 +0000)]
Code cleanup:
* Remove "FCurve/Driver Version fix" from help menu, was used for RNA changes during 2.5x.
* Keep utility code in animsys_refactor.py, might still become useful according to Joshua.

6 years agobge builds again without bullet.
Campbell Barton [Tue, 5 Nov 2013 06:19:19 +0000 (06:19 +0000)]
bge builds again without bullet.

6 years agocode cleanup: quiet warnings
Campbell Barton [Tue, 5 Nov 2013 04:32:51 +0000 (04:32 +0000)]
code cleanup: quiet warnings

6 years agocode cleanup: typos
Campbell Barton [Tue, 5 Nov 2013 04:23:46 +0000 (04:23 +0000)]
code cleanup: typos

6 years agoBugfix [#37168] Outliner refresh error after removing constraints
Joshua Leung [Tue, 5 Nov 2013 02:01:39 +0000 (02:01 +0000)]
Bugfix [#37168] Outliner refresh error after removing constraints

Clear constraints operators were missing the NA_REMOVED flag which the Outliner
was checking for before it would perform the necessary updates.

6 years agoBugfix [#36203] Transformation bone constraint breaks Track To / Dumped Track
Joshua Leung [Tue, 5 Nov 2013 01:44:38 +0000 (01:44 +0000)]
Bugfix [#36203] Transformation bone constraint breaks Track To / Dumped Track

Limited crazy-space constraint correction for Transform constraint to only get
applied when only rotating bones with such constraints.

6 years agoBugfix [#37304] Arrow Keys Stop Working When Mouse Over Outliner
Joshua Leung [Tue, 5 Nov 2013 01:29:45 +0000 (01:29 +0000)]
Bugfix [#37304] Arrow Keys Stop Working When Mouse Over Outliner

Frame change hotkeys now work in the following places:
1) Outliner - Main region
2) Action/NLA Editors - Channels Region
3) Info View - Reports region

Other places identified by the bugreport (but which I've decided to leave
alone):
- Text Editor (when no file open) - The way the keymaps work here means that
this can't be done without affecting normal text editing

- File Browser - What's the point of changing frames when you're about to
open/save the file?

- User Prefs - Is there any real point here either? Also, this is usually shown
in a separate window.

6 years agoRemove soft limits from lower-end of ranges for last two commits - This turned
Joshua Leung [Tue, 5 Nov 2013 01:20:30 +0000 (01:20 +0000)]
Remove soft limits from lower-end of ranges for last two commits - This turned
out to be too restrictive/confusing again.

6 years agoApplying same fix used for [#36844] to Limits FModifier settings
Joshua Leung [Tue, 5 Nov 2013 01:04:23 +0000 (01:04 +0000)]
Applying same fix used for [#36844] to Limits FModifier settings

6 years agoAdditional code improvements: avoid unnecessary Python object allocations in Freestyle.
Tamito Kajiyama [Tue, 5 Nov 2013 00:51:59 +0000 (00:51 +0000)]
Additional code improvements: avoid unnecessary Python object allocations in Freestyle.

6 years agoBugfix [#36844] Cannot set Restrict Frame Start for FModifiers until Frame End
Joshua Leung [Tue, 5 Nov 2013 00:19:21 +0000 (00:19 +0000)]
Bugfix [#36844] Cannot set Restrict Frame Start for FModifiers until Frame End
has been adjusted

Previously, the RNA settings tried to strictly enforce the constraint that the
start frame must be less than the end frame. However, this behaviour was
problematic, as it meant that you had to firstly move the end frame to its new
(higher) value, before moving the start frame. The same also applied in the
opposite direction.

Now, this behaves in the same way that the scene start/end buttons work: if the
new start frame is past the end frame, the end frame is "pushed" along to be the
same value as the start frame. The same applies in the opposite direction.

6 years agoFix [#37315] Mirror+MeshDeform cause crash when Vertex Group is referred
Bastien Montagne [Mon, 4 Nov 2013 23:33:23 +0000 (23:33 +0000)]
Fix [#37315] Mirror+MeshDeform cause crash when Vertex Group is referred

One hour of efforts to spot such a small dummy typo!

6 years agoInterface:
Thomas Dinges [Mon, 4 Nov 2013 22:49:49 +0000 (22:49 +0000)]
Interface:
* Move the "Add" menu from the Info header into the 3D View header.

Patch by Andrew Buttery (axb), with small tweaks by myself. (Patch ID #37241).

Approved by Brecht and Jonathan.

6 years ago* More fixes to make scons / Windows happy. :)
Thomas Dinges [Mon, 4 Nov 2013 22:33:02 +0000 (22:33 +0000)]
* More fixes to make scons / Windows happy. :)

6 years agoFix for recent BGE commits, when building with c++ guardedalloc.
Bastien Montagne [Mon, 4 Nov 2013 22:22:54 +0000 (22:22 +0000)]
Fix for recent BGE commits, when building with c++ guardedalloc.

6 years ago* Fix blenfont scons include after recent GE changes.
Thomas Dinges [Mon, 4 Nov 2013 22:14:04 +0000 (22:14 +0000)]
* Fix blenfont scons include after recent GE changes.

Mitchell: Please check if these includes also need to be added in scons: https://projects.blender.org/scm/viewvc.php/trunk/blender/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeLists.txt?root=bf-blender&r1=61087&r2=61086&pathrev=61087

6 years agoBGE Physics Cleanup: Fixing an error that GCC didn't catch.
Mitchell Stokes [Mon, 4 Nov 2013 19:23:00 +0000 (19:23 +0000)]
BGE Physics Cleanup: Fixing an error that GCC didn't catch.

6 years agoBGE: Fixing up a small issue from merging Rasterizer cleanup code.
Mitchell Stokes [Mon, 4 Nov 2013 19:22:56 +0000 (19:22 +0000)]
BGE: Fixing up a small issue from merging Rasterizer cleanup code.

6 years agoBGE: The recent physics cleanup was using KX_GameObject::GetParent() with out calling...
Mitchell Stokes [Mon, 4 Nov 2013 19:22:52 +0000 (19:22 +0000)]
BGE: The recent physics cleanup was using KX_GameObject::GetParent() with out calling parent->Release(). Since GetParent() does an AddRef(), this was causing a leak, which resulted in Zombie Object errors.

6 years agoBGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_Bul...
Mitchell Stokes [Mon, 4 Nov 2013 19:22:47 +0000 (19:22 +0000)]
BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code.

This is a squashed commit of the following:
    BGE Physics Cleanup: Fix crashes with LibLoading and replication. Also fixing some memory leaks.
    BGE Physics Cleanup: Removing KX_IPhysicsController and KX_BulletPhysicsController.
    BGE Physics Cleanup: Moving the replication code outside of KX_BlenderBulletController and switching KX_ConvertPhysicsObjects to create a CcdPhysicsController instead of a KX_BlenderBulletController.
    BGE Physics Cleanup: Getting rid of an unsued KX_BulletPhysicsController.h include in KX_Scene.cpp.
    BGE Physics Cleanup: Removing unused KX_IPhysicsController and KX_BulletPhysicsController includes.
    BGE Physics Cleanup: Removing m_pPhysicsController1 and GetPhysicsController1() from KX_GameObject.
    BGE Physics Cleanup: Remove SetRigidBody() from KX_IPhysicsController and remove GetName() from CcdPhysicsController.
    BGE Physics Cleanup: Moving Add/RemoveCompoundChild() from KX_IPhysicsController to PHY_IPhysicsController.
    BGE Physics Cleanup: Removing GetLocalInertia() from KX_IPhysicsController.
    BGE Physics Cleanup: Making BlenderBulletCharacterController derive from PHY_ICharacter and removing CharacterWrapper from CcdPhysicsEnvironment.cpp. Also removing the character functions from KX_IPhysicsController.
    BGE Physics Cleanup: Removing GetOrientation(), SetOrientation(), SetPosition(), SetScaling(), and GetRadius() from KX_IPhysicsController.
    BGE Physics Cleanup: Removing GetReactionForce() since all implementations returned (0, 0, 0). The Python interface for KX_GameObject still has reaction force code, but it still also returns (0, 0, 0). This can probably be removed as well, but removing it can break scripts, so I'll leave it for now.
    BGE Physics Cleanup: Removing Get/SetLinVelocityMin() and Get/SetLinVelocityMax() from KX_IPhysicsController.
    BGE Physics Cleanup: Removing SetMargin(), RelativeTranslate(), and RelativeRotate() from KX_IPhysicsController.
    BGE Physics Cleanup: Using constant references for function arguments in PHY_IPhysicsController where appropriate.
    BGE Physics Cleanup: Removing ApplyImpulse() from KX_IPhysicsController.
    BGE Physics Cleanup: Removing ResolveCombinedVelocities() from KX_IPhysicsController.
    BGE Physics Cleanup: Accidently removed a return when cleaning up KX_GameObject::PyGetVelocity().
    BGE Physics Cleanup: Remove GetLinearVelocity(), GetAngularVelocity() and GetVelocity() from KX_IPhysicsController. The corresponding PHY_IPhysicsController functions now also take Moto types instead of scalars to match the KX_IPhysicsController interface.
    BGE Physics Cleanup: Moving SuspendDynamics, RestoreDynamics, SetMass, GetMass, and SetTransform from KX_IPhysicsController to PHY_IPhysicsController.
    BGE Physics Cleanup: PHY_IPhysicsEnvironment and derived classes now use the same naming scheme as PHY_IController.
    BGE Physics Cleanup: PHY_IMotionState and derived classes now use the same naming convention as PHY_IController.
    BGE Phsyics Cleanup: Making PHY_IController and its derived classes follow a consistent naming scheme for member functions. They now all start with capital letters (e.g., setWorldOrientation becomes SetWorldOrientation).
    BGE Physics Cleanup: Getting rid of KX_GameObject::SuspendDynamics() and KX_GameObject::RestoreDynamics(). Instead, use the functions from the physics controller.
    BGE: Some first steps in trying to cleanup the KX_IPhysicsController mess. KX_GameObject now has a GetPhysicsController() and a GetPhysicsController1(). The former returns a PHY_IPhysicsController* while the latter returns a KX_IPhysicsController. The goal is to get everything using GetPhysicsController() instead of GetPhysicsController1().

6 years agoBGE Rasterizer Cleanup: The Blenderplayer now loads the monospace font so it can...
Mitchell Stokes [Mon, 4 Nov 2013 19:22:15 +0000 (19:22 +0000)]
BGE Rasterizer Cleanup: The Blenderplayer now loads the monospace font so it can properly draw the framerate and profile display.

6 years agoBGE Rasterizer Cleanup: Cleaning up some includes.
Mitchell Stokes [Mon, 4 Nov 2013 19:22:10 +0000 (19:22 +0000)]
BGE Rasterizer Cleanup: Cleaning up some includes.

6 years agoBGE Rasterizer Cleanup: Removing the Singletexture material mode. More conversion...
Mitchell Stokes [Mon, 4 Nov 2013 19:21:50 +0000 (19:21 +0000)]
BGE Rasterizer Cleanup: Removing the Singletexture material mode. More conversion code will probably be needed.

6 years agoBGE Rasterizer Cleanup: Moving the RAS_OpenGLRasterizer::ApplyLights() code into...
Mitchell Stokes [Mon, 4 Nov 2013 19:21:37 +0000 (19:21 +0000)]
BGE Rasterizer Cleanup: Moving the RAS_OpenGLRasterizer::ApplyLights() code into RAS_OpenGLRasterizer::ProcessLighting().

6 years agoBGE Rasterizer Cleanup: Removing the need to reference KX_BlenderMaterial or KX_Polyg...
Mitchell Stokes [Mon, 4 Nov 2013 19:21:32 +0000 (19:21 +0000)]
BGE Rasterizer Cleanup: Removing the need to reference KX_BlenderMaterial or KX_PolygonMaterial in RAS_OpenGLRasterizer.

6 years agoBGE Rasterizer Cleanup: Getting rid of the BL_Material.h include in RAS_OpenGLRasteri...
Mitchell Stokes [Mon, 4 Nov 2013 19:21:25 +0000 (19:21 +0000)]
BGE Rasterizer Cleanup: Getting rid of the BL_Material.h include in RAS_OpenGLRasterizer.cpp.

6 years agoBGE Rasterizer Cleanup: Getting rid of RAS_IRasterizer::RenderText(), and just adding...
Mitchell Stokes [Mon, 4 Nov 2013 19:21:21 +0000 (19:21 +0000)]
BGE Rasterizer Cleanup: Getting rid of RAS_IRasterizer::RenderText(), and just adding the code to IndexPrimitives_3DText(), which is the only function that uses RenderText().

6 years agoBGE Rasterizer Cleanup: Removing KX_BlenderGL since it was mostly one-line functions...
Mitchell Stokes [Mon, 4 Nov 2013 19:21:16 +0000 (19:21 +0000)]
BGE Rasterizer Cleanup: Removing KX_BlenderGL since it was mostly one-line functions used by KX_BlenderCanvas. KX_BlenderCanvas now just calls those functions directly.