blender-staging.git
8 years agoMerging r39251 through r39311 from trunk into soc-2011-tomato
Sergey Sharybin [Thu, 11 Aug 2011 18:16:29 +0000 (18:16 +0000)]
Merging r39251 through r39311 from trunk into soc-2011-tomato

Splash screen is kept to be tomatoes.

8 years agouse correct libdir for buildbot win64.
Nathan Letwory [Thu, 11 Aug 2011 16:43:36 +0000 (16:43 +0000)]
use correct libdir for buildbot win64.

8 years agoCommiting patch from jensverwiebe for NDOF support on OSX
Sergey Sharybin [Thu, 11 Aug 2011 15:59:19 +0000 (15:59 +0000)]
Commiting patch from jensverwiebe for NDOF support on OSX

8 years agoFix for crash when using undo during sketching session.
Sergey Sharybin [Thu, 11 Aug 2011 13:40:47 +0000 (13:40 +0000)]
Fix for crash when using undo during sketching session.

Currently, grease pencil conflicts with such operators
as undo and set object mode which makes behavior totally
unpredictable and crash for some cases.

The only way to solve this proper is to ger rid of pointers
to data which can chage stored in operator custom data.

8 years agoFix #28180: crash running wm.keyconfigs.user.keymaps.new("My Keymap").
Brecht Van Lommel [Thu, 11 Aug 2011 11:56:02 +0000 (11:56 +0000)]
Fix #28180: crash running wm.keyconfigs.user.keymaps.new("My Keymap").
There isn't much point in doing this at the moment, but shouldn't crash.

8 years agoAdding a readonly length_squared property to mathutils.Vector. This is simply vector...
Mitchell Stokes [Thu, 11 Aug 2011 09:40:14 +0000 (09:40 +0000)]
Adding a readonly length_squared property to mathutils.Vector. This is simply vector.dot(vector), so nothing new is really added, but it's nice for writing more intent revealing code. In other words:

if vec.dot(vec) > some_distance*some_distance:
    do_something()

might not be quite as obvious looking as:

if vec.length_squared > some_distance*some_distance:
    do_something()

As to why you'd want to use length_squared over length is that length uses a square root, which isn't always necessary for simple distance checks (e.g., closest object, checks like the ones above, ect).

8 years agofix [#28213] Imperial unit for 0.001 inches inconsistently displayed as mils and...
Campbell Barton [Thu, 11 Aug 2011 08:24:56 +0000 (08:24 +0000)]
fix [#28213] Imperial unit for 0.001 inches inconsistently displayed as mils and thous

8 years agoSVN maintenance.
Guillermo S. Romero [Thu, 11 Aug 2011 06:40:04 +0000 (06:40 +0000)]
SVN maintenance.

8 years agouse ghash for operator and menu types, was doing string lookup in the operator list...
Campbell Barton [Thu, 11 Aug 2011 06:06:17 +0000 (06:06 +0000)]
use ghash for operator and menu types, was doing string lookup in the operator list (containing over 1000 items) for each button draw.

gives small speedup for UI drawing and overall startup time.

8 years agoifdef'd outliner code which is spesific to gsoc pepper with '// GSOC_PEPPER' so its...
Campbell Barton [Thu, 11 Aug 2011 05:50:05 +0000 (05:50 +0000)]
ifdef'd outliner code which is spesific to gsoc pepper with '// GSOC_PEPPER' so its obvious. this will keep merging pepper changes from conflicting and can be removed when its finally merged.

8 years agomerge outliner refactor so we dont have to keep outliner.c locked in trunk.
Campbell Barton [Thu, 11 Aug 2011 05:46:18 +0000 (05:46 +0000)]
merge outliner refactor so we dont have to keep outliner.c locked in trunk.

this wont build because of changes spesific to pepper, fix coming next.

svn merge source/blender/editors/space_outliner -r36830:38987 https://svn.blender.org/svnroot/bf-blender/branches/soc-2011-pepper/source/blender/editors/space_outliner

8 years agounlocking outliner.c and removing... (merging refactor from pepper but looks like...
Campbell Barton [Thu, 11 Aug 2011 05:43:20 +0000 (05:43 +0000)]
unlocking outliner.c and removing... (merging refactor from pepper but looks like this will take a few steps)

8 years agoCamera tracking integration
Sergey Sharybin [Wed, 10 Aug 2011 21:14:12 +0000 (21:14 +0000)]
Camera tracking integration
===========================

Make calibration grid "outer" boundaries always be inside frame.

8 years agofix for regression for shape key UI, values are now editable again in the list, doubl...
Campbell Barton [Wed, 10 Aug 2011 20:12:27 +0000 (20:12 +0000)]
fix for regression for shape key UI, values are now editable again in the list, double checked this works for mesh/curve and lattice types.

8 years agoCamera tracking integration
Sergey Sharybin [Wed, 10 Aug 2011 18:44:05 +0000 (18:44 +0000)]
Camera tracking integration
===========================

Changes to manual calibraiton:

- Grease pencil is now getting distorted, so now workflow is
  changing to making straight GP line line match footage.

  I've tried to make GP lines not changing their start and
  end points from their "keyed" position.

  Should be tested because this could be done not in
  very accurate way.

- Fixed crash when adding new GP layer when there's no
  frames yet and manual calibration is enabled.

8 years agoerror in own recent commit. set subversion to 0
Campbell Barton [Wed, 10 Aug 2011 16:05:20 +0000 (16:05 +0000)]
error in own recent commit. set subversion to 0

8 years ago2.59 Splash screen by tomket7. Congratulations!
Thomas Dinges [Wed, 10 Aug 2011 16:03:45 +0000 (16:03 +0000)]
2.59 Splash screen by tomket7. Congratulations!

Chosen by the jury Ben Simonds, Reynante Martinez and Hjalti Hjálmarsson.

8 years agoVersion bump for 2.59
Campbell Barton [Wed, 10 Aug 2011 16:02:02 +0000 (16:02 +0000)]
Version bump for 2.59

8 years agofix [#28206] Motion Paths shown in 3DView even when Only Render option is enabled
Campbell Barton [Wed, 10 Aug 2011 15:53:46 +0000 (15:53 +0000)]
fix [#28206] Motion Paths shown in 3DView even when Only Render option is enabled

8 years agoCamera tracking integration
Sergey Sharybin [Wed, 10 Aug 2011 13:59:03 +0000 (13:59 +0000)]
Camera tracking integration
===========================

- Fix for reading grease pencil data for movie clips.
- Request from Francois: undistort grease pencil to allow
  manual calibration.

Only strokes made in "Cursor" space are getting undistorted,
strokes made in view space are kept unchanged.

This allows to make such workflow of manual calibration:
- Outline straight line in footage with GP.
- [Optional] mute footage.
- Enable Display->Manual Calibration.
- Tweak distortion coefficients until you'll like result.
- [Optional] Use strokes made in viewspace to help checking
  of straightness of outlined features.

Not ideal but could be nice addition for grid-only calibration
until proper tools are getting ported to libmv/blender.

8 years agoMerging r39191 through r39250 from trunk into soc-2011-tomato
Sergey Sharybin [Wed, 10 Aug 2011 12:16:44 +0000 (12:16 +0000)]
Merging r39191 through r39250 from trunk into soc-2011-tomato

8 years agoCamera tracking integration
Sergey Sharybin [Wed, 10 Aug 2011 10:29:39 +0000 (10:29 +0000)]
Camera tracking integration
===========================

Fixed wrong jpeg files saved by proxy builder.

Additional changes:
  - Fixed some wrong copyrights in my own files.
  - Added copyrights headers to Peter's indexer files.

8 years agoFix for incorrect parameter amount.
Nathan Letwory [Wed, 10 Aug 2011 09:30:45 +0000 (09:30 +0000)]
Fix for incorrect parameter amount.

8 years agofix for error in template
Campbell Barton [Wed, 10 Aug 2011 09:16:35 +0000 (09:16 +0000)]
fix for error in  template

8 years agofix [#28203] Misplaced string in bone constraints
Campbell Barton [Wed, 10 Aug 2011 07:49:18 +0000 (07:49 +0000)]
fix [#28203] Misplaced string in bone constraints

8 years agoFix [#28195] Particles objects disappear in viewport, and 90° rotation
Nathan Letwory [Wed, 10 Aug 2011 07:36:57 +0000 (07:36 +0000)]
Fix [#28195] Particles objects disappear in viewport, and 90° rotation
Reported by Jean Francois Sarazin

Lack of normal normalisation caused scaling issues. SIGGRAPH fix by jahka and jesterKing. Thanks to host dfelinto with entertainment provided by slikdigit.

8 years agofix for [#28201] blender crashes when "mpeg" selected
Campbell Barton [Wed, 10 Aug 2011 07:36:44 +0000 (07:36 +0000)]
fix for [#28201] blender crashes when "mpeg" selected

2 changes
- When writing OGG only allow Theora encoding, this fixes the crash.
- When setting the MPEG preset, dont allow the 'Codec' to be left as Theora, this is just confusing.

* note that this is highly confusing for users and devs - there are 4 places to set the codec/format, with both python and C presets :S.

8 years agofix for crash undoing grease pencil session, last action would free entire frame...
Campbell Barton [Tue, 9 Aug 2011 21:32:46 +0000 (21:32 +0000)]
fix for crash undoing grease pencil session, last action would free entire frame which the session held a reference to.

8 years agofix [#28197] Undoing Grease pencil removes last 2 strokes
Campbell Barton [Tue, 9 Aug 2011 20:33:35 +0000 (20:33 +0000)]
fix [#28197] Undoing Grease pencil removes last 2 strokes

8 years agofix [#28196] Unwrap tris in lightmap pack
Campbell Barton [Tue, 9 Aug 2011 20:00:53 +0000 (20:00 +0000)]
fix [#28196] Unwrap tris in lightmap pack

8 years agostyle change, harmless changes while looking into bug [#28196]
Campbell Barton [Tue, 9 Aug 2011 19:59:01 +0000 (19:59 +0000)]
style change, harmless changes while looking into bug [#28196]

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 9 Aug 2011 19:58:14 +0000 (19:58 +0000)]
Camera tracking integration
===========================

Forgot to port draw sensor code to new sensor usa case.

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 9 Aug 2011 19:26:56 +0000 (19:26 +0000)]
Camera tracking integration
===========================

Fixing usage on incorrect pointer to get clip idblock when doing
rna update functions.

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 9 Aug 2011 18:26:21 +0000 (18:26 +0000)]
Camera tracking integration
===========================

Fixing some problems caused by modifying imbuf from cache
when building proxy and preventing attempt to load image
duting saving it from cache builder.

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 9 Aug 2011 17:51:32 +0000 (17:51 +0000)]
Camera tracking integration
===========================

Use initial pixel aspect ratio of 1.0 for new clips.

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 9 Aug 2011 15:12:20 +0000 (15:12 +0000)]
Camera tracking integration
===========================

Changes into sensor size use case.

There was problem with vertical sensor size which can't actually
affect on things due to we've got fixed image resolution. So
as soon horizontal size gets defined, both of sensor height
and vertical FOV is known and exposing it into UI makes things
difficult to understand.

That's why vertical sensor size was dropped.

Also added pixel aspect to camera settings fo clip editor.
Solver will sue this value rather than value from display
aspect ratio.

This pixel aspect would be copied to render settings after solving
so things should match now between footage, solving anf footage.

8 years agofix [#28186] textboxes properties not animatable
Campbell Barton [Tue, 9 Aug 2011 14:50:40 +0000 (14:50 +0000)]
fix [#28186] textboxes properties not animatable

8 years agofix [#28191] Exception when enabling a script for a newer Blender build
Campbell Barton [Tue, 9 Aug 2011 14:16:22 +0000 (14:16 +0000)]
fix [#28191] Exception when enabling a script for a newer Blender build

8 years agonote to address issue raised by report [#28190].
Campbell Barton [Tue, 9 Aug 2011 13:50:27 +0000 (13:50 +0000)]
note to address issue raised by  report [#28190].

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 9 Aug 2011 13:05:18 +0000 (13:05 +0000)]
Camera tracking integration
===========================

Fixed tracking speed regression caused by proxies commit.
Use frames from cache when tracking if available and also
but frames read during tracking into cache (if proxying
allows this).

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 9 Aug 2011 12:08:46 +0000 (12:08 +0000)]
Camera tracking integration
===========================

More accurate sliding of undistortion coefficients.

8 years agoCamera tracking integration
Sergey Sharybin [Tue, 9 Aug 2011 10:42:39 +0000 (10:42 +0000)]
Camera tracking integration
===========================

Bundling new version of libmv. It's repo is ready for
bundling again, some patches which were applied on our
side are in libmv repo now.

This new version of libmv also contains patch from John Carpenter
which makes reconstruciton a bit more "stable" -- some kind
of fallback algorithm.

8 years agochange doxygen string to 2.59
Campbell Barton [Tue, 9 Aug 2011 07:48:40 +0000 (07:48 +0000)]
change doxygen string to 2.59

8 years agoBlender 2.59:
Thomas Dinges [Tue, 9 Aug 2011 07:33:51 +0000 (07:33 +0000)]
Blender 2.59:
* Update the readme file
* Update link to release logs, they point to http://www.blender.org/development/release-logs/blender-259/ now

8 years agooff by 1 error with number keys in ghost/sdl
Campbell Barton [Tue, 9 Aug 2011 07:09:49 +0000 (07:09 +0000)]
off by 1 error with number keys in ghost/sdl

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 20:25:00 +0000 (20:25 +0000)]
Camera tracking integration
===========================

- Code cleanup.
- Fixed small bug with cleanup operator.

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 19:02:18 +0000 (19:02 +0000)]
Camera tracking integration
===========================

Next attempt to fix MSVC compilation.

I wish i've got my laptop by hand..

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 18:44:19 +0000 (18:44 +0000)]
Camera tracking integration
===========================

Just another attempt to fix compilation with msvc:
- Use BLI_snprintf instead of snprintf
- Do not use C99 rint function

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 18:23:56 +0000 (18:23 +0000)]
Camera tracking integration
===========================

Another attempt to fix compilation on windows.

8 years agoMerging r39179 through r39190 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 8 Aug 2011 17:35:22 +0000 (17:35 +0000)]
Merging r39179 through r39190 from trunk into soc-2011-tomato

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 17:23:26 +0000 (17:23 +0000)]
Camera tracking integration
===========================

Compilation fix (snprintf vs. BLI_snprintf)

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 16:30:09 +0000 (16:30 +0000)]
Camera tracking integration
===========================

Added grease pencil to clip editor.
Idea is to use it for supervised camera calibraiton.

"Disable Marker" hotkey was changed to Shift-D

8 years agofix [#28183] Wavefront OBJ import has no preset saving
Campbell Barton [Mon, 8 Aug 2011 14:50:10 +0000 (14:50 +0000)]
fix [#28183] Wavefront OBJ import has no preset saving

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 12:39:02 +0000 (12:39 +0000)]
Camera tracking integration
===========================

- Fixing typo in scons rules
- CMake should use correct pathes for windows/osx now.

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 12:18:32 +0000 (12:18 +0000)]
Camera tracking integration
===========================

Initial integration of proxies into movie clip editor.

Known issue: marker preview area uses proxyed image,
             hopefully fix would be available soon.

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 12:18:20 +0000 (12:18 +0000)]
Camera tracking integration
===========================

Commiting VSE-proxies patch from Peter Schlaile.

Description is here: http://lists.blender.org/pipermail/bf-committers/2011-May/032152.html
Git commit hash: baaecf244b83c70cb57e1bf6fdd51dd8591bde5b

8 years agoMerging r39173 through r39178 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 8 Aug 2011 12:11:40 +0000 (12:11 +0000)]
Merging r39173 through r39178 from trunk into soc-2011-tomato

8 years agoreport error on installign keymaps rather then raising an exception.
Campbell Barton [Mon, 8 Aug 2011 09:09:44 +0000 (09:09 +0000)]
report error on installign keymaps rather then raising an exception.

8 years agoquiet harmless py resource warning - file opened but not closed.
Campbell Barton [Mon, 8 Aug 2011 09:01:09 +0000 (09:01 +0000)]
quiet harmless py resource warning - file opened but not closed.

8 years agofix [#28178] make single user copy of object data doesn't work
Campbell Barton [Mon, 8 Aug 2011 08:22:01 +0000 (08:22 +0000)]
fix [#28178] make single user copy of object data doesn't work

8 years agoCamera tracking integration
Sergey Sharybin [Mon, 8 Aug 2011 07:17:18 +0000 (07:17 +0000)]
Camera tracking integration
===========================

Fixed incorrect check for selected bundles count in scene orientation operators.

8 years agoMerging r39135 through r39172 from trunk into soc-2011-tomato
Sergey Sharybin [Mon, 8 Aug 2011 07:14:59 +0000 (07:14 +0000)]
Merging r39135 through r39172 from trunk into soc-2011-tomato

8 years agoadd missing keys for ghost/sdl
Campbell Barton [Mon, 8 Aug 2011 06:54:07 +0000 (06:54 +0000)]
add missing keys for ghost/sdl

8 years agoadd missing header to cmake files (else some IDE's wont index it)
Campbell Barton [Mon, 8 Aug 2011 05:43:04 +0000 (05:43 +0000)]
add missing header to cmake files (else some IDE's wont index it)

8 years agouse static sets rather then tuples, python optimizes this case.
Campbell Barton [Mon, 8 Aug 2011 05:21:37 +0000 (05:21 +0000)]
use static sets rather then tuples, python optimizes this case.
minor change to lightmap unpack collecting unique meshes.

8 years ago- update X3D and FBX testing checksums
Campbell Barton [Mon, 8 Aug 2011 03:31:25 +0000 (03:31 +0000)]
- update X3D and FBX testing checksums
- building with GHOST/SDL now adds the PREFIX
- image.external_edit operator errors out if the filepath isnt set (was annoying and loaded gimp while running tests)

8 years agoMac Compile fix for ndof, by jensverwiebe. Thanks!
Thomas Dinges [Sun, 7 Aug 2011 22:48:04 +0000 (22:48 +0000)]
Mac Compile fix for ndof, by jensverwiebe. Thanks!

8 years agofixed typo
Mike Erwin [Sun, 7 Aug 2011 18:57:39 +0000 (18:57 +0000)]
fixed typo

8 years agosimplify x11 path code, had unneeded NULL checks and std namespace
Campbell Barton [Sun, 7 Aug 2011 17:38:36 +0000 (17:38 +0000)]
simplify x11 path code, had unneeded NULL checks and std namespace

8 years agondof data change: operators can access values as vectors or components, as both are...
Mike Erwin [Sun, 7 Aug 2011 17:22:47 +0000 (17:22 +0000)]
ndof data change: operators can access values as vectors or components, as both are handy

8 years agoremoved old ndof transform code, to be replaced with modern stuff in 2.6
Mike Erwin [Sun, 7 Aug 2011 17:01:44 +0000 (17:01 +0000)]
removed old ndof transform code, to be replaced with modern stuff in 2.6

8 years agoscons patch from jensverwiebe
Campbell Barton [Sun, 7 Aug 2011 16:54:40 +0000 (16:54 +0000)]
scons patch from jensverwiebe
fix a silly bug in version detection, - added an OSX sdk-check

jensverwiebe, needs to get commit access!, but will apply his patches for now.

8 years agostricter WITH_INPUT_NDOF guards, general cleanup
Mike Erwin [Sun, 7 Aug 2011 16:44:10 +0000 (16:44 +0000)]
stricter WITH_INPUT_NDOF guards, general cleanup

8 years agofixed ndof library detect for Mac SCons, ndof enabled by default (disabled if lib...
Mike Erwin [Sun, 7 Aug 2011 16:29:05 +0000 (16:29 +0000)]
fixed ndof library detect for Mac SCons, ndof enabled by default (disabled if lib not found), minor cleanup

8 years agoCamera tracking integration
Sergey Sharybin [Sun, 7 Aug 2011 16:10:14 +0000 (16:10 +0000)]
Camera tracking integration
===========================

Corrected focal length initialization. Now it'll be 24mm, not 24px.

8 years agofix for building ndof with cmake on osx
Campbell Barton [Sun, 7 Aug 2011 15:06:35 +0000 (15:06 +0000)]
fix for building ndof with cmake on osx

8 years agoChanged do_version condition for noodle_curving.
Sergey Sharybin [Sun, 7 Aug 2011 14:57:25 +0000 (14:57 +0000)]
Changed do_version condition for noodle_curving.
It should be re-set to 5 for files saved in 2.58.1 release.

8 years agoCamera tracking integration
Sergey Sharybin [Sun, 7 Aug 2011 12:09:56 +0000 (12:09 +0000)]
Camera tracking integration
===========================

Request from some artists and initial idea: own frame scrubber for clip editor.

- Display current frame number in small rectangle near current frame marker
  in clip editor.
- Mouse can be used to change current frame. It is almost the same as
  for timeline. Changing of frame happens when mouse is slidding in 16px
  height area in the bottom of clip editor.

8 years agoMerging r39121 through r39134 from trunk into soc-2011-tomato
Sergey Sharybin [Sun, 7 Aug 2011 12:08:58 +0000 (12:08 +0000)]
Merging r39121 through r39134 from trunk into soc-2011-tomato

8 years agoCamera tracking integration
Sergey Sharybin [Sun, 7 Aug 2011 11:11:07 +0000 (11:11 +0000)]
Camera tracking integration
===========================

Switch from UI_DrawString to BLF_draw. No functional changes.

8 years agoFix #28169: keymap bug when using a preset configuration, e.g. object mode keymap
Brecht Van Lommel [Sun, 7 Aug 2011 11:01:55 +0000 (11:01 +0000)]
Fix #28169: keymap bug when using a preset configuration, e.g. object mode keymap
was also being used in edit mode.

8 years agoCamera tracking integration
Sergey Sharybin [Sun, 7 Aug 2011 08:58:03 +0000 (08:58 +0000)]
Camera tracking integration
===========================

Expose parameters for feature detection into redo panel.

8 years agoMerging r39102 through r39120 from trunk into soc-2011-tomato
Sergey Sharybin [Sun, 7 Aug 2011 08:56:13 +0000 (08:56 +0000)]
Merging r39102 through r39120 from trunk into soc-2011-tomato

8 years agofix [#28172] Cannot restore Add-ons tab in user preferences after a failed attempt...
Campbell Barton [Sun, 7 Aug 2011 04:55:58 +0000 (04:55 +0000)]
fix [#28172] Cannot restore Add-ons tab in user preferences after a failed attempt to install an add-on.

non utf8 addons would make the addon UI vanish, now give a message in the console and UI.

8 years agocomment unused vars
Campbell Barton [Sun, 7 Aug 2011 04:22:33 +0000 (04:22 +0000)]
comment unused vars

8 years agostricter NDOF guards for Windows (forgot in earlier commit)
Mike Erwin [Sat, 6 Aug 2011 23:13:36 +0000 (23:13 +0000)]
stricter NDOF guards for Windows (forgot in earlier commit)

8 years agofixed crash when NDOF operators were called without an NDOF_MOTION event
Mike Erwin [Sat, 6 Aug 2011 22:31:16 +0000 (22:31 +0000)]
fixed crash when NDOF operators were called without an NDOF_MOTION event

8 years agorna/ui: avoid duplicate property gHash lookups by passing the property when its alrea...
Campbell Barton [Sat, 6 Aug 2011 16:00:00 +0000 (16:00 +0000)]
rna/ui: avoid duplicate property gHash lookups by passing the property when its already been found.

added _prop suffix to ui functions which take a prop rather then a propname, may change this later since its not that nice but for gsoc branches this keeps existing UI functions working the same.

8 years agomake ui_def_but_rna into 2 functions, once which takes a prop, another which takes...
Campbell Barton [Sat, 6 Aug 2011 14:57:55 +0000 (14:57 +0000)]
make ui_def_but_rna into 2 functions, once which takes a prop, another which takes a propname, no functional change yet but lets us avoid duplicate hash lookups.

8 years agoMerging r39050 through r39101 from trunk into soc-2011-tomato
Sergey Sharybin [Sat, 6 Aug 2011 14:52:45 +0000 (14:52 +0000)]
Merging r39050 through r39101 from trunk into soc-2011-tomato

8 years agoCommiting patches needed for bundling libmv.
Sergey Sharybin [Sat, 6 Aug 2011 14:49:01 +0000 (14:49 +0000)]
Commiting patches needed for bundling libmv.

I've used git where patch files were in gitignore, that's why
this files were missed in repo.

8 years agofor UI text drawing use BLF_ascender(fs->uifont_id) rather then BLF_height(fs->uifont...
Campbell Barton [Sat, 6 Aug 2011 06:38:18 +0000 (06:38 +0000)]
for UI text drawing use BLF_ascender(fs->uifont_id) rather then BLF_height(fs->uifont_id, "2"), while profiling draw noticed that the hash lookup on the character and utf8 next were being called on every text draw, use BLF_ascender since it doesn't do any lookups.

8 years agoremove copy modifiers function, now handled in link data operator.
Campbell Barton [Sat, 6 Aug 2011 04:19:30 +0000 (04:19 +0000)]
remove copy modifiers function, now handled in link data operator.

8 years agoKEYMAP REFACTORING
Brecht Van Lommel [Fri, 5 Aug 2011 20:45:26 +0000 (20:45 +0000)]
KEYMAP REFACTORING

Diff Keymaps

User edited keymaps now no longer override the builtin keymaps entirely, but
rather save only the difference and reapply those changes. This means they can
stay better in sync when the builtin keymaps change. The diff/patch algorithm
is not perfect, but better for the common case where only a few items are changed
rather than entire keymaps The main weakness is that if a builtin keymap item
changes, user modification of that item may need to be redone in some cases.

Keymap Editor

The most noticeable change here is that there is no longer an "Edit" button for
keymaps, all are editable immediately, but a "Restore" buttons shows for keymaps
and items that have been edited. Shortcuts for addons can also be edited in the
keymap editor.

Addons

Addons now should only modify the new addon keyconfiguration, the keymap items
there will be added to the builtin ones for handling events, and not get lost
when starting new files. Example code of register/unregister:

km = wm.keyconfigs.addon.keymaps.new("3D View", space_type="VIEW_3D")
km.keymap_items.new('my.operator', 'ESC', 'PRESS')

km = wm.keyconfigs.addon.keymaps["3D View"]
km.keymap_items.remove(km.keymap_items["my.operator"])

Compatibility

The changes made are not forward compatible, i.e. if you save user preferences
with newer versions, older versions will not have key configuration changes that
were made.

8 years agoMessed up char was causing problems on windows even though it was in the
Kent Mein [Fri, 5 Aug 2011 19:55:36 +0000 (19:55 +0000)]
Messed up char was causing problems on windows even though it was in the
comments.

Kent

8 years agoCamera tracking integration
Sergey Sharybin [Fri, 5 Aug 2011 17:50:21 +0000 (17:50 +0000)]
Camera tracking integration
===========================

Interpolate camera location and orientation for frames
where's no reconstruction data.

This fixes motion blur compositor node (first and last camera's
position was at origin, so motion vector was totally incorrect).

8 years agofix for GHOST/SDL key input with uppercase keys.
Campbell Barton [Fri, 5 Aug 2011 17:39:44 +0000 (17:39 +0000)]
fix for GHOST/SDL key input with uppercase keys.

8 years agoifdef out support for for python owning and freeing BPy_StructRNA because this is...
Campbell Barton [Fri, 5 Aug 2011 16:29:38 +0000 (16:29 +0000)]
ifdef out support for for python owning and freeing BPy_StructRNA because this is only used for doc generation and it makes _every_ blender/python instance 4 bytes bigger - vertex/bezier point/object/scene/group etc.

8 years agopyrna - add own callable function type rather then using a standard python method...
Campbell Barton [Fri, 5 Aug 2011 16:21:37 +0000 (16:21 +0000)]
pyrna - add own callable function type rather then using a standard python method, gives small speedup drawing buttons since every layout.prop/col/operator/menu etc creates and throws away one of these.

8 years agomove the ndof menu into the userpref's since it adjusts preferences, also renamed...
Campbell Barton [Fri, 5 Aug 2011 14:53:13 +0000 (14:53 +0000)]
move the ndof menu into the userpref's since it adjusts preferences, also renamed VIEW3D_MT_ndof_settings -> USERPREF_MT_ndof_settings since it has no view3d specific settings.